Red Hat Bugzilla – Bug 427147
kvm cannot gracefully shut down
Last modified: 2008-04-22 15:27:13 EDT
I have a Fedora 8 host running a Fedora 8 guest using KVM. It seems to be
running fine for all I can tell, but there is no external way of shutting down
the guest gracefully. A SIGTERM and SIGKILL seem to have the same effect, i.e.
killing the machine instantly. I've also tried virsh shutdown (which seems to
just do a SIGTERM from a casual glance at the code).
I might be doing something wrong as this is my first foray into KVM, but all
documentation seem to suggest that a SIGTERM should initiate a graceful shutdown
of the guest.
use the qemu monitor system_powerdown command to send an acpi shutdown request
to the guest. you can easily redirect the monitor to a unix domain socket or
a tcp port for scripting.
Is this a duplicate of a bug 439970?
Not directly, no. But they are related. Bug 439970 seems to be that you've added
the functionality requested here (I haven't tested in a while), but it isn't
Symptom here is a hard shutdown when a soft one is requested. In the other bug
there's no action at all.
The version of KVM in Fedora 8 does not support graceful shutdown. This is a new
feature introduced in the KVM version distributed from Fedora 9 onwards.
So you're saying that F8 won't be getting kernel updates to 2.6.25?
It's a userspace feature, implemented in qemu.
Quite right. So the same question but for the kvm package then. :)