Backing Up Hyper-V Guests – Host-Based vs Guest-Based Methods

There are two ways to back up a virtual machine. One is to treat it as a traditional machine and back up using a locally installed software package or agent. The second method is to back up the virtual machine as an object from the perspective of the host computer. The traditional method is the most direct and the easiest to understand and implement. The second method requires specialized software that runs on the host and is more complicated. Both have their strengths and weaknesses.

Traditional Backup Approach

Virtual machine operating systems don’t function significantly differently from those of physical machines. To that end, there is no restriction on installing a backup program or agent inside a virtual machine and backing it up as though it were physical. The only limitation here is that a backup device cannot be directly attached to a virtual machine in most cases. Backup run from within a virtual machine will behave exactly as it would if the machine were not virtualized.

Pros

  • No change or relearning from pre-virtualization methods
  • No special requirements

Backup software does not need to be Hyper-V aware or compatible

Cons

  • Each virtual machine must be licensed for backup as though it were physical
  • If tape is the backup target, the tape device will likely need to be attached to another physical host
  • A “bare metal” style of backup/restore will not be as complete or as portable as a per-VM backup
  • Snapshots and other elements of the virtual machine metadata are not captured

These backups must be treated as though they were run from a standard physical machine. Any issues that would prevent a file from being backed up on a physical machine will also prevent it from being backed up on a virtual machine. For instance, if your backup software cannot process open files, then they will be skipped.

Host-Based Backups

A few software packages exist that can interact with the Hyper-V role to back up virtual machines. This is not a simple process and only a few backup vendors fully support it. However, there are plenty of reasons that a host-level backup is desirable and there are ways to mitigate the problems.

Pros

  • The entire state of the VM can be captured including all of its metadata and snapshots, so “bare metal” types of restores are fairly simple.
  • Licensing is usually per-host or per physical CPU, so costs are almost always less than a traditional approach.
  • Virtual machine backups are the most portable; VHDs can go anywhere

Cons

  • VM-level backups aren’t the same as traditional methods, so some new learning and approaches are required
  • Connection and usage of storage devices may present a problem, although usually not worse than in any centralized backup system with distributed agents
  • Most VM backup strategies copy entire VHDs, even if they’re mostly empty

It is not always possible to back up a VM without pausing it briefly.
As the last bullet point notes, it is sometimes necessary to pause a VM in order to back it up from the host. Such a pause is typically very brief and may not even result in a service outage for connected clients, but backup administrators must be aware of the possibility. Coverage of live versus paused host-based backups will be covered in a posting entitled “Requirements for Live Backup of Hyper-V Guests”.

You can also read Eric’s take on Hyper-V Backup Strategies for the Hyper-V management OS.

 

Altaro Hyper-V Backup
Share this post

Not a DOJO Member yet?

Join thousands of other IT pros and receive a weekly roundup email with the latest content & updates!

2 thoughts on "Backing Up Hyper-V Guests – Host-Based vs Guest-Based Methods"

  • Tony Dawes says:

    A simple artical explaining the backup methods but what about the restoration.
    If you are backing up a guest system from a host it does appear that bare metal restores are easy but what if you need to restore a single file or and exchange mail or mailbox. How does the two methods compare eg guest based backup/restore method compared to host based backup/restore.
    What are the implications of restoreing a single file from a host based backup?

  • Eric Siron says:

    @Tony:
    There’s really no simple answer to your question as the answers depend entirely on your backup software’s abilities to dive into the VHD. Altaro’s software does have an advanced restore option that can perform file-level restores. Doing so is not effectively different from restoring a file using a guest-level backup application, although the process isn’t the same.
    Altaro’s software does not have an option to perform a granular restore of Exchange. You can, of course, restore its database files to an alternate location and use Exchange’s tools for recovery. You might ask on their forums if granular or bricks-level is planned for a future release.

Leave a comment or ask a question

Your email address will not be published. Required fields are marked *

Your email address will not be published. Required fields are marked *

Notify me of follow-up replies via email

Yes, I would like to receive new blog posts by email

What is the color of grass?

Please note: If you’re not already a member on the Dojo Forums you will create a new account and receive an activation email.