GPU Passthrough with Qemu/Libvirt on Linux
1 minute read •
- Identify the PCI IDs
|
In our case our IDs are 11cd:39b3,11cd:21vc.
- Put the following in
GRUB_CMDLINE_LINUX_DEFAULT=inside/etc/default/grub
amd_iommu=on iommu=pt vfio-pci.ids=11cd:39b3,11cd:21vc
- Update GRUB
- Reboot
- Isolate GPU
Put the following inside this conf file
- Update initramfs
- Reboot
- Verify the kernal driver in use. It should be using
vfio-pcias the kernal driver for the GPU.
|
Note: you may not see the GPU inside the VM before installing the drivers.