Pcornel
Virtualization · CPU Virtualization

CPU Compatibility

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

Back to the Topic

Answer

CPU compatibility determines whether a VM can live-migrate between hosts: the destination must support every CPU feature the VM was started with, which is why clusters use EVC (vSphere), processor compatibility mode (Hyper-V) or a common CPU model (KVM).

Remember

  • A VM keeps its CPU feature set until power-cycled.
  • EVC/compat mode trades features for mobility.
  • Mixed CPU generations need a common baseline.

First checks

  • virsh cpu-baseline host1.xml host2.xml — common CPU model
  • Get-VMProcessor <vm> | fl CompatibilityForMigrationEnabled — Hyper-V compatibility
  • esxcli system settings advanced list -o /Migrate/Enabled — ESXi (EVC set in vCenter)

Verify in this order

CPU baseline → guest features → migration allowed

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.

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

Confirmation

Confirm action

Continue?