Pcornel
Virtualization · CPU Virtualization

Host CPU Model

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

Back to the Topic

Answer

The host CPU model setting decides which CPU the guest sees: a generic or baseline model (for example x86-64-v2 or an EVC level) maximizes migration compatibility, while host-model or host-passthrough exposes more features and speed.

Remember

  • Generic model = portable but fewer features.
  • Changing model needs a VM restart.
  • Guest OS may require certain features (e.g. x86-64-v2).

First checks

  • virsh capabilities | grep -A2 '<model' — host CPU model
  • lscpu | grep 'Model name' — physical CPU
  • virsh domcapabilities | grep -A3 host-model — host-model expansion

Verify in this order

physical CPU → hypervisor CPU model → guest

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=3486

Confirmation

Confirm action

Continue?