How to enable Windows Server Backup support for the Hyper-V VSS Writer

How to enable Windows Server Backup support for the Hyper-V VSS Writer

  • Comments 21
  • Likes

In order to enable VSS based backups of Hyper-V VMs using Windows Server Backup, you must add the following registry keys to register the Hyper-V VSS Writer with Windows Server Backup. Note that the WindowsServerBackup key is not created when installing the Windows Server Backup feature. This key must be created manually.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT
\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}

Once you have the keys listed above created, you will need to create a String Value with the following.

Name: Application Identifier
Type: REG_SZ
Value: Hyper-V

When complete, the keys should resemble the following:

image

Windows Server Backup only supports volume based backups. When backing up virtual machines, you must select all volumes where VM related files are present.

For example, if you are using the default location for storing virtual machine configuration  (C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines) yet the VHD is stored on another volume, you must select both volumes in the backup.

When initiating recovery, select “Application Restore” and choose Hyper-V.  You must use this method otherwise you will not be allowed to replace files for running VMs. As part of the restore, existing VMs will be turned off and deleted. The VMs that you restore will be registered with Hyper-V.

There are some limitations and expected behavior that you should be aware of.

1: Virtual machines that contain dynamic disks in the guest operating system cannot be backed up using VSS. Only offline backups are supported. The other alternative is to backup the virtual machine using backup software inside the guest operating system as you would with a physical machine.

2: Virtual machines that do not have support for VSS Backups, such as Windows 2000, Windows XP, or virtual machines without Integration Services installed, will enter a saved state while the snapshot is taken and restore once the snapshot is complete.  You will also experience the same behavior if the backup component from Hyper-V Integration Services is disabled as shown below.

image

 

3: When performing a recovery from backup, the entire volume(s) must be restored. Individual VM restores are not supported with Windows Server Backup.

4: If the virtual machine contains 2 or more snapshots, the restore will fail. To workaround this issue:

A.   If the VM is running, turn off and delete the virtual machine.
B.   Select the “Files and Folder” recovery option to restore the snapshots folder.
       By default, this is located at
       C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots,
       but is configurable per VM.
C.   Select the individual snapshot folders to restore.
D.   Once this is complete, initiate the “Application” recovery option to restore the volume.

Rob Hefner
Support Escalation Engineer
Microsoft Enterprise Platforms Support

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • <p>Over the last few months I have gotten a lot of questions about backing up Hyper-V virtual machines…</p>

  • <p>In deze blogpost van Rob Hefner wordt uitgelegd hoe je via een registry instelling de Hyper-V VSS Writer</p>

  • <p>Hola a todos, Una de las nuevas tecnolog&amp;#237;as que tenemos con Windows Server 2008 es la de virtualizaci&amp;#243;n</p>

  • <p>Quelques mois apr&#232;s la mise &#224; disposition de Hyper-V en version RTM, nous disposons d&#233;j&#224; de quelques</p>

  • <p>Hyper-V Beta released as part Windows Server 2008. The final release of Hyper-V happened shortly after</p>

  • <p>&amp;#160; Top Issues for Microsoft Support for Windows Server 2008 Hyper-V Hyper-V Beta released as part</p>

  • <p>Einer der Standardfragen bei der Microsoft Server Virtualisierung mit Hyper-V ist wie man eine Sicherung</p>

  • <p>Non, je ne vais pas parler Rugby mais revenir sur le TOP 14 des probl&#232;mes Hyper-V , un article de&amp;#160;...</p>

  • <p>Snapshots in Hyper-V, checkpoints in SCVMM, diff-disks in VPC, undo in Office… can’t we all just get</p>

  • <p>The matrix of considerations for backup and DR for Hyper-V is not simple, for example there are several</p>

  • <p>Tony Soper: The matrix of considerations for backup and DR for Hyper-V is not simple, for example there are several methods to backup running VMs such as Windows Server Backup, DPM, diskshadow.exe, as well as non-Microsoft solutions such as Symantec Backup</p>

  • <p>You told: &quot;Individual VM restores are not supported with Windows Server Backup&quot;</p> <p>Can you please check this case?:</p> <p>I have 3 free RAID1 logical drives on my Hyper-V host.</p> <p>I format every logical drive as NTFS, D: E: F:</p> <p>I create 3 new VMs: ServerD, ServerE, ServerF</p> <p>I export ServerD on D:, ServerE on E:, ServerF on F:</p> <p>I delete every VMs then I import exported VMs.</p> <p>(in this way every VM's files still stored on individual drives, related NTFS links too).</p> <p>Can I restore individual VM?</p> <p>Thanks and best regards,</p> <p>Andrea</p>

  • <p>On Windows 2008 R2 you dont need to add the registry Key.</p>

  • <p>Is it needed to provide a backuptype (FULL or COPY) required by VSS while taking backup of a HyperV Virtual machines using HyperV VSS Writer? as its needed in case of backing up Exchange/SQL databases.</p> <p>Thanks</p>

  • <p>Can it be more disfunctional? &nbsp;Backup and restore all or none? &nbsp;I can&#39;t see how this is helpful. &nbsp;With a little forethought to data protection and recovery, indiviual machines should be able to restore. &nbsp;I have a problem with one VMD file corrupted. &nbsp;Now I have to overwrite ALL the VM&#39;s to the last backup to get it back? &nbsp; I wish the developers would give some thought to real world application of this utility. </p>