QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
788 stars 38 forks source link

Hang when starting a different VM #45

Closed ultimategrandson closed 4 months ago

ultimategrandson commented 4 months ago

Just wondering if anyone else has this issue...

I have two VMs and two GPUs.

One of my GPUs is used to run Linux, the other is blacklisted and only used in a VM. My second VM uses the Single GPU Passthrough scripts (to use the GPU from Linux to Windows) and this all works great.

However, there seems to be a problem when it shut down the VM which passes through the GPU and then I go to start my other VM, it seems to get stuck and does not start at all. If I reboot the host machine, it gets stuck shutting down.

After the reboot I can start the VM normally.

ultimategrandson commented 4 months ago

It looks like it might be the "modprobe vfio-pci" and "modprobe -r vfio-pci" lines in the script causing this. I've removed them and it's now working.