Use this when choosing which CPU model a VM sees, balancing performance features against live-migration compatibility.
Host CPU Model
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.
1. The host CPU model determines what can be offered to guests.
2. host-model copies features but stays migratable to same/newer.
3. Know CPU generations in the cluster.
4. Microcode updates can change flags.
5. Record CPU inventory.
physical CPU → hypervisor CPU model → guest
Context & applicabilityCommon mistakes · platform/version boundaries
- Using
kvm64and losing AES-NI, slowing encryption heavily. - Choosing
hoston clusters with different CPU generations. - Windows guests failing to boot on
x86-64-v3with older CPUs in the cluster.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Generic model = portable but fewer features.
- Changing model needs a VM restart.
- Guest OS may require certain features (e.g. x86-64-v2).
virsh capabilities | grep -A2 '<model'— host CPU modellscpu | grep 'Model name'— physical CPUvirsh domcapabilities | grep -A3 host-model— host-model expansion
ReferenceWhy it matters1 section · depth on demand
Choosing a model
- Mixed CPU generations in a cluster: use a baseline model (KVM named model or
x86-64-v2/v3, vSphere EVC mode, Hyper-V processor compatibility mode). - Same CPU everywhere and no migration to older hosts:
host/passthrough for best performance.
Check from the guest with lscpu (flags) or coreinfo on Windows. Some guest software (for example newer RHEL 9 needs x86-64-v2) fails on too-old models.
ReferenceImportant terms & boundaries2 sections · depth on demand
Proxmox/QEMU models
| Model | Includes | Use |
|---|---|---|
kvm64 | Very old baseline | Avoid (missing AES, AVX) |
x86-64-v2-AES | SSE4.2, POPCNT, AES | Proxmox 8 default, mixed clusters |
x86-64-v3 | AVX2, BMI, FMA | Haswell/Zen 1 and newer |
host | All host features | Single host or identical hosts |
In depth
The host CPU model and generation determine available features, per-core performance and licensing costs (many products license per core). Mixed generations in a cluster force the lowest common baseline.
lscpu | grep -E 'Model name|Socket|Core|Thread|NUMA'
esxcli hardware cpu global get
Get-CimInstance Win32_Processor | Select Name,NumberOfCores
When refreshing hardware, plan the migration path: temporarily lower the baseline (EVC or CPU model) during the transition, then raise it after old hosts leave.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CPU Virtualization → Host CPU Model. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%