Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu kvm win7 guest stuck at shutdown [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jnack95
n00b
n00b


Joined: 28 Jun 2008
Posts: 20

PostPosted: Wed Dec 20, 2017 1:48 am    Post subject: qemu kvm win7 guest stuck at shutdown [solved] Reply with quote

Recently upgraded computer and now when I run KVM with windows 7 guest through virt-manager everything is fine until I try to shutdown and the guest hangs and I cannot even force off. I must stop the libvirtd service in systemd power down the host and reboot, even then it doesn't always work. I've tried for about 8 hours to fix it. Some things I've tried; running as root, eliminating my graphics pci passthrough and run with QXL, completely unmerging qemu, libvirt, libvirt manager and all dependencies and re-installing, using and not using guest-agent. My user is both in the kvm and libvirt group and wheel. Think it might be a bug in qemu...anybody have this problem? This what virt-manager says when I try to force off:

Code:
Error shutting down domain: Failed to terminate process 1446 with SIGKILL: Device or resource busy

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1486, in destroy
    self._backend.destroy()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1143, in destroy
    if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirtError: Failed to terminate process 1446 with SIGKILL: Device or resource busy


Last edited by jnack95 on Fri Dec 22, 2017 4:28 pm; edited 2 times in total
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2562

PostPosted: Wed Dec 20, 2017 1:50 am    Post subject: Reply with quote

I've had this too, both on win7 and win10. Commenting here so I can easily find a solution when it's posted here.
Back to top
View user's profile Send private message
jnack95
n00b
n00b


Joined: 28 Jun 2008
Posts: 20

PostPosted: Wed Dec 20, 2017 8:24 pm    Post subject: Reply with quote

Seems it might be a kernel issue related to this bug....

https://bugzilla.redhat.com/show_bug.cgi?id=1494974
Back to top
View user's profile Send private message
jnack95
n00b
n00b


Joined: 28 Jun 2008
Posts: 20

PostPosted: Thu Dec 21, 2017 8:09 pm    Post subject: Reply with quote

This is a known bug in the kernel.

https://bugzilla.kernel.org/show_bug.cgi?id=197861

Reverting to kernel 4.13.16 fixes the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum