mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 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
|
|
|
|
[role="_abstract"]
|
|
You can 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.
|