First, enable IOMMU on your motherboard (also known as VT-d for Intel chips), then boot to Proxmox.
Access the shell of Proxmox and input the following:
- Edit GRUB:
nano /etc/default/grub
- (For Intel Chips): Change ‘GRUB_CMDLINE_LINUX_DEFAULT=’ to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
- (For AMD Chips): Change ‘GRUB_CMDLINE_LINUX_DEFAULT=’ to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=pt"
Save the changes using Ctrl+O and then exit using Ctrl+X
- Run this command to update GRUB
update-grub
Reboot Proxmox
You can verify the commands work by running:
dmesg | grep -e DMAR -e IOMMU
In your desired VM settings, you can now pass through your PCI device to the virtual machine
