Complete-Single-GPU-Passthrough icon indicating copy to clipboard operation
Complete-Single-GPU-Passthrough copied to clipboard

VM Shutting Down when started

Open ghost opened this issue 2 years ago • 5 comments

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.

ghost avatar Jul 11 '21 04:07 ghost

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..

QaidVoid avatar Jul 11 '21 14:07 QaidVoid

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

ghost avatar Jul 12 '21 00:07 ghost

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

QaidVoid avatar Jul 12 '21 01:07 QaidVoid

https://hastebin.com/ulokonuhip.bash

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

ghost avatar Jul 12 '21 12:07 ghost

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..

QaidVoid avatar Jul 14 '21 05:07 QaidVoid

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.

stale[bot] avatar Sep 03 '23 15:09 stale[bot]