Restore virtual machine from Snapshot or backups
NetBackup features to restore the virtual machines from snapshot function as well as from backups for a particular name space. The performed backups and snapshots are displayed on the Recovery points tab.
Note:
This feature is applicable to backups taken in this 11.1 release. However, for backups taken in older releases, select Restore namespace option. Refer step 4 in the following procedure.
Warning:
Restoring virtual machines from a KubeVirt-enabled OpenShift cluster to a Vanilla Kubernetes cluster (without KubeVirt) results in only PVCs being restored. VM objects will not be visible or functional due to the absence of KubeVirt on the target cluster.
Ensure that the target Kubernetes cluster has KubeVirt installed and configured before restoring VM workloads from a KubeVirt-enabled source. Without KubeVirt, only PVCs will be restored, and VM definitions will be ignored or fail to deploy.
To restore a virtual machine
Note:
Single VM Restore is not supported for backups that were taken using a media server version earlier than NetBackup 11.1, even if the primary server and NetBackup Kubernetes operator are running NetBackup 11.1 or later. In such mixed‑version environments, Single VM Restore attempts may fail with status 2892. Restoring the entire namespace is supported and works as expected.
- On the left, click Workloads > Kubernetes.
- On the Namespace tab, click the namespace of the asset that you want to recover.
- Click Recovery points tab.
The Recovery points tab shows you all the recovery points with the date, time, and copies of the backup. You can set filters to filter the displayed recovery points. Click the date in the Date column, to view the details of the recovery point. The Recovery points details dialog shows the resources that were backed up, like config maps, secrets, persistent volumes, pod, and so on.
- In the Copies column, click the # copies button. For example, if there are two copies, the button displays as 2 copies.
- Locate the recovery point of which you want to restore the virtual machine. Click kebab menu and select Restore virtual machine.
- Restore virtual machine wizard is displayed.
- On the first tab of Recovery target, The target cluster is auto-populated. Click Next.
- Recovery options step is displayed. Select one option from All virtual machines or Specific virtual machine.
- Select Clear virtual machine MAC address during restore option if you want to remove the old assigned MAC address so that a new one can be generated when the VM starts up again.
- Select at least one option from Failure strategy to recover. The following are the available options:
Note:
If a failure occurs during the restore of metadata or PVCs, the restore job runs according to the failure strategy selected. However, the dependent resources of selected virtual machines will be recovered automatically.
Select Fail fast to terminate the restore for any failure occurrence. (Default selected)
Select Proceed ahead to continue restoring the next PVC. If the parent image (first image) restore fails then the restore job terminates.
Select Retry to specify a retry count for the metadata or PVC restore. If the restore fails even after retries, then the restore job terminates. You can select up to Five retries. Default is Three.
Note:
The selected failure strategy is displayed in the Activity monitor.
- Click Next.
- NetBackup displays the summary information of the selected or specified values. Click Start recovery.
- Once you click Start recovery, NetBackup take you to Restore activity tab and displays the job activity initiated.
Note:
You can also view the recovery activity in Activity monitor.