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

52 lines
657 B
Markdown

# 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
```
### Arch
```bash
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