CPU Compatibility
Cheat sheet · https://pcornel.dk/topic.php?topic=3584
Answer
A running guest can contain code paths and architectural state that assume CPU instructions/features already exposed by the source. Migration therefore requires an exposed CPU model/baseline that remains valid on the destination, often through compatible processors or masked/baselined features.
Remember
- Same architecture label does not mean identical exposed CPU features.
- A guest that has booted with a feature may execute that feature before or immediately after migration.
- CPU masking/baselines improve mobility by reducing exposed features, potentially trading away some CPU capabilities.
- Cold migration can relax active-state constraints, but the destination must still support the VM's configured virtual CPU model.
First checks
virsh cpu-compare <host.xml>— compare CPUsGet-VMProcessor <vm> | fl CompatibilityForMigrationEnabled— Hyper-Vqm config <vmid> | grep cpu— Proxmox CPU type
Verify in this order
VM CPU model → subset of target CPU features → migration allowed
Where it usually breaks
First mismatch in cluster membership/quorum → node capability/health → placement policy → resource ownership → migration/failover task → guest/workload continuity; preserve identity/native error/pre-state before mutation.
VM Migration → CPU Compatibility reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Model | Guest-visible CPU contract | More important than label alone |
| Features | Instructions/state | Must exist at destination |
| Masking | Common baseline | May reduce features |
| Mode | Cold vs live | Different constraints |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3584