[libvirt-users] 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 but the domians remains in a runnning state . Only th e destroy works fine. Any idea ? thanks Zvi Dubitzky Email:dubi@il.ibm.com

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 but the domians remains in a runnning state . Only th e destroy works fine. Any idea ? thanks Zvi Dubitzky Email:dubi@il.ibm.com Hi Zvi, I had to install acpid on ubuntu in order to shutdown via virsh. Paul

The libvirt API has this to say regarding the shutdown command: virDomainShutdown: Shutdown a domain, the domain object is still usable there after but the domain OS is being stopped. *Note that the guest OS may ignore the request.* It is likely a guest OS issue. Which guest are you running? I had problems shutting down Windows guests, I had to resort to Destroy too in order to make sure the guest effectively guests shut down. On Wed, Apr 13, 2011 at 12:37 PM, <paul.worner@thomsonreuters.com> 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 but the domians remains in a runnning state . Only th e destroy works fine.
Any idea ?
thanks
Zvi Dubitzky Email:dubi@il.ibm.com
Hi Zvi,
I had to install acpid on ubuntu in order to shutdown via virsh.
Paul
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

As eblake mentioned on the other mailing list, you have to have an ACPI daemon listening for ACPI events in the guest in order for 'virsh shutdown' or 'virsh reboot' to do anything. If the guest or the ACPI daemon crash, 'virsh shutdown' won't work. In my own code, I set a timeout of a minute to let guests shut down using the 'shutdown' command, and if the guest is still up after that time I issue a 'destroy'. --Igor On Wed, Apr 13, 2011 at 06:56:15PM +0300, 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 but the domians remains in a runnning state . Only th e destroy works fine.
Any idea ?
thanks
Zvi Dubitzky Email:dubi@il.ibm.com
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (4)
-
Igor Serebryany
-
None
-
paul.worner@thomsonreuters.com
-
Zvi Dubitzky