GPU Passthrough #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unsuccessful attempt (error -22 + “loading vfio” grub stuck)
dmesg is command that checks kernel ring buffer - critical messages about kernel loading, PCI, etc.
Enabling IOMMU (direct PCI passthrough):
DMAR: IOMMU enabled)If no output, then do:
Add GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on"
Now getting this error:
Following the perplexity tutorial, need to unbind the current driver, and prevent from further loading (verify vendor and card id in echo).
Binding gives the following error:
AI suggests that the driver may still be in use. However, if I try to unbind - there is “no such dir” error, which means its unbind already. Still, I’ve added nvidia existing drivers to the backlist:
Should show nothing.
After this, binding still fails, now I’m stuck.
Need to try:
This didn’t work. Claude gives this:
alvis@agaphub:~$ cat /sys/bus/pci/devices/0000:01:00.0/boot_vga
1
meaning that GPU is loaded to be used as a primary display.
Now fixing.
After lots of trying, I figured out that adding a new device to a PCI slot (like a second GPU) apparently changes the enp4s5 ethernet to enp5s5 or something like this, which makes netplan configuration invalid and prevents from connecting to the PC. Fixed by adding two ethernets to netplan at the same time.
Check success (for 1070):
Debugging by (kernel errors):
vfio need to boot at restart:
Create /etc/initramfs-tools/modules (or edit if exists):
then
After restart:
Check for errors:
After switching GPUs back the system wouldn’t load anymore.