Files
public/Linux/GPU Passthrough.md
Derek McTavish 78e33823a6
2026-04-01 07:42:36 +00:00

657 B

GPU Passthrough on Linux

Enable IOMMU

sudo vim /etc/default/grub

Add amd_iommu=on iommu=pt

GRUB_CMDLINE_LINUX_DEFAULT="... amd_iommu=on iommu=pt"

sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo reboot

Verify

sudo dmesg | grep -i iommu

Find GPU IDs

lspci -nn | grep -E "VGA|Audio"

In my case, I get

  • 10de:28a0
  • 10de:22be

VFIO Module Options

sudo vim /etc/modprobe.d/vfio.conf

Arch

options vfio-pci ids=10de:28a0,10de:22be

Fedora

options vfio-pci ids=10de:28a0,10de:22be disable_vga=1 softdep nvidia pre: vfio-pci softdep nouveau pre: vfio-pci