Restoring Hyper-V and VMs using Windows Server Backup

Cluster, Hyper-V Replica, Storage Migration, Storage Replica, and other features make for a higher availability for Hyper-V virtual machines, but it is impossible to provide 100 percent assurance in any system. For example, when we lose a host computer, not only does a single system go offline but also all the virtual machines that are running in there; it does not matter if it's an application, a virtual machine, or the entire Hyper-V host that needs to be restored. VM and Storage replication solutions do not replace the need for backup because when you delete a file from the primary site, it will get deleted from the secondary site as well. In simple words, you have to be prepared to bring your systems online as soon as possible in case of a failure.

One of the benefits of Windows Server Backup is that it is easy to use and it is present in the OS already. Your hosts and its VMs will be up and running with a couple of clicks.

This recipe will guide you through the steps to restore your virtual machines using Windows Server Backup.

Getting ready

Windows Server Backup only supports restores the backups that were made by it. Make sure that you have access to these backups before you begin.

How to do it...

In the following steps, you will see the steps to restore a backup containing virtual machines and the host components using Windows Server Backup:

  1. If the computer on which you restore the data does not have Windows Server Backup installed, proceed with the following steps. In case it is already installed, go to step 7.
  2. To install the Windows Server Backup feature, open Server Manager from the taskbar.
  3. In the Server Manager Dashboard, click on Manage and select Add Roles and Features.
  4. In the Before you begin page, click on Next four times.
  5. In Select features, select Windows Server Backup.
  6. Click on Next and then click on Install. Wait for the installation to be completed.
  7. To open WSB, in the start menu, type wbadmin.msc.
  8. In the Windows Server Backup console, in the pane on the right-hand side, click on Restore.
  9. In the Recovery Wizard window, under Getting Started, select This server if the backup is stored locally, or select A backup stored on another location if the backup is in a storage or network folder, as shown in the following screenshot. Then click on Next.
    How to do it...
  10. In the Specify Location Type window, you can make your choice from the Local drives or Remote shared folder options. Select the option where your backup files are situated and click on Next.
  11. In the Select Backup Location window, click on the drop-down list to select the backup location where the files are placed and then click on Next.
  12. In the Select Server window, select the server which you want to restore and click on Next.
  13. In Select Backup Date, select the month, day, and time for restoring, as shown in the following screenshot. If you want to check the content of the backup, click on the hyperlink in front of Recoverable items and then click on Next when done.
    How to do it...
  14. In the Select Recovery Type page, select what you want to recover. You can choose from the following options—Files and folders, Hyper-V, Volumes, Applications, and System State. To recover virtual machine and the host components, select Hyper-V, as shown in the following screenshot and click on Next:
    How to do it...
  15. On the Select Items to Recover page, select the virtual machine that you want to restore, as shown in the following screenshot. If you need to recover the Hyper-V settings, check the Host Component option and click on Next.
    How to do it...
  16. In the Specify Recovery Options, you can select from the following options—Recover to original location, Recover to alternate location, and copy to folder. Select the options that suit your environment and click on Next. In the Confirmation window, verify the recovery items that will be restored and click on Recover. Wait until the restore is complete and click on Close to close the Recovery Wizard.
  17. Double click on the recovery event to check the recovered items in the Windows Server Backup console, under Messages. The Application recovery window will open, as shown in the following screenshot:
    How to do it...
  18. To check the recovered files, click on View list of all recovered files in the Application recovery window.
  19. To check whether the restoration was successful, open the Hyper-V Manager and check whether the restored virtual machines are listed.

How it works...

In a scenario where you need to restore a virtual machine, the first thing to do is to make sure that WSB is already installed and the backup files are accessible from the computer where you want to restore the data.

In the Recovery Wizard, you can restore the server by specifying the backup location. The location can be a local drive, such as attached disks and storages or it can be a remote shared folder. Then the wizard shows a schedule from which you can select the last backup file. After selecting the backup date and time, the recovery type Hyper-V option must be selected to recover virtual machines. A list with the available virtual machines will be displayed, from which you can select the ones to be restored to the original or alternate location. The next step is just to wait for the restore process to finish and make sure that everything is online again.

See also

  • The Enabling the Hyper-V role recipe in Chapter 1, Installing and Managing Hyper-V in Full, Server Core and Nano Server
  • The Learning and utilizing basic commands in PowerShell recipe in Chapter 4, Saving Time and Cost with Hyper-V Automation
  • The Backing up Hyper-V and virtual machines using Windows Server Backup recipe in this chapter
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.213.128