GPU Passthrough
Cheat sheet · https://pcornel.dk/topic.php?topic=3548
Answer
GPU passthrough assigns a whole physical GPU to one VM through VFIO or DirectPath I/O for native graphics or compute performance. It needs IOMMU, a clean IOMMU group, UEFI guest firmware and usually blocks live migration.
Remember
- Clean IOMMU group required.
- UEFI guest firmware usually required.
- Some consumer GPUs need extra tweaks.
First checks
lspci -nnk | grep -A3 -i vga— GPU bound to vfio-pcinvidia-smi— guest driver sees GPUqm config <vmid> | grep hostpci— Proxmox GPU config
Verify in this order
GPU + audio → vfio → VM → guest driver
Where it usually breaks
First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3548