Pcornel
Virtualization · VM Hardware › vCPU

CPU Type

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

Back to the Topic

Answer

A virtual CPU type controls which processor identity and baseline feature set the guest sees. Platforms may expose a generic compatibility model, a host-like model or another named profile.

Remember

  • CPU type is a presented model, not necessarily the exact physical CPU model.
  • A more host-specific model may expose more features but reduce portability.
  • A compatibility model may intentionally hide features available on the host.
  • Changing CPU model can alter guest-visible CPUID and application capabilities.

First checks

  • qm config <vmid> | grep cpu — Proxmox CPU type (host, x86-64-v2-AES…)
  • virsh dumpxml <vm> | grep -A3 '<cpu' — libvirt CPU mode/model
  • Get-VMProcessor <vm> | fl CompatibilityForMigrationEnabled — Hyper-V compatibility mode

Verify in this order

CPU model → exposed flags → guest features → migration compatibility

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.

VM Hardware → vCPU → CPU Type reference map

BoundaryMeaningEvidence limit
Generic modelStable compatibility baselineMay hide newer features
Host-like modelCloser to current hostCan reduce portability
Guest CPUIDAdvertised identity/featuresVirtualized view
Migration setHosts that satisfy modelMust be validated

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3452

Confirmation

Confirm action

Continue?