vfio-pci-bind icon indicating copy to clipboard operation
vfio-pci-bind copied to clipboard

vfio-pci-bind.sh Bindinh Hangs System

Open Serpistica opened this issue 1 year ago • 2 comments

Hi

Thank you for your work.

When I try to use the script my system hangs (waited for 10 min and still hanged) and I have to do a manual Computer Reset (press the physical button).

I have run it using: sudo vfio-pci-bind.sh 0000:10:00.0 10de:107d sudo vfio-pci-bind.sh 0000:10:00.1 10de:0e08 reversing the ID orders (10de:0e08 0000:10:00.1)

sudo vfio-pci-bind.sh 0000:10:00.0 sudo vfio-pci-bind.sh 0000:10:00.1

sudo vfio-pci-bind.sh 10de:107d sudo vfio-pci-bind.sh 10de:0e08

Using "sudo su" before executing the commands.

After I press Enter, it outputs nothing and just hangs the PC, can't even use the mouse.

I have Debian 11.5 KDE. The MB BIOS has IOMMU and virtualization turned on. Linux has it enabled also. I tried using a manual procedure and it worked, but when installing the drivers on the guest I got the Code 43 error (turned off kvm and other workaround I found on the internet with no succes.. Even tried older NVidia Drivers). So I thought it was some misstep I did or the guide was to old and was missing a step. So I formatted the PC and installed Debian again (nothing lost, the previous installation was also fresh, preferred to star over from 0 then to reverse the steps of the manual guide).

What am I doing wrong?

Thank you in advanced!

Serpistica avatar Oct 29 '22 16:10 Serpistica

I think your problem may be more related to the device you’re trying this with rather than the script.

It seems you’re trying to pass through a GPU, which is a known difficult case. I would recommend to reach out to the VFIO mailing list, or some subreddits that are thematically close (r/virtualization, r/vfio).

andre-richter avatar Oct 29 '22 19:10 andre-richter

Hi.

Ok, thank you for quick reply! Yes, it's a GPU, Nvidia Quadro (NVS 310).

Been checking those out. I think the problem might be that my GPU is sharing the IOMMU Group 0 with another device. Have read that I would need to change the GPU to it's own group. Can't physically change it to another PCIe because my MB has only 1 slot. Will try using the ACS override in the kernel.

Thank you again. Have a good day!

Serpistica avatar Oct 29 '22 22:10 Serpistica