Taiwan CSS Platform Team

Your Potential, Our Passion.

Hyper-V - 如何使用 WSB 備份 VM? (How to use WSB to backup Hyper-V VM files)

Hyper-V - 如何使用 WSB 備份 VM? (How to use WSB to backup Hyper-V VM files)

  • Comments 1
  • Likes

REGISTER HYPER-V WITH WSB VSS

===================================

Hyper-V does not automatically register its VSS writer for use with WSB. You must manually add the registry key and value.

Please run the following two commands in DOS prompt to register Hyper-V VSS writer for use with WSB

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}"

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /v "Application Identifier" /t REG_SZ /d Hyper-V

BACKUP STEPS

===================================

1. Go to Start | Administrative Tools | Windows Server Backup.

2. If backing up a remote host, choose Connect to Another Computer and type in the Hyper-V host.

3. Choose either Backup Once or Backup Schedule.

4. Select Backup configuration - Full server or Custom.

5. Choose the location to store the backup.

6. Choose either VSS Full or Copy Backup. For host-based backups where no other backups are occurring with the VMs, choose VSS full backup.

7. Once you have confirmed the details, select Backup.

Note:

- You must back up all volumes related to a VM, including Virtual Hard Disks (VHDs), VM configuration files, and snapshots.

- If you are creating a Backup Schedule, you must use a dedicated local volume that will be formatted and used exclusively by WSB. In contrast, if you are performing a Backup Once job, you can store the backup on a non-dedicated local volume, a removable device, or a network share.

- If the Integration Components are not installed within the VM being backed up, WSB will save the state of the running VM in order to ensure backup data consistency.

- Once completed, the backup set is portable and can be used with any Hyper-V host.

RESTORE STEPS

===================================

WSB does not use VSS when restore individual files, therefore you need to restore the entire volume(s) for running VMs.

1. Go to Start | Administrative Tools | Windows Server Backup

2. In the Actions Pane, select Recover.

3. Choose the server from which to recover data (the one where the WSB backup data is located)

4. Choose the date from which to restore the data.

5. Now you can select the recovery type.

A. Restore Entire Volume(s)

If you need the entire VM, including its configuration, snapshots, and virtual disks (in the event of a complete host failure, for example), select Application Restore and then Hyper-V

In this case, you do not have the option to restore individual files. You will have to restore everything included in that backup set. Note that this will not overwrite existing Hyper-V and VM configuration data that has changed since the backup.

B. Restore Individual Files

If you need only the VHD itself and the configuration data and snapshots for the VM are healthy, you can select Files and folders and pick the individual VHD file you need.

Note that this process does not use the VSS writer; the VM should have been backed up with with its state saved first.

C. Restore Hyper-V Host

If you've suffered total system and data loss and need to recover the Hyper-V host itself, including the Windows Server 2008 operating system and all the VMs running therein, you must boot to the Windows Recovery Environment and perform your restore from there. This can be done from the Windows Server 2008 setup disk or a pre-configured disk partition.

NOTE

===================================

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.

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

參考知識文件:

How to enable Windows Server Backup support for the Hyper-V VSS Writer http://blogs.technet.com/askcore/archive/2008/08/20/how-to-enable-windows-server-backup-support-for-the-hyper-v-vss-writer.aspx

Backup and Disaster Recovery for Server Virtualization http://technet.microsoft.com/en-us/magazine/cc895627.aspx

Comments
  • Configure the first physical interface for host's external connection

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment