Bug 427147 - kvm cannot gracefully shut down
kvm cannot gracefully shut down
Product: Fedora
Classification: Fedora
Component: kvm (Show other bugs)
All Linux
low Severity high
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-01-01 07:41 EST by Pierre Ossman
Modified: 2008-04-22 15:27 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-21 22:22:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Pierre Ossman 2008-01-01 07:41:46 EST
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.
Comment 1 Avi Kivity 2008-03-07 13:03:39 EST
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.
Comment 2 Jan Hutař 2008-04-21 03:53:28 EDT
Is this a duplicate of a bug 439970?
Comment 3 Pierre Ossman 2008-04-21 05:29:08 EDT
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.
Comment 4 Daniel Berrange 2008-04-21 22:22:35 EDT
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.
Comment 5 Pierre Ossman 2008-04-22 01:25:16 EDT
So you're saying that F8 won't be getting kernel updates to 2.6.25?
Comment 6 Avi Kivity 2008-04-22 05:37:29 EDT
It's a userspace feature, implemented in qemu.
Comment 7 Pierre Ossman 2008-04-22 15:27:13 EDT
Quite right. So the same question but for the kvm package then. :)

Note You need to log in before you can comment on or make changes to this bug.