<div dir="ltr"><div><div>Restarting libvirtd doesn't change the situation.<br><br></div>But looking into the logs I see the following:<br><br><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(249,249,249)">- Last lines in /var/log/libvirt/libvirtd.log:<br><br>2016-07-05 13:26:42.792+0000: 24552: warning : qemuProcessKill:4419 : Timed out waiting after SIGKILL to process 48301<br>2016-07-05 13:26:42.792+0000: 24552: error : qemuDomainDestroyFlags:2120 : operation failed: failed to kill qemu process with SIGTERM<br><br>- lookup for process 48301:<br><br>[root@lpextvms003c ~]# ps -ef | grep 48301<br>root      1114 24243  0 16:02 pts/1    00:00:00 grep 48301<br>oneadmin 48301     1  4 Apr18 ?        3-08:14:18 [qemu-kvm] <defunct><br><br><br>The name of the strange VM is one-357<br>I have seen that the last log in /var/log/libvirt/qemu/one-357.log are dated 2016/04/18.<br><br>- Info on process one-357:<br><br>[root@lpextvms003c ~]# cat /var/run/libvirt/qemu/one-357.xml<br><!--<br>WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE<br>OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:<br>  virsh edit one-357<br>or other application using the libvirt API.<br>--><br><br><domstatus state='shutdown' reason='unknown' pid='48301'><br>  <monitor path='/var/lib/libvirt/qemu/one-357.monitor' json='1' type='unix'/><br>  <vcpus><br>    <vcpu pid='48319'/><br>    <vcpu pid='48320'/><br>  </vcpus><br></span><br><br></div>So the process is defunct, does a 'kill -9 48301' could fix the problem with a restart of libvirtd?<br><div><br><br></div><div>Thanks,<br><br></div><div>Roland.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 5, 2016 at 2:55 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jul 05, 2016 at 02:50:25PM +0200, Roland Everaert wrote:<br>
> Hello,<br>
><br>
> We are currently facing a strange situation. One of our VM is shown by<br>
> 'virsh list' as in state "in shutdown" but there is no more a qemu-kvm<br>
> process linked to it.<br>
><br>
> So we have a few questions:<br>
><br>
> 1. What does means the state in shutdown (I have not found much information<br>
> about it)?<br>
<br>
</span>'in shutdown' means QEMU has gone away, and libvirt is cleaning up<br>
any state it has left over. There's little info on it, since you<br>
should almost never seee it - a VM is only in that state for a tiny<br>
fraction of a second normally.<br>
<span class=""><br>
> 2. How to cleanly "shutdown" the vm, or more correctly, clean the status in<br>
> virsh/libvirt?<br>
<br>
</span>If you have a "in shutdown" state that persists, it is probably a sign<br>
of a bug in libvirt. You could see if libvirtd logged any interesting<br>
error messages. As for cleaning the state, you can probably achieve<br>
that by simply restarting libvirtd - it redetects VM state on startup<br>
<br>
Regards,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888">--<br>
|: <a href="http://berrange.com" rel="noreferrer" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" rel="noreferrer" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" rel="noreferrer" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" rel="noreferrer" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" rel="noreferrer" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" rel="noreferrer" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" rel="noreferrer" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" rel="noreferrer" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br></div>