15.4. Use virtual machine file restore
Discover VM backups, restore files, and access restored files through a web browser or SSH-based tools.
15.4.1. Enable OADP VMFR 링크 복사링크가 클립보드에 복사되었습니다!
Enable OADP virtual machine file restore (VMFR) by configuring the DataProtectionApplication (DPA) custom resource (CR) with the vmFileRestore section. You can allow file-level restore operations for VM backups.
Prerequisites
-
You are logged in to the cluster with the
cluster-adminrole. - The OADP Operator is installed.
-
The
DataProtectionApplication(DPA) CR is configured. - OpenShift Virtualization is installed and running on the cluster.
- You have a default storage class configured on the cluster.
Procedure
Edit the
DataProtectionApplicationCR to enable the VMFR feature:apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: name: oadp-backup namespace: openshift-adp spec: configuration: nodeAgent: enable: true uploaderType: kopia velero: defaultPlugins: - kubevirt - csi - openshift - aws disableFsBackup: false vmFileRestore: enable: true backupLocations: - velero: config: profile: "default" region: <region> provider: aws default: true credential: key: cloud name: <cloud_credentials> objectStorage: bucket: <bucket_name> prefix: velerowhere:
kubevirt-
Specifies the
kubevirtVelero plugin in thedefaultPluginslist. This plugin is required for VM backup and file-level restore operations. vmFileRestore-
Specifies the section in the DPA
specto enable the VMFR feature. enable-
Specifies whether to enable the VMFR feature. Set to
trueto enable the feature.
Apply the DPA configuration by running the following command:
$ oc apply -f <dpa_cr_filename>Replace
<dpa_cr_filename>with the file name containing the DPA CR configuration.
Verification
To verify that the DPA is reconciled with the VMFR feature enabled, run the following command:
$ oc get dpa -n openshift-adp -o yamlIn the output, verify that the
status.conditionssection includes a condition withtype: VMFileRestoreReadyandstatus: "True".To verify that the
oadp-vm-file-restore-controller-managerpod is running, run the following command:$ oc get pod -n openshift-adpThe output should include a running
oadp-vm-file-restore-controller-managerpod.