How to enable IOMMU for PCI passthrough?

ATMTech

Cadet
Joined
Apr 1, 2021
Messages
2
Hi, I am currently attempting to pass some PCI devices to some of my KVM virtual machines. When trying to detach them via virsh nodedev-detach, I get an error: argument unsupported: VFIO device assignment is currently not supported on this system. From my knowledge working with KVM on other Linux distributions, I believe this would be because IOMMU has not been enabled. I have tried to edit the grub configs to add the kernel parameter but it doesn't seem to stick because of the OS reverting changes. How should I approach enabling it?
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
How about enabling those virtualisation features in your bios first and adding some clear system specifications too ;-)
 

ATMTech

Cadet
Joined
Apr 1, 2021
Messages
2
All virtualization features are enabled in the bios (VT-D, SVM, etc).

System Specs
Motherboard - Gigabyte x570 Taichi
CPU - Ryzen 9 5900x
RAM - 64GB 3200MHz ECC
PCIe NIC - Intel PRO/1000 Pt Dual Port Server Adapter (target for passthrough)
GPU - AMD RX 570 (target for passthrough later)
Drives:
2x 256GB SATA Mirrored (for OS)
2x 1TB NVME Mirrored (for VMs)
5x 2TB HDD RaidZ1
 

silverback

Contributor
Joined
Jun 26, 2016
Messages
134
Top