Scratch that, seems to depend on guest or perhaps even boot device. Finnix live CD halts correctly. Ubuntu 14.04 does not.


On 11 July 2014 15:27, Michael D <me@md-5.net> wrote:

I am currently running LibVirt with Qemu on Debian Wheezy:

Versions:

  • libvirtd (libvirt) 1.2.4
  • qemu-x86_64 version 2.0.0 (Debian 2.0.0+dfsg-4~bpo70+1), Copyright (c) 2003-2008 Fabrice Bellard

It's all working perfectly, including ACPI: virsh shutdown guest. However when I issue "halt" from the guest, the guest stops but libvirt thinks it is still running: (virsh list outputs state: running). virsh dominfo does the same thing: State: running

I believe this is due to the -no-shutdown flag passed to qemu, making it stop the CPUs rather than halt entirely. Is this however a bug that the status is not updated correctly? I've taken a glance at the source and it should SIGTERM qemu when it sees the stop, but evidently it isn't.


Thanks

Michael