Last Update: Sep 04, 2024 | Published: Sep 23, 2011
There are times when you will need to back up a virtual machine that needs to remain in a running state. Fortunately, Microsoft has provided a handy tool on its Windows Server platform that allows admins to make backups to volumes while applications continue to run and write to those volumes called Volume Shadow Copy Service.
Volume Shadow Copy Service (VSS) is an infrastructure on Windows server platforms that enables applications to create shadow copies. These disk volume backups can be performed while applications continue to write to those volumes. There are basically 3 components that are involved in a VSS backup:
In order to properly back up virtual machines that are in running state, a VSS-aware backup application (or requester) must be used, and that application must notify the VMs that they are being backed up.
This quote explains what VSS does pretty nicely:
“Backing up a Hyper-V virtual machine requires coordination between the Windows VSS instances on the host and the guest. To do so, the Hyper-V Integration Components installs code to every VM. This code allows the Windows VSS writer on the host to communicate with any registered VSS Writers inside running VMs to coordinate quiescence activities. This stacking of VSS instances ensures that applications successfully quiesce as virtual hard disk (VHD) files are backed up.”
–Windows VSS virtual machine backup strategies: Hyper-V vs. VMware
Because Windows Backup uses a VSS writer to create the snapshots, you will need to manually register the Microsoft Hyper-V VSS writer with Windows Server Backup before you can use Windows Server Backup.
If you do not manually register the Microsoft Hyper-V VSS writer, it may appear that the backup has completed successfully. However there is a chance that the VM might not be properly backed up if they were in a running state when the back up took place.
You can read more about this process in the following KB:
http://support.microsoft.com/kb/958662
Warning!
This document contains instructions for editing the registry. If you make any error while editing the registry, you can potentially cause Windows to fail or be unable to boot, requiring you to reinstall Windows. Edit the registry at your own risk. Always back up the registry before making any changes. If you do not feel comfortable editing the registry, do not attempt these instructions. Instead, seek the help of a trained computer specialist.
To register the Hyper-V VSS writer with Windows Server Backup, follow these steps:
BTW, you can create a text file with a .REG extension and paste the following information in it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWindowsServerBackupApplication Support{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}]
“Application Identifier”=”Hyper-V”
After saving, merge the file by double-clicking it.
And that’s it! Backing up a Virtual Machine that needs to remain in a running state can be a valuable skill and the first step is to first register Volume Shadow Copy Service on a Windows Server platform.