Welcome to TechNet Blogs Sign in | Join | Help

Ask the Core Team

Microsoft Enterprise Support Windows Server Core Team

News

  • Disclaimer: All postings are provided "AS IS" with no warranties, and confer no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Microsoft. Because a weblog is intended to provide a semi-permanent point-in-time snapshot, you should not consider out of date posts to reflect current thoughts and opinions.

    Locations of visitors to this page
How to enable Windows Server Backup support for the Hyper-V VSS Writer

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

Posted: Wednesday, August 20, 2008 8:35 PM by tomac
Filed under:

Comments

Taylor Brown's Blog said:

Over the last few months I have gotten a lot of questions about backing up Hyper-V virtual machines…

# August 20, 2008 11:37 PM

Hyper-V blog van Hans Vredevoort said:

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

# September 4, 2008 5:10 AM

Consulta con el equipo de Windows said:

Hola a todos, Una de las nuevas tecnologías que tenemos con Windows Server 2008 es la de virtualización

# September 4, 2008 5:48 AM

Windows Internals - L'équipe Française de Support Windows said:

Quelques mois après la mise à disposition de Hyper-V en version RTM, nous disposons déjà de quelques

# November 20, 2008 3:46 AM

Ask the Core Team said:

Hyper-V Beta released as part Windows Server 2008. The final release of Hyper-V happened shortly after

# December 23, 2008 8:42 AM

Rod Trent at myITforum.com said:

  Top Issues for Microsoft Support for Windows Server 2008 Hyper-V Hyper-V Beta released as part

# December 25, 2008 3:08 PM

German Virtualization Blog said:

Einer der Standardfragen bei der Microsoft Server Virtualisierung mit Hyper-V ist wie man eine Sicherung

# January 30, 2009 12:56 PM

Blog Opsmgr / SCOM 2007, and Windows 2008 , Seven ...in french said:

Non, je ne vais pas parler Rugby mais revenir sur le TOP 14 des problèmes Hyper-V , un article de ...

# February 19, 2009 10:54 AM

TONYSO said:

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

# May 15, 2009 1:48 PM

TONYSO said:

The matrix of considerations for backup and DR for Hyper-V is not simple, for example there are several

# May 26, 2009 2:59 PM

HyperVoria said:

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

# May 27, 2009 3:50 AM
Anonymous comments are disabled
Page view tracker