9.20. CPU models


9.20.1. Choose a CPU model

You can select the appropriate CPU model for your virtual machines based on your cluster configuration. Choose between the host-model CPU, which provides maximum performance and feature access in homogeneous clusters, or named CPU models, which ensure compatibility and migration flexibility in heterogeneous clusters with different CPU types.

9.20.1.1. Host-model CPU

host-model is the default CPU configuration in OpenShift Virtualization. When a virtual machine instance (VMI) is created with host-model, libvirt automatically selects a CPU model that is closest to the physical CPU of the node where the VMI first runs. The host model required CPU features present on this initial node are included in the VMI’s domain definition.

The CPU model chosen by host-model is often not a standard named model supported by libvirt, which may include additional CPU features. Libvirt creates a CPU definition that only includes the available features on the initial node. This approach ensures:

  • The VMI can start successfully on the initial node.
  • Future live migrations only require the subset of CPU features used in the host-model, even if target nodes have different or additional features.
9.20.1.1.1. Homogeneous clusters

In a homogeneous cluster, all nodes have similar CPU features. The host-model CPU model is recommended for homogeneous clusters, and provides the following benefits:

  • Provides VMs with the closest match to the physical CPU.
  • VMs can use all CPU features available on the nodes.
  • Live migration works smoothly because all nodes share the same CPU features.
9.20.1.1.2. Live migration with host-model

Since the CPU model and features are determined by the initial node, all the host model required CPU features exposed to the VMI must also exist on any future live migration target nodes.

OpenShift Virtualization ensures compatibility by:

  1. Detecting all host-model-required-features.node.kubevirt.io/<cpuFeature> labels on the initial node.
  2. Storing these labels per VMI.
  3. Using these same required CPU features to set node selectors for all future live migrations.

This approach guarantees that VM migrations only target nodes that provide the CPU features actually needed by the VMI.

중요

Target nodes may support more CPU features than required, but they must support at minimum all features used by the VMI.

9.20.1.2. Named CPU models

Named CPU models allow you to explicitly select a CPU type for a virtual machine (VM). You can configure a named CPU model at the VM level or set a cluster-wide default using the HyperConverged custom resource (CR).

A node supports a named CPU model only if it includes all required CPU features defined by libvirt for that model. Nodes that support a specific CPU model are labeled with cpu-model.node.kubevirt.io/<cpuModel>. OpenShift Virtualization uses these labels to schedule VMs only to compatible nodes. When you configure a named CPU model, the VM receives a node selector that ensures it only runs on nodes labeled with that specific CPU model.

9.20.1.2.1. Heterogeneous clusters

In a heterogeneous cluster, nodes have different CPU generations or feature sets.

A virtual machine instance (VMI) inherits the host model CPU feature of the node where it is first scheduled. If the initial node has CPU features unsupported by other nodes, it can prevent the VM from being migrated to them.

Using a common named CPU model (for example, EPYC-IBPB or Haswell) is recommended for CPU models in heterogeneous clusters, and provides the following benefits:

  • Ensures that all nodes selected for migration support the required CPU features.
  • Maximizes VM migratability across nodes with different CPU types.
  • Prevents scheduling VMs on nodes that cannot support live migration targets.
중요

In heterogeneous clusters, using host-model can limit live migration options if the initial scheduling node has host model required CPU features that are not available on all other nodes in the cluster.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동