Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Passthrough Troubleshooting

Direct 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.

When to use this

Use this when passthrough fails: VM won't start, device missing or driver errors.

First 30 seconds

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.

Operational verification

firmware → IOMMU → vfio → QEMU → guest driver

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware · Linux / VFIO
Key commandlspci -nnk
Scope / prerequisiteUse this when passthrough fails: VM won't start, device missing or driver errors.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Virtualization command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.
Key points
  • Check IOMMU first.
  • Host driver may still own the device.
  • Firmware options often block it.
Key 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
ReferenceHow it works1 section · depth on demand

Method

ProblemCheck
VM won't start: device busyHost driver still bound; lspci -nnk, bind to vfio-pci
No IOMMU detected / group not viableIOMMU off, other devices in the same group
GPU black screen / Code 43OVMF, x-vga, ROM, host framebuffer using GPU
Works once, fails after VM rebootDevice reset issue (FLR not supported)
Poor performanceWrong slot width/speed (lspci -vv LnkSta), interrupts, NUMA
SR-IOV VFs missing after rebootsriov_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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Confirmation

Confirm action

Continue?