Backup and Recovery of Non-Windows VMs on Hyper-V – IT JUST WORKS!

Backup and Recovery of Non-Windows VMs on Hyper-V – IT JUST WORKS!

  • Comments 1
  • Likes

In the last few posts I showed you a simple (and low cost) manual method for back and recovery of virtual machines running on Hyper-V.  When I ran through the process in my lab, I purposely used two different types of virtual machines:

  • one Windows VM with a VSS-aware OS and enabled integration services (Windows Server 2003)
  • VM without VSS or integration services and absolutely no support from Microsoft (Hannah Montana Linux)

I mentioned in the VSS Overview post that contemporary versions of Windows running in a VM on Hyper-V that support VSS and have the appropriate Integration Services installed can coordinate VSS activities with many of the applications and services inside the VM when a backup request is made on the physical host.  This coordinated VSS processing via the Hyper-V Integration Services means that VSS aware applications can be backed up in a VM with absolutely no downtime. without installing an additional backup agent inside the VM (saving cost and reducing complexity).

For that other class of VMs, those that do not support VSS or do not have the “Backup” Integration Service enabled, Windows Server 2008 R2 and Hyper-V still can create a consistent backup, but the process is a little bit different.  If the VM (for whatever reason) cannot itself consume the coordinate VSS request, Hyper-V will save the state of the VM (hibernate it) copying the contents of memory to disk and then generate a snapshot of the disk housing the VM.  Here’s how the process looks to a running VM in this category:

  1. Backup is requested, and a running VM is found on the host – say, like Hannah Montana Linux (or Windows 2000), which does not have VSS
    clip_image002
  2. Hyper-V and VSS figure out that Hannah Montana can’t consume the VSS  request, so the state of running VM is saved to disk into the directory which contains the VMs configuration file – this usually takes only a few seconds, but depends on the amount of memory used by the VM and the speed of the attached disk storage
    clip_image002[4]
  3. Once the VM is completely stopped and the configuration saved, the VSS snapshot on the host can be created
    clip_image002[6]
  4. After the snapshot is generated, the VM is restarted
    clip_image002[8]
  5. The VM starts right back where it was, with only a brief “freeze” and “thaw’
    clip_image002

Remember I did this entire process simply by requesting a backup of the physical Hyper-V host – I didn’t need to request all of this to happen Windows Server 2008 R2 / Hyper-V / VSS did it all for me!   Any VSS aware backup of Windows Server 2008 should be able to do the same thing for you, if you use diskshadow, Windows Server Backup (WSB – part of Windows Server 2008), or a more full featured enterprise backup solution. 

 

 

 

 

 

The key thing to note is that you can improve the backup and recovery of even unsupported operating systems running on Hyper-V.

-John

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