this post was submitted on 03 Jul 2023
4 points (83.3% liked)

Linux

5354 readers
128 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 1 year ago
MODERATORS
 

Good day, I have some really hard time getting my GPU passed through to a VM, my current host is Linux Mint 21.1. The bios setting is fine, but for some reason I get a black screen every time the VM starts. I have narrowed it down to the startup hook script, where it is stuck (meaning it wont do the following) when it is doing the ‘virsh nodedev-detach’ instruction.

virsh nodedev-detach pci_0000_09_00_0 virsh nodedev-detach pci_0000_09_00_1

Following the instructions of the following link: https://www.reddit.com/r/VFIO/comments/n35k69/successful_6800_xt_passthrough_are_such_posts/

I’m not sure if the card itself have limitations, or is it LM. Just want to confirm whether I am wasting my time on this card? Or if it is the combination of both Linux and my GPU I’m basically try to do a single GPU pass-through with scripts that will release GPU from host and pass through to VM, till the VM is shut down, then the host have control over the GPU again.

top 1 comments
sorted by: hot top controversial new old
[–] lfdev 1 points 1 year ago

I have limited experience with GPu pass through, but from what I've learned when I tried to do it with limited success (because of hardware limitations):

  1. That reddish post is two years old, it's ages ago regarding VFIO or GPU pass throug, look for for modern tutorials, preferably for the same hardware (GPU) or distro;
  2. There's no single way or "standard" of doing things, but if you mix parts of tutorials it may not work in the end, try to understand what's done and apply to your setup;
  3. Regarding hooks, test them with simple commands with some output first, so you can verify they are working as it should first, and try the VFIO related commands manually too so you are sure they do what you want;
  4. From what I've seen, if the hardware supports VFIO/pass through then it will work usually after a few tries, if it doesn't then there's a big change you have some hardware limitation, many times related to a bad or broken BIOS/firmware.

Good luck!