QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
785 stars 38 forks source link

VM Shutting Down when started #6

Closed ghost closed 1 year ago

ghost commented 3 years ago

Hey guys, I've been trying to get single gpu passthrough working for several days to no avail. Finally asking for help since I have no idea what I'm doing wrong. This time I followed this (https://github.com/QaidVoid/Complete-Single-GPU-Passthrough) guide and have done all the steps. The problem is that when I start the vm it goes to a black screen and then to my motherboards loading screen, though nothing happens. I don't understand what the problem is in the logs: https://hastebin.com/ofazewelum.swift.

Specs: B450 Tomahawk, Ryzen 3600x, Nvidia 2080 Super, and running Ubuntu 21.04. SVM, NX, and IOMMU and enabled in bios.

QaidVoid commented 3 years ago

Libvirt is exiting with following error:

libvirt:  error : libvirtd quit during handshake: Input/output error

Does the VM work without passthrough?

If not, I think libvirt is broken on your system.. In that case, you can try uninstalling it completely and installing it again or downgrading to the older version of libvirt..

ghost commented 3 years ago

Libvirt is exiting with following error:

libvirt:  error : libvirtd quit during handshake: Input/output error

Does the VM work without passthrough?

If not, I think libvirt is broken on your system.. In that case, you can try uninstalling it completely and installing it again or downgrading to the older version of libvirt..

The vm works fine without passthrough, tried a reinstall of libvirt but didn't help.

I also tried changing one of the hook scripts and I get this now, removing the devices from the vm (just to test) doesn't help

2021-07-11 05:12:41.199+0000: Domain id=3 is tainted: custom-argv 2021-07-11T05:12:41.268501Z qemu-system-x86_64: -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_G502_HERO_Gaming_Mouse_156F394B3733-if01-event-kbd: Could not open '/dev/input/by-id/usb-Logitech_G502_HERO_Gaming_Mouse_156F394B3733-if01-event-kbd': Permission denied 2021-07-11 05:12:41.359+0000: shutting down, reason=failed

QaidVoid commented 3 years ago

Please post your libvirt hook scripts and also the devices list from /dev/input/by-id.

ghost commented 3 years ago

https://hastebin.com/ulokonuhip.bash

I can post the device list in a few hours if thats okay, not home right now

QaidVoid commented 3 years ago

Your script worked fine for me. Not sure what might be the cause of your issue.. I still think it might be the problem with libvirt.. If you can, downgrade libvirt and check..

stale[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.