Easiest GPU passthrough guide for Ubuntu
Ryzen IOMMU for multiple VMs with GPU passthrough
https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF
how to passthrough GPU in ubuntu KVM?
Here are the steps to passthrough a GPU on Ubuntu KVM:
dmesg | grep -e DMAR -e IOMMU
sudo nano /etc/default/grub
, find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT=
and add intel_iommu=on
(for Intel CPUs) or amd_iommu=on
(for AMD CPUs) to the list of parameters. Save and exit.sudo update-grub
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager ovmf
lspci | grep VGA
.echo "blacklist nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
sudo update-initramfs -u
For more detailed instructions, you can refer to the link provided in the document.