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-admin role.
  • 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

  1. Edit the DataProtectionApplication CR 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: velero

    where:

    kubevirt
    Specifies the kubevirt Velero plugin in the defaultPlugins list. This plugin is required for VM backup and file-level restore operations.
    vmFileRestore
    Specifies the section in the DPA spec to enable the VMFR feature.
    enable
    Specifies whether to enable the VMFR feature. Set to true to enable the feature.
  2. 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

  1. To verify that the DPA is reconciled with the VMFR feature enabled, run the following command:

    $ oc get dpa -n openshift-adp -o yaml

    In the output, verify that the status.conditions section includes a condition with type: VMFileRestoreReady and status: "True".

  2. To verify that the oadp-vm-file-restore-controller-manager pod is running, run the following command:

    $ oc get pod -n openshift-adp

    The output should include a running oadp-vm-file-restore-controller-manager pod.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동