Pcornel
Virtualization · PCI & Device Passthrough

Passthrough Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3553

Back to the Topic

Answer

Troubleshoot PCI passthrough by checking that IOMMU is enabled (dmesg | grep -e DMAR -e IOMMU), that the device is in a clean IOMMU group and bound to vfio-pci (lspci -nnk), firmware settings such as Above 4G decoding, and the guest's driver errors.

Remember

  • Check IOMMU first.
  • Host driver may still own the device.
  • Firmware options often block it.

First checks

  • dmesg | grep -i -e vfio -e DMAR -e iommu — passthrough errors
  • lspci -nnk -s <bdf> — driver binding
  • journalctl -u pve-guests — VM start errors

Commands

lspci -nnk
Operational command for Inspect PCI device and bound driver. Focus fields: PCI address, vendor/device id, kernel driver…

Verify in this order

firmware → IOMMU → vfio → QEMU → 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=3553

Confirmation

Confirm action

Continue?