Pcornel
Virtualization · VM Migration

CPU Compatibility

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

Back to the Topic

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 CPUs
  • Get-VMProcessor <vm> | fl CompatibilityForMigrationEnabled — Hyper-V
  • qm 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

BoundaryMeaningEvidence limit
ModelGuest-visible CPU contractMore important than label alone
FeaturesInstructions/stateMust exist at destination
MaskingCommon baselineMay reduce features
ModeCold vs liveDifferent constraints

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

Confirmation

Confirm action

Continue?