CPU Type
Cheat sheet · https://pcornel.dk/topic.php?topic=3452
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/modelGet-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Generic model | Stable compatibility baseline | May hide newer features |
| Host-like model | Closer to current host | Can reduce portability |
| Guest CPUID | Advertised identity/features | Virtualized view |
| Migration set | Hosts that satisfy model | Must 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