Recover Hyper-V and virtual machines

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Data Protection Manager, System Center 2012 - Data Protection Manager, System Center 2012 R2 Data Protection Manager

You can recover virtual machine backups as follows:

  • Recover to original location—The original virtual hard disk is deleted. DPM recovers the virtual hard disk and other configuration files on the original location by using the Hyper-V VSS writer. At the end of the recovery process, the virtual machine is still highly available. The resource group must be present to enable the recovery. If the resource group is not available, recover the virtual hard disk to an alternative location, and then make the virtual machine highly available.

  • Recover to alternative location—DPM supports alternate location recovery (ALR), which provides a seamless recovery of a protected Hyper-V virtual machine to a different server that runs Hyper-V, independent of the processor architecture. Hyper-V virtual machines that are recovered to a cluster node are not highly available.

  • Perform item-level recovery (ILR)—DPM supports item-level recovery (ILR), which allows you to perform a specific recovery of files, folders, volumes, and virtual hard disks from a host-level backup of Hyper-V virtual machines to a network share or a volume on a DPM protected server. The DPM protection agent doesn’t have to be installed on the guest operating system of the virtual machine to perform item-level recovery.

This table shows how these are supported for virtual machine backup scenarios.

Deployment Recovery to original location Recovery to alternative location Item-level recovery
Stand-alone host Yes Yes Yes
Clustered host Yes Yes Yes
Replica Yes Yes Yes
Using server message block (SMB) share Yes Yes Yes
Using live migration Yes Yes Yes

The following table shows the supported and unsupported scenarios for recovering files, folders, volumes, and virtual hard disks by using ILR on a Hyper-V virtual machine.

Scenario Volumes or files/folders recovery Virtual hard disk recovery
Recovery from a virtual machine that has snapshots Yes Yes
Recovery from a secondary DPM server Yes Yes
Recovery from tape backups No Yes
Recovery from NTFS file system volumes only Yes Not applicable
Recovery from non-NTFS file system volumes No Entire virtual hard disk only
Recovery from a virtual hard disk that is partitioned by using dynamic disk partitioning No Entire virtual hard disk only

ILR recovery

  • DPM provides both host-based and guest-based protection for Hyper-V virtual machines.

  • DPM supports item-level recovery (ILR), which enables you to recover specific files, folders, volumes, and virtual hard disks from a host-level backup of Hyper-V virtual machines to a network share or a volume on a DPM protected server.

    You can’t select and recover multiple virtual hard disks at the same time.

  • You cannot select and recover multiple virtual hard disks at the same time. When you recover a virtual hard disk of a virtual machine that has Hyper-V snapshots, .avhd files are not displayed in the Recoverable Items pane, but DPM recovers the parent virtual hard disk and all the associated .avhd files.

  • DPM saves virtual hard disks in a custom directory structure in the following format: DPM_<backup-time>\DPM_Recovered_At_<RecoveryTime>\<Path of the virtual hard disk on the protected computer> with the exact file system hierarchy that is used on a protected computer with the DPM protection agent installed.

  • If you use a version of Windows Server before Windows Server 2008, you must have the Hyper-V role enabled on the DPM server to perform item-level recoveries. During item-level recovery, DPM has to mount the virtual hard disks of the protected virtual machines.

  • Item-level recovery does not support recovery of an item to its original location.

  • Item-level recovery is not supported if the Diff virtual hard disk and Base virtual hard disk are on different volumes.

  • You cannot traverse or browse the mount points when you explore a virtual hard disk for item-level recovery.

Perform recovery

  1. In the DPM Administrator Console, go to the Recovery view. Browse or search for the data you want to recover.

    image1 for Recover Hyper-V and virtual machines topic

  2. In the results pane, select the data. Available recovery points are indicated in bold on the calendar in the recovery points section. Select the bold date for the recovery point you want to recover.

  3. In the Recoverable item pane, select the recoverable item you want to recover. Click Recover on the tool ribbon to start the Recovery Wizard. Review the selection, and then click Next.

    Note the following:

    • In a non-CSV environment, the destination is a volume in available storage in the cluster.

    • If you’re recovering to an alternative stand-alone server that's running Hyper-V, and if the recovered virtual machine was backed up in an online state, and it's in a saved state after recovery, delete the saved state of that virtual machine from the Hyper-V Manager console and start it. Always verify that the virtual machine’s network configuration is correct after the alternative location recovery.

    • If you’re performing ILR in the Recoverable Items list you can view a list of files and folders and select a VHD or volumes of a VHD.

      Note: DPM saves files and folders in a custom directory structure in the following format: <Recovery destination that is selected by the user>\<Virtual machine name>_<Backup time stamp> with the exact file system hierarchy that is used on a protected computer with the DPM protection agent installed.

    • If you’re recovering a virtual machine that uses live migration you can only recovery to its original location if there is a replica from that location. For example, recovery is possible if a virtual machine is hosted on Host A and during this time 10 replicas are taken, and then the virtual machine is migrated to Host B, where two replicas are taken. Original location recovery means that the virtual machine is recovered to Host B if the latest replicas are used. If you want to recover the virtual machine to Host A, it uses an alternate location recovery flow.

  4. Specify the type of recovery you would like to perform:

    • Recover to the original location

    • Recover to an alternative location—Type the alternative location, or click Browse and then on the Specify Alternate Recovery Destination dialog box, select a recovery location.

    • Copy to tape—This option copies the volume that contains the selected data to a tape in a DPM library. When you select this option, click Next and, on the Specify library screen, select library details and tape options. You can compress or encrypt data on this screen.

      image2 for Recover Hyper-V and virtual machines topic

    • Specify your recovery options:

      • Existing version recovery behavior—Set this option appears if you selected to recover to original location.

      • Restore security—Set this option if you selected to recover to the original or alternative location.

  5. In Network bandwidth usage throttling, click Modify to enable throttling and to select Settings and Work Schedule.

    image3 for Recover Hyper-V and virtual machines topic

  6. In Notification, click Send an e-mail when the recovery completes, and specify the recipients. Separate the email addresses with commas.

  7. Review settings, and then click Recover.