11.3. Managing automatic boot source updates
You can manage automatic updates for boot sources used to create virtual machines. This includes configuring update behavior for Red Hat and custom boot sources.
11.3.1. Managing automatic updates for all system-defined boot sources 링크 복사링크가 클립보드에 복사되었습니다!
Disabling automatic boot source imports and updates can lower resource usage. In disconnected environments, disabling automatic boot source updates prevents CDIDataImportCronOutdated alerts from filling up logs.
To disable automatic updates for all system-defined boot sources, set the enableCommonBootImageImport field value to false. Disabling automatic updates deletes the associated DataImportCron objects but does not remove previously imported boot source images. Setting this value to true turns automatic updates back on.
Custom boot sources are not affected by this setting.
Prerequisites
-
You have installed the OpenShift CLI (
oc).
Procedure
Enable or disable automatic boot source updates by editing the
HyperConvergedcustom resource (CR).To disable automatic boot source updates, set the
spec.enableCommonBootImageImportfield value in theHyperConvergedCR tofalse. For example:$ oc patch hyperconverged kubevirt-hyperconverged -n openshift-cnv \ --type json -p '[{"op": "replace", "path": \ "/spec/enableCommonBootImageImport", \ "value": false}]'To re-enable automatic boot source updates, set the
spec.enableCommonBootImageImportfield value in theHyperConvergedCR totrue. For example:$ oc patch hyperconverged kubevirt-hyperconverged -n openshift-cnv \ --type json -p '[{"op": "replace", "path": \ "/spec/enableCommonBootImageImport", \ "value": true}]'