[openstack-dev] [libvrit] Can QEMU or LIBVIRT know VM is powering-off

Chris Friesen chris.friesen at windriver.com
Wed Feb 21 23:43:00 UTC 2018


On 02/21/2018 03:19 PM, Kwan, Louie wrote:
> When turning off a VM by doing nova stop,  the Status and Task State is there
> for Nova. But can Libvirt / qemu programmatically figure out the ‘Task State’
> that the VM is trying to powering-off ?.
>
> For libvirt, it seems only know the “Power State”? Anyway to read the
> “powering-off” info?

The fact that you have asked nova to power off the instance means nothing to 
libvirt/qemu.

In the "nova stop" case nova will do some housekeeping stuff, optionally tell 
libvirt to shutdown the domain cleanly, then tell libvirt to destroy the domain, 
then do more housekeeping stuff.

Chris




More information about the OpenStack-dev mailing list