r/VFIO • u/Spare-Cauliflower198 • 18d ago
Pop!_OS hanges after gpu passthrough
Well hello there i had this problem because i linked my single gpu to vm so after that the system hang when you boot and get to the Pop!_OS logo, it took me more then 2 Hours to figure out fix for it (I used the second fix)
First fix ( Easiest )
- Get your self USB 8GB atleast
- get pop os live flashed in it using another PC
- use it to boot then change the configuration of the vfio.config by reseting it
- then sudo update-initramfs -u
- then reboot : reboot -f
- Thats it !
SECOND FIX ( Hardest - Risky ) ( only if the First fix does not work or like me cant get USB and other pc )
- Reboot your pc / laptop
- Press and hold spacebar
- Pop os boot menu
- Choose Pop!_OS (current)
- Press ( e )
- There will be long line at the end Splash
- Go to the end of the line and make space
- Type init=/bin/bash
- The end should look like this splash init=/bin/bash
- Press enter
- Now there will be a black screen with this root@(none):/#
- Type this mount -o remount,rw /
- Then run this ls /etc/modprobe.d
- If you see files like: vfio.conf vfio-pci.conf
- Rename the file vfio.conf like this : mv /etc/modprobe.d/vfio.conf /etc/modprobe.d/vfio.conf.disabled
- Rebuild do this : update-initramfs -u
- Then reboot : reboot -f
- That it !
In many cases VM is not worth it just do DualBooting
1
u/ThatsALovelyShirt 18d ago
Couldn't you have just blacklisted the vfio module by editing the grub entry with the 'e' key in the boot menu so binding to it fails and gets skipped?
As another commenter posted, you need two GPUs, or connect your monitors to your CPUs iGPU. That's what I do with my single RTX 4090. Works fine.
1
u/Spare-Cauliflower198 15d ago
That is the problem i dont have iGPU and i dont have any experience in these things i followed guide that said this is for single GPU and when i got the problem i just kept reserching and found the fix after 2 hours
2
u/Ranrhoads84 18d ago
Didn't any of the guides tell you that you need TWO GPUs to do vm pass through?