Use this when passthrough fails: VM won't start, device missing or driver errors.
Passthrough Troubleshooting
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.
1. Check IOMMU on, groups, vfio binding, firmware type.
2. Device reset problems after VM restart.
3. Interrupt remapping errors.
4. Host driver grabbing the device.
5. Guest driver errors.
firmware → IOMMU → vfio → QEMU → guest driver
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lspci -nnkPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
dmesg | grep -e DMAR -e IOMMU # IOMMU on? add intel_iommu=on / amd_iommu=on
find /sys/kernel/iommu_groups/ -type l # devices per IOMMU group
lspci -nnk -s 01:00.0 # "Kernel driver in use: vfio-pci"?
Common problems: IOMMU disabled in BIOS or kernel, the device shares an IOMMU group with other devices (needs a different slot or ACS support), the host driver grabbed the device first (bind it to vfio-pci via /etc/modprobe.d/vfio.conf), GPU reset bugs, or missing UEFI/ROM for the guest. Passthrough VMs need full memory reservation and usually cannot live-migrate.
Step 2 Common mistakes Narrow the fault
- Devices sharing an IOMMU group with other devices.
- Check IOMMU first.
- Host driver may still own the device.
- Firmware options often block it.
dmesg | grep -i -e vfio -e DMAR -e iommu— passthrough errorslspci -nnk -s <bdf>— driver bindingjournalctl -u pve-guests— VM start errors
ReferenceHow it works1 section · depth on demand
Method
| Problem | Check |
|---|---|
| VM won't start: device busy | Host driver still bound; lspci -nnk, bind to vfio-pci |
No IOMMU detected / group not viable | IOMMU off, other devices in the same group |
| GPU black screen / Code 43 | OVMF, x-vga, ROM, host framebuffer using GPU |
| Works once, fails after VM reboot | Device reset issue (FLR not supported) |
| Poor performance | Wrong slot width/speed (lspci -vv LnkSta), interrupts, NUMA |
| SR-IOV VFs missing after reboot | sriov_numvfs not persistent |
dmesg | grep -iE 'vfio|iommu|DMAR'
journalctl -b | grep -i qemu | tail
ReferenceImportant terms & boundaries1 section · depth on demand
Troubleshooting order
1. Firmware: VT-d/AMD-Vi and (for SR-IOV) SR-IOV enabled.
2. Kernel: IOMMU active, groups populated.
3. Driver: device bound to vfio-pci, not the host driver.
4. VM: q35/UEFI, device added, ROM settings for GPUs.
5. Guest: vendor driver loaded; check device manager/lspci.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in PCI & Device Passthrough → Passthrough Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/driver-api/vfio.html · confidence 94%