mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
30 lines
868 B
Plaintext
30 lines
868 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/virtual_machines/advanced_vm_management/virt-schedule-vms.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="virt-schedule-cpu-host-model-vms_{context}"]
|
|
= Scheduling virtual machines with the host model
|
|
|
|
[role="_abstract"]
|
|
When the CPU model for a virtual machine (VM) is set to `host-model`, the VM inherits the CPU model of the node where it is scheduled.
|
|
|
|
.Procedure
|
|
|
|
* Edit the `domain` spec of your VM configuration file. The following example shows `host-model` being specified for the virtual machine:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: kubevirt/v1alpha3
|
|
kind: VirtualMachine
|
|
metadata:
|
|
name: myvm
|
|
spec:
|
|
template:
|
|
spec:
|
|
domain:
|
|
cpu:
|
|
model: host-model
|
|
----
|
|
** `spec.template.spec.domain.cpu.model` defines the VM that inherits the CPU model of the node where it is scheduled.
|