Performance & Tuning

Proxmox GPU Passthrough Guide: NVIDIA and AMD PCIe Setup

Step-by-step NVIDIA and AMD GPU passthrough on Proxmox VE with IOMMU, VFIO, ZFS systemd-boot handling, and practical fixes for Error 43 and AMD reset issues.

Emulated display adapters like VirtIO or SPICE are fine for basic administration, but the moment you need CUDA workloads, video transcoding, or direct Windows GPU rendering inside a VM, you have to hand the physical card straight to the guest over PCIe.

Two small oversights account for most black-screen passthrough threads: running update-grub on a ZFS UEFI node that actually boots with systemd-boot, and forgetting to bind the GPU's built-in HDMI audio function to vfio-pci alongside the video device. Follow the steps in order and you will avoid both.

BIOS settings to enable first

Turn on VT-x and VT-d on Intel boards, or SVM and IOMMU on AMD boards. Enable Above 4G Decoding as well; cards with 8 GB VRAM or more often hang during VM boot without it. Leave Resizable BAR disabled during initial testing because some Windows guest drivers still throw Code 43 when ReBAR is exposed through a virtual bridge.

Step 1: Enable IOMMU in the right bootloader

Check whether your Proxmox host boots via GRUB or systemd-boot before editing anything:

efibootmgr -v 2>/dev/null | head -n 5
cat /proc/cmdline

If /etc/kernel/cmdline exists (typical on ZFS UEFI installs), changes to /etc/default/grub are ignored completely.

  • GRUB hosts: Append intel_iommu=on iommu=pt (Intel) or amd_iommu=on iommu=pt (AMD) to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, then run update-grub.
  • systemd-boot (ZFS UEFI) hosts: Append the same flags to the single line inside /etc/kernel/cmdline, then run proxmox-boot-tool refresh.

Reboot and confirm the kernel actually initialized IOMMU:

dmesg | grep -e DMAR -e IOMMU -e AMD-Vi

Look for DMAR: IOMMU enabled or AMD-Vi: Interrupt remapping enabled. If the output is empty, double-check BIOS toggles and confirm you edited the active boot file.

Step 2: Load VFIO and keep host drivers off the card

If the host loads nouveau, nvidia, or amdgpu at boot, the guest cannot cleanly claim the card. Add the VFIO modules to /etc/modules:

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

Blacklist the host GPU drivers:

cat << 'EOF' > /etc/modprobe.d/blacklist-gpu.conf
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
blacklist radeon
blacklist amdgpu
EOF

Grab the PCI vendor and device IDs for both the GPU and its audio controller:

lspci -nn | grep -iE "vga|3d|audio"

Take the bracketed IDs from your output (for example 10de:2684 and 10de:22ba), write them to vfio.conf, rebuild initramfs, and reboot:

echo "options vfio-pci ids=10de:2684,10de:22ba disable_vga=1" > /etc/modprobe.d/vfio.conf
update-initramfs -u -k all
reboot

After boot, check lspci -nnk -s 01:00 (replacing 01:00 with your slot). You want to see Kernel driver in use: vfio-pci on both functions.

Step 3: Guest VM settings and common pitfalls

Avoid default legacy VM hardware when attaching a PCIe card:

  • Machine: Use q35 instead of i440fx.
  • BIOS: Select OVMF (UEFI) with an EFI disk attached.
  • CPU: Set type to host so guest drivers see native instruction sets.
  • PCI Device: Go to Hardware → Add → PCI Device → Raw Device, select the card, and check All Functions, ROM-Bar, and PCI-Express.

Modern NVIDIA drivers lifted the old consumer-card virtualization block, though older GTX/Quadro cards can still trigger Error 43 in Windows. Setting cpu: host,hidden=1,flags=+pcid inside /etc/pve/qemu-server/VMID.conf clears it immediately. On older AMD RX 5000/6000 cards that suffer from the AMD Reset Bug after a guest reboot, install the vendor-reset DKMS module on the host or power the VM off completely for five seconds instead of issuing a warm reboot.

For host-side CPU pinning and NVMe tuning that keep GPU guests fed without stalls, read our Proxmox VE performance tuning guide, or manage your Proxmox fleet centrally with VMRobot.