Use this when a guest needs the host's exact CPU features, such as specific instructions or nested virtualization, on KVM or Proxmox.
CPU Passthrough
CPU passthrough (host-passthrough in KVM) exposes the host's exact CPU model and features to the guest for maximum performance and instruction support, but ties live migration to hosts with identical CPUs.
1. CPU passthrough (host mode) exposes all host CPU features.
2. Best performance.
3. Live migration only between identical CPUs.
4. Use in homogeneous clusters or single hosts.
5. Different from PCI passthrough.
host CPU features → passed to guest
Context & applicabilityCommon mistakes · platform/version boundaries
- Using host passthrough in mixed-CPU clusters, breaking live migration.
- Guests detecting CPU features that later disappear after migration (crashes).
- Not checking licensing that counts physical cores.
Operational reference
Fast context before you go deeper.
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
grep -o -E 'avx512[a-z]*|aes|avx2' /proc/cpuinfo | sort -u # in the guest
The guest should show the same CPU flags as the host.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- host-passthrough breaks migration to different CPUs.
- Guest sees host microcode quirks too.
- Use host-model when you need some portability.
qm set <vmid> --cpu host— expose host CPU (Proxmox)virsh dumpxml <vm> | grep host-passthrough— libvirt passthroughgrep -c avx2 /proc/cpuinfo— guest sees host features
ReferenceWhy it matters1 section · depth on demand
Trade-offs
| host-passthrough | Named/baseline model | |
|---|---|---|
| Performance | Best, all CPU features | Slightly lower |
| Live migration | Only to identical CPUs | Across mixed CPU generations |
| Nested virtualisation | Works | May need extra flags |
Proxmox default CPU type is x86-64-v2-AES; choose host only in homogeneous clusters or for single hosts.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
CPU passthrough (host CPU type, host-passthrough) exposes the exact host CPU model and flags to the guest: best performance and access to every instruction (AVX-512, AMX, newest crypto), but migration only to identical CPUs and microcode.
Use it for single-host workloads, HPC, nested virtualization labs or when software checks for specific CPU features; use a named baseline model in clusters.
ReferenceConfiguration & state1 section · depth on demand
Configuration
# libvirt
<cpu mode='host-passthrough' check='none' migratable='on'/>
# Proxmox
qm set 101 --cpu host
Documented example, not captured output. Live migration then requires identical CPUs and microcode on all hosts.
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 CPU Virtualization → CPU Passthrough. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%