1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/virt-setting-policy-attributes.adoc
Lavanya 7a28d02e32 This is a combination of 3 commits on 10/13.
This is a combination of 8 commits.

scheduling virtual machines

topic yml

review input

yaml indentation

host model

fix build issues

table width

review input

indentation

This is a combination of 2 commits.

peer review

capitalization
2020-10-13 15:55:08 -04:00

29 lines
929 B
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/advanced_vm_management/virt-schedule-vms.adoc
[id="virt-setting-policy-attributes_{context}"]
= Setting a policy attribute and CPU feature
You can set a policy attribute and CPU feature for each virtual machine (VM) to ensure that it is scheduled on a node according to policy and feature. The CPU feature that you set is verified to ensure that it is supported by the host CPU or emulated by the hypervisor.
.Procedure
* Edit the `domain` spec of your VM configuration file. The following example sets the CPU feature and the `require` policy for a virtual machine instance (VMI):
+
[source,yaml]
----
apiVersion: v1
kind: VirtualMachine
metadata:
name: myvmi
spec:
domain:
cpu:
features:
- name: apic <1>
policy: require <2>
----
<1> Name of the CPU feature for the VM or VMI.
<2> Policy attribute for the VM or VMI.