520 B
520 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:28a010de:22be
VFIO Module Options
sudo vim /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:28a0,10de:22be