1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/virt-enabling-persistent-efi.adoc
2025-05-21 18:36:05 +00:00

26 lines
888 B
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/advanced_vm_management/virt-uefi-mode-for-vms.adoc
:_mod-docs-content-type: PROCEDURE
[id="virt-enabling-persistent-efi_{context}"]
= Enabling persistent EFI
You can enable EFI persistence in a VM by configuring an RWX storage class at the cluster level and adjusting the settings in the EFI section of the VM.
.Prerequisites
* You must have cluster administrator privileges.
* You must have a storage class that supports RWX access mode and FS volume mode.
* You have installed the {oc-first}.
.Procedure
* Enable the `VMPersistentState` feature gate by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
--type json -p '[{"op":"replace","path":"/spec/featureGates/VMPersistentState", "value": true}]'
----