You are not logged in.

#1 2021-05-09 04:36:03

Maybegus
Member
Registered: 2021-05-09
Posts: 9

Single GPU passthrough VM won't start [SOLVED]

I just tried to setup a GPU passthrough VM using virt-manager, but when I attempt to start the VM, nothing happens and about half a minute later this error appears

 Error starting domain: Cannot recv data: Connection reset by peer

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Cannot recv data: Connection reset by peer

There was nothing on the qemu logs but after I turned on libvirt logging I found this

2021-05-09 04:18:18.922+0000: 458: info : libvirt version: 7.1.0
2021-05-09 04:18:18.922+0000: 458: info : hostname: archlinux
2021-05-09 04:18:18.922+0000: 458: warning : virHookCheck:168 : Non-executable hook script /etc/libvirt/hooks/qemu
2021-05-09 04:18:18.922+0000: 458: warning : virHookCheck:194 : Non-executable hook script /etc/libvirt/hooks/qemu.d/win10
2021-05-09 04:18:19.865+0000: 659: error : udevGetUintProperty:199 : internal error: Missing udev property 'ID_VENDOR_ID' on '1-3'
2021-05-09 04:18:19.865+0000: 659: error : udevGetUintProperty:199 : internal error: Missing udev property 'ID_VENDOR_ID' on '1-3.2'
2021-05-09 04:19:29.008+0000: 458: error : virKeepAliveTimerInternal:137 : internal error: connection closed due to keepalive timeout

I have looked all over and cannot find anything about this error. Thanks in advance.

Last edited by Maybegus (2021-05-11 02:21:47)

Offline

#2 2021-05-09 12:47:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,348

Re: Single GPU passthrough VM won't start [SOLVED]

2021-05-09 04:18:18.922+0000: 458: warning : virHookCheck:168 : Non-executable hook script /etc/libvirt/hooks/qemu
2021-05-09 04:18:18.922+0000: 458: warning : virHookCheck:194 : Non-executable hook script /etc/libvirt/hooks/qemu.d/win10

Those script files don't seem to exist in archlinux repos , although (atleast) the first does appear in arch wiki .
Are you trying to follow https://wiki.archlinux.org/title/Intel_GVT-g ?

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-05-09 20:17:30

Maybegus
Member
Registered: 2021-05-09
Posts: 9

Re: Single GPU passthrough VM won't start [SOLVED]

I was trying to follow this guide: https://github.com/joeknock90/Single-GPU-Passthrough

Offline

#4 2021-05-10 12:45:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,348

Re: Single GPU passthrough VM won't start [SOLVED]

That guide does look ok, Maybegus .

They do not mention one minor detail though : scripts need to have the executable bit set to be run.
Incase you don't know how to do that , check https://wiki.archlinux.org/title/Help:R … executable


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2021-05-11 02:21:13

Maybegus
Member
Registered: 2021-05-09
Posts: 9

Re: Single GPU passthrough VM won't start [SOLVED]

I thought I did this step but apparently I didn't. Thanks!
(for anyone in the future i did

sudo chmod +x /etc/libvirt/hooks/qemu

)

Offline

Board footer

Powered by FluxBB