<div dir="ltr">I just checked with QEMU + libvirt on Ubuntu 14.04 (same QEMU versions, libvirt 1.2.1 instead), and it works as intended. libvirt detects the guest as stopped and successfully tears it down. I also did a very rudimentary test of stealing libvirt 1.2.6 from Utopic and it also seemed to work.<div>
<br></div><div>As such I've filed a bug with the debian maintainers.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 July 2014 16:35, Claudio Bley <span dir="ltr"><<a href="mailto:cbley@av-test.de" target="_blank">cbley@av-test.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At Fri, 11 Jul 2014 05:27:46 +0000,<br>
Michael D wrote:<br>
><br>
> I am currently running LibVirt with Qemu on Debian Wheezy:<br>
><br>
> Versions:<br>
><br>
>    - libvirtd (libvirt) 1.2.4<br>
>    - qemu-x86_64 version 2.0.0 (Debian 2.0.0+dfsg-4~bpo70+1), Copyright (c)<br>
>    2003-2008 Fabrice Bellard<br>
><br>
> It's all working perfectly, including ACPI: virsh shutdown guest. However<br>
> when I issue "halt" from the guest, the guest stops but libvirt thinks it<br>
> is still running: (virsh list outputs state: running). virsh dominfo does<br>
> the same thing: State: running<br>
<br>
This is how "halt" works, the machine is still powered on, but<br>
processing is halted.<br>
<br>
> I believe this is due to the -no-shutdown flag passed to qemu, making it<br>
> stop the CPUs rather than halt entirely.<br>
<br>
AFAIU, this flag comes into play when you do a *shutdown* of the<br>
guest. The guest will be shutdown, the virtual machine stops but Qemu<br>
will not exit.<br>
<br>
> Is this however a bug that the status is not updated correctly? I've<br>
> taken a glance at the source and it should SIGTERM qemu when it sees<br>
> the stop, but evidently it isn't.<br>
<br>
I think this is normal behavior. As long as Qemu is emulating some<br>
hardware, it is in the "running" state.<br>
<br>
If you do a shutdown inside the guest, the domain should be regarded<br>
as shut down in libvirt too.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Claudio<br>
</font></span></blockquote></div><br></div>