Microsoft HyperV

Version as of 03:29, 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

In ZMC Backup What page, you can select Hyper-V from the Applications drop down menu.  The figure below shows the Hyper-V virtual machine configuration as a backup object in the Backup set.

HyperV-Discover.PNG

Host Name is the IP address or the name of Windows Hyper-V hypervisor. Click Discover button to discover all the virtual machines on the hypervisor.  Zmanda Windows Client must be installed on the hypervisor to discover virtual machines.  

Data Source : Users may select individual virtual machines with the Hyper-V hypervisor 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. The Initial Store file is also backed up. The InitialStore.xml file, which contains the Hyper-V Authorization Store is backed up.

 

Encryption and Compression
Select these options as desired. They are described in more detail here.
Advanced Options

 

Extended attributes are always backed up on Windows clients regardless of application. For details on the Estimate option, see the Backup Where Advanced Options help.

After clicking Add button, the backup object is added to the table as shown below. You can edit the entry by clicking on the table entry.

HyperV-BackupWhat-Table.PNG

 

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.