8.22.3. Schedule virtual machines
You can schedule a virtual machine (VM) on a node by ensuring that the VM’s CPU model and policy attribute are matched for compatibility with the CPU models and policy attributes supported by the node.
8.22.3.1. Set a VM to inherit the node CPU model 링크 복사링크가 클립보드에 복사되었습니다!
Set the CPU model of a virtual machine (VM) to host-model so that the VM inherits the CPU model of the node where it is scheduled, and can use the CPU features that the node provides.
Procedure
Edit the
domainspec of your VM configuration file. The following example showshost-modelbeing specified for the virtual machine:apiVersion: kubevirt/v1alpha3 kind: VirtualMachine metadata: name: myvm spec: template: spec: domain: cpu: model: host-model-
spec.template.spec.domain.cpu.modeldefines the VM that inherits the CPU model of the node where it is scheduled.
-