[libvirt] virsh shutdown

Hi For some reason recent libvirt code (0.8.3 and even before) the 'virsh shutdown <domain> ' is not effective . It issues an ok message by the domians remains in a runnning state . Only th e destroy works fine. Any idea ? Zvi Dubitzky Email:dubi@il.ibm.com

On 04/13/2011 12:56 AM, Zvi Dubitzky wrote:
Hi For some reason recent libvirt code (0.8.3 and even before) the 'virsh shutdown <domain> ' is not effective . It issues an ok message by the domians remains in a runnning state . Only th e destroy works fine.
Any idea ?
'virsh shutdown' is wired to cause qemu to send an ACPI shutdown signal to the guest, which is more or less advisory. If the guest doesn't react to that, then there's nothing that shutdown can do; virsh prints the ok message if qemu successfully sent the ACPI signal, even if the guest ignores the signal. Have you checked that your guests can react to ACPI shutdown requests? -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

On Wed, Apr 13, 2011 at 11:26:03AM -0600, Eric Blake wrote:
On 04/13/2011 12:56 AM, Zvi Dubitzky wrote:
Hi For some reason recent libvirt code (0.8.3 and even before) the 'virsh shutdown <domain> ' is not effective . It issues an ok message by the domians remains in a runnning state . Only th e destroy works fine.
Any idea ?
'virsh shutdown' is wired to cause qemu to send an ACPI shutdown signal to the guest, which is more or less advisory. If the guest doesn't react to that, then there's nothing that shutdown can do; virsh prints the ok message if qemu successfully sent the ACPI signal, even if the guest ignores the signal. Have you checked that your guests can react to ACPI shutdown requests?
Agreed with Eric, specifically you need <acpi/> in the <features> section of your guest XML and you need the guest OS configured to respond, in Linux guests that typically means running acpid. Dave
participants (3)
-
Dave Allan
-
Eric Blake
-
Zvi Dubitzky