# GPU Passthrough on Linux ## Enable IOMMU ```bash sudo vim /etc/default/grub ``` Add amd_iommu=on iommu=pt `GRUB_CMDLINE_LINUX_DEFAULT="... amd_iommu=on iommu=pt"` ```bash sudo grub-mkconfig -o /boot/grub/grub.cfg sudo reboot ``` Verify ```bash sudo dmesg | grep -i iommu ``` ## Find GPU IDs ```bash lspci -nn | grep -E "VGA|Audio" ``` In my case, I get - `10de:28a0` - `10de:22be` ## VFIO Module Options ```bash sudo vim /etc/modprobe.d/vfio.conf ``` ```bash options vfio-pci ids=10de:28a0,10de:22be ```