Microsoft HyperV

Version as of 02:44, 4 May 2024

to this version.

Return to Version archive.

View current version

When Amanda Enterprise is configured and licensed for Hyper-V Virtual Machine backup, Amanda uses the Microsoft Windows Volume Shadow Copy Service (VSS) to back up the Hyper-V virtual machines. 

To backup Hyper-V virtual machine, Zmanda Windows client will have to be installed on the Hyper-V hypervisor. You need a Hyper-V license for each Windows Hypervisor. The windows client installed on the hypervisor can be backup virtual machines residing on the hypervisor.

Hyper-V virtual machine backups are always Full backups. Differential or Incremental backups are not supported.

The backups are performed using the Hyper-V VSS Writer.  

Hyper-V uses one of two mechanisms to back up each Virtual Machine. The default backup mechanism is called the Saved State method, where the VM is put into a saved state during the processing of the snapshot event, snapshots are taken of the appropriate volumes, and the VM is returned to previous state as part of post-snapshot event.

The other backup mechanism is called the Child VM Snapshot method, which uses the VSS writers inside the Hyper-V child virtual machine to participate in the backup. The Child VM is the virtual machine being backed up. For the Child VM Snapshot method to be used, following conditions must be met:

  • Backup (Volume snapshot) Integration Service is installed and running on the child VM. The service name is Hyper-V Volume Shadow Copy Requestor.
  • The child VM must be in the running state.
  • The Snapshot File Location for the VM is set to be the same volume in the host operating system as the VHD files for the VM.
  • All volumes in the child VM are basic disks and there are no dynamic disks.
  • All disks in the child VM must use a file system that supports snapshots (for example: NTFS).

You can read more about Hyper-V backups at Microsoft web site.

The backup mechanism is selected for each virtual machine (child VM) in Hyper-V management interface.

Requirements for Hyper-V virtual machine backup

  • The Hyper-V VSS Writer must be running on the hypervisor.
  • Restore of Hyper-V virtual machines and host configuration must be done to same version of Windows as the backup. For example: If the original Hyper-V backup was taken on Windows Server 2012, the restore must be done to Windows 2012 Hypervisor.
  • Zmanda Windows Client cannot be installed on Hyper-V Server Core Installation.
  • The backup of running VM will not be performed if Child VM Snapshot method cannot be performed.

 

Configuring Hyper-V Virtual Machine Backups from the ZMC Backup What Page

HyperV-Discover.PNG

 

HyperV-BackupWhat-Table.PNG

Users may select individual virtual machines within the Hyper-V host for backup. This will backup the virtual hard disk files (.vhd or .vhdx) as well as the snapshot files (.avhd or .avhdx) of the virtual machine(s) selected for backup.

Backup of the Initial Store is also available. This will backup the "IntiialStore.xml" file, which contains the Hyper-V Authorization Store. By default, the InitialStore.xml file is in %systemdrive%\ProgramData\Microsoft\Windows\Hyper-V\.

Restores

 

For all Microsoft SQL Server, Microsoft Exchange, Microsoft Sharepoint, and Hyper-V backups, the name of the new machine must exactly match the name of the old machine.

Configuring Hyper-V Restores from the ZMC Restore What Page

Functionality:

  • Users may select individual virtual machines for restore.
  • Restore may be done to the original location or an alternate location.
  • Restore to the original location cannot overwrite an active, running VM. If such a restore is attempted, it will be interrupted with this message:

    The guest VM that you are trying to restore to appears to be in running state. It will be turned off during the restore. Are you sure you want to continue?
    OK Cancel

    Select "OK" to turn off the running VM and continue the restore. Select "Cancel" to abort the restore process.

The above warning will not be issued if the Virtual Machine's name has changed since the backup was taken, even if the VM is running. ZCB will proceed directly with the restore.

This will remove the existing VM and replace it with the backup VM.

Requirements:

  • You must install the same Windows Operating System (with the same service packs) on the restore machine as was installed on the original machine.
  • If you are attempting to restore data to a different machine than the one which was backed up, please complete the steps described in the Restore to a different machine section above.
  • The Volume Shadow Copy Service must be enabled. Please refer to the Requirements section.