<div dir="ltr"><div><div>FYI, I have found a way to terminate instance:<br>    virsh schedinfo <domain> --set vcpu_quota=20000<br></div>After this, shutdown, reboot and destroy all works. Of course, this disables the vcpu throttling. It was set to 5000, which may cause the CPU stall problem in guest.<br>
<br></div>Thanks,<br>Yuanle<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 8, 2014 at 11:34 AM, sylecn <span dir="ltr"><<a href="mailto:sylecn@gmail.com" target="_blank">sylecn@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>I'm using libvirt/kvm with openstack. When vm has CPU stall, the instance can't be destroyed. I have asked the question on openstack user mailing list and received no answers in weeks.<br>

<br></div>Here is one example:<br><br>    # virsh destroy instance-00000085<br>    error: Failed to destroy domain instance-00000085<br>    error: Failed to terminate process 61222 with SIGKILL: Device or resource busy<br>

    <br>    # lsof -p 61222<br>    # ps -f -p 61222<br>    UID        PID  PPID  C STIME TTY          TIME CMD<br>    107      61222     1 68 Jan24 ?        9-23:06:19 [qemu-system-x86] <defunct><br><div><br></div>
<div>
The log in /var/log/libvirt/libvirtd.log:<br>    2014-02-08 03:21:31.597+0000: 2177: error : virProcessKillPainfully:315 : Failed to terminate process 61222 with SIGKILL: Device or resource busy<br><br></div><div>Restart libvirt-bin service did not solve the problem.<br>

<br>virsh shutdown/reboot just hang. Maybe that is because the CPU in vm is stalled.<br></div><div><br></div><div>I wonder if there is some way to destroy (or rebuild) dead instance without rebooting the hypervisor. Any suggestions is welcome.<br>

<br>The software I am running:<br><div>hypervisor os: ubuntu 12.04.3<br>hypervisor kernel: 3.8.0-35-generic<br></div><div>vm os: ubuntu 12.04<br></div><div>vm kernel: 3.2.0-56-virtual<br>
</div>openstack: havana<br>libvirt: 1.1.1-0ubuntu8~cloud2<br><br></div><div>Thanks,<br>Yuanle<br></div></div>
</blockquote></div><br></div>