1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/virt-configuring-default-cpu-model.adoc
2023-10-30 10:13:25 -04:00

43 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * virt/advanced_vm_management/virt-configuring-default-cpu-model.adoc
:_mod-docs-content-type: PROCEDURE
[id="virt-configuring-default-cpu-model_{context}"]
= Configuring the default CPU model
Configure the `defaultCPUModel` by updating the `HyperConverged` custom resource (CR). You can change the `defaultCPUModel` while {VirtProductName} is running.
[NOTE]
====
The `defaultCPUModel` is case sensitive.
====
.Prerequisites
* Install the OpenShift CLI (oc).
.Procedure
. Open the `HyperConverged` CR by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
----
. Add the `defaultCPUModel` field to the CR and set the value to the name of a CPU model that exists in the cluster:
+
[source,yaml,subs="attributes+"]
----
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
namespace: {CNVNamespace}
spec:
defaultCPUModel: "EPYC"
----
. Apply the YAML file to your cluster.