Files
public/Linux/GPU Passthrough.md

48 lines
542 B
Markdown
Raw Normal View History

2026-03-26 06:38:29 +00:00
# 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
```
2026-03-26 06:38:56 +00:00
2026-03-26 06:39:13 +00:00
## Find GPU IDs
2026-03-26 06:38:56 +00:00
```bash
lspci -nn | grep -E "VGA|Audio"
```
2026-04-01 07:41:02 +00:00
In my case, I get
- `10de:28a0`
- `10de:22be`
## VFIO Module Options
2026-04-01 07:42:00 +00:00
### Arch
2026-04-01 07:41:02 +00:00
```bash
sudo vim /etc/modprobe.d/vfio.conf
```
2026-04-01 07:42:00 +00:00
### Fedora
2026-04-01 07:41:02 +00:00
```bash
options vfio-pci ids=10de:28a0,10de:22be
```