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-enabling-bootsource-update.adoc

23 lines
1019 B
Plaintext

// Module included in the following assembly:
//
// * virt/virtual_machines/advanced_vm_management/virt-automatic-bootsource-updates.adoc
//
:_content-type: PROCEDURE
[id="virt-enabling-bootsource-update_{context}"]
= Enabling automatic boot source updates
If you have boot sources from {VirtProductName} 4.9 or earlier, you must manually turn on automatic updates for these boot sources. All boot sources in {VirtProductName} 4.10 and later are automatically updated by default.
To enable automatic boot source imports and updates, set the `cdi.kubevirt.io/dataImportCron` field to `true` for each boot source you want to update automatically.
.Procedure
* To turn on automatic updates for a boot source, use the following command to apply the `dataImportCron` label to the data source:
+
[source,terminal]
----
$ oc label --overwrite DataSource rhel8 -n openshift-virtualization-os-images cdi.kubevirt.io/dataImportCron=true <1>
----
<1> Specifying `true` turns on automatic updates for the `rhel8` boot source.