Requirements
AhsayOBM Installation
The latest version of AhsayOBM must be installed on the Hyper-V server. For Hyper-V Cluster environment, the latest version of AhsayOBM must be installed on all Cluster nodes.
License
Make sure that the AhsayOBM user account to be used has sufficient Hyper-V add-on modules or CPU sockets assigned. HyperV Cluster backup sets will require one AhsayOBM license per node. For Hyper-V Cluster, the required number of CPU sockets must be equivalent to the total number of CPU sockets for all nodes.
Run Direct Restore
Run Direct feature is already included with the basic Hyper-V add-on modules or CPU socket license. Contact your backup service provider for more details.
Granular Restore
An OpenDirect / Granular Restore add-on module license is required per backup set for this feature to work. Contact your backup service provider for more details.
Backup Quota
AhsayOBM user account has sufficient quota assigned to accommodate the storage of the guest VMs. (Please contact your backup service provider for details).
Hyper-V guest VMs contain three types of virtual disks:
-
Fixed Hard Disk
-
Dynamic Hard Disk
-
Differencing Hard Disk
When AhsayOBM backs up a Hyper-V guest VMs for an initial or subsequent full backup jobs:
-
Using fixed Hard Disks, it will back up the provisioned size, e.g. for a 500GB fixed virtual hard disk 500GB will be backed up to the storage designation.
-
Using Dynamic Hard Disk or Differencing Hard Disk, it will back up the used size, e.g. for a 500GB fixed virtual hard disk, 20GB will be backed up to the storage designation if only 20GB was used.
As compression is not enabled for Granular backup sets, to optimize restore performance, the storage quota required will be higher than non-Granular backup sets. Contact your backup service provider for details.
Java Heap Size
The default Java heap size setting on AhsayOBM is 2048MB. For Hyper-V backups, it is highly recommended to increase the Java heap size setting to improve backup and restore performance. (The actual heap size is dependent on amount of free memory available on your Hyper-V server).
Delta generation of large VHD files is a memory intensive process; therefore, it is recommended that the Java heap size to be at least 2048MB - 4096MB. The actual required Java heap size is subject to various factors including files size, delta mode, backup frequency, etc.
FAQ: How to modify the Java heap size setting of AhsayOBM/AhsayACB
Permission
The Windows login account used for installation and operation of the AhsayOBM client machine requires Administrator privileges.
The operating system account for setting up the Hyper-V / Hyper-V Cluster backup set must have administrator permission (e.g. administrative to access the cluster storage).
For Granular Restore, Windows User Account Control (UAC) must be disabled.
Temporary Directory
For stand-alone Hyper-V server, AhsayOBM uses the temporary folder for storing backup set index files and any incremental or differential delta files generated during a backup job. To ensure optimal backup / restore performance, it should be located on a local drive with plenty of free disk space and it should not be on the following drive:
Windows System C:\ drive
For Hyper-V Server in Failover Cluster Environment
-
Hyper-V Server 2008, 2008 R2, 2012, 2012 R2, the temporary directory must be set to a local drive of the Cluster Node.
-
Hyper-V Server 2016 and 2019, the temporary directory must be set to the Cluster Shared Volume (CSV).
For Hyper-V Server in Non-Cluster Environment
For Hyper-V Server 2008, 2008 R2, 2012, 2012 R2, 2016, 2019 in a Non-Cluster environment, the temporary directory must be set to a local drive on the Hyper-V Server.
Network Drive
The login accounts for network drives must have read and write access permission to ensure that backup and restore would be successful.
Hyper-V Services
-
The Hyper-V management tools are installed on the server. For Hyper-V Cluster environments, the Hyper-V management tools is installed on all Cluster nodes.
-
The Hyper-V services are started on the server. For Hyper-V Cluster environments the HyperV services are started on all Cluster nodes.
Example: Windows 2008 R2 Hyper-V
-
The Microsoft Hyper-V VSS Writer is installed and running on the Hyper-V server and the writer is state is Stable. This can be verified by running the following command:
vssadmin list writers
Example:
C:\Users\Administrator>vssadmin list writers vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool (C) Copyright 2001-2005 Microsoft Corp. Writer name: 'Task Scheduler Writer' Writer Id: {d61d61c8-d73a-4eee-8cdd-f6f9786b7124} Writer Instance Id: {1bddd48e-5052-49db-9b07- b96f96727e6b} State: [1] Stable Last error: No error Writer name: 'VSS Metadata Store Writer' Writer Id: {75dfb225-e2e4-4d39-9ac9-ffaff65ddf06} Writer Instance Id: {088e7a7d-09a8-4cc6-a609- ad90e75ddc93} State: [1] Stable Last error: No error Writer name: 'Performance Counters Writer' Writer Id: {0bada1de-01a9-4625-8278-69e735f39dd2} Writer Instance Id: {f0086dda-9efc-47c5-8eb6- a944c3d09381} State: [1] Stable Last error: No error Writer name: 'System Writer' Writer Id: {e8132975-6f93-4464-a53e-1050253ae220} Writer Instance Id: {8de7ed2b-8d69-43dd-beec5bfb79b9691c} State: [1] Stable Last error: No error Writer name: 'SqlServerWriter' Writer Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a} Writer Instance Id: {1f668bf9-38d6-48e8-81c4- 2df60a3fab57} State: [1] Stable Last error: No error Writer name: 'ASR Writer' Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4} Writer Instance Id: {01499d55-61da-45bc-9a1e76161065630f} State: [1] Stable Last error: No error Writer name: 'Microsoft Hyper-V VSS Writer' Writer Id: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de} Writer Instance Id: {a51919e3-0256-4ecf-8530- 2f600de6ea68} State: [1] Stable Last error: No error Writer name: 'COM+ REGDB Writer' Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f} Writer Instance Id: {7303813b-b22e-4967-87a3- 4c6a42f861c4} State: [1] Stable Last error: No error Writer name: 'Shadow Copy Optimization Writer' Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f} Writer Instance Id: {d3199397-ec58-4e57-ad04- e0df345b5e68} State: [1] Stable Last error: No error Writer name: 'Registry Writer' Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485} Writer Instance Id: {25428453-2ded-4204-800fe87204f2508a} State: [1] Stable Last error: No error Writer name: 'BITS Writer' Writer Id: {4969d978-be47-48b0-b100-f328f07ac1e0} Writer Instance Id: {78fa3f1e-d706-4982-a826- 32523ec9a305} State: [1] Stable Last error: No error Writer name: 'WMI Writer' Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0} Writer Instance Id: {3efcf721-d590-4e50-9a37- 845939ca51e0} State: [1] Stable Last error: No error
-
Integration Service
-
If Integration services is not installed / updated on a guest VM or the guest operating system is not supported by Integration Services, the corresponding VM will be paused or go into a saved state during the snapshot process for both backup and restore, and resume when the snapshot is completed. Furthermore, the corresponding VM uptime will also be reset to 00:00:00 in the Hyper-V Manager.
-
Installing or updating Integration Services guest VM(s) may require a restart of the guest VM to complete the installation.
-
To install Integration Services:
-
In Hyper-V Manager connect to the guest VM and select Action > Insert Integration Services Setup disk
Example: Windows 7 Enterprise guest
-
If the guest operating system supports live VM backup, the Backup (volume snapshot) is enabled.
-
-
The related Integration Services are running on the guest VM:
Example: Windows 7 Enterprise guest
-
To check if Linux Integration Services is running on the Linux guest:
Example: CentOS 6.4 Linux guest
# lsmod | grep hv hv_netvsc 23667 0 hv_utils 7012 0 hv_storvsc 10022 2 hv_vmbus 91567 4 hv_netvsc,hv_utils,hid_hyperv,hv_storvsc # ps -ef|grep hv root 267 2 0 18:07 ? 00:00:00 [hv_vmbus_con/0] root 268 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 269 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 270 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 271 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 272 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 273 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 274 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 275 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 276 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 277 2 0 18:07 ? 00:00:00 [hv_vmbus_ctl/0] root 1174 1 0 18:07 ? 00:00:00 /usr/sbin/hv_kvp_daemon root 1185 1 0 18:07 ? 00:00:00 /usr/sbin/hv_vss_daemon root 1332 1316 0 18:11 pts/0 00:00:00 grep hv
-
Please refer to the following articles for further details:
-
Considerations for backing up and restoring virtual machines
-
Supported Windows Guest Operating Systems for Hyper-V in Windows Server 2012 and Windows 8
-
Supported Windows Guest Operating Systems for Hyper-V in Windows Server 2012 R2 and Windows 8.1
-
Supported Linux and FreeBSD virtual machines for Hyper-V on Windows Server and Windows
-
Supported CentOS and Red Hat Enterprise Linux virtual machines on Hyper-V
-
-
-
-
For Hyper-V 2008 R2 server in order to use Run Direct restore feature the Microsoft Security Advisory 3033929security update must be installed.
Please refer to the following article from Microsoft for further details:
Availability of SHA-2 code signing support for Windows 7 and Windows server 2008 R2
-
For Run Direct Hyper-V Cluster backup sets the storage destination must be accessible by all Hyper-V nodes.
-
For Hyper-V Cluster backup sets, the guest VMs must be created and managed by the Failover Cluster Manager.
Hyper-V Backup Methods
AhsayOBM supports two methods for Hyper-V guest VM backup, VM Snapshot and Saved State.
VM Snapshot
The VM snapshot method is the preferred backup option, as it supports live guest VM backups. This means guest VM will not be put into a saved state when a VSS snapshot is taken during a backup job. So, it will not affect the availability of any applications or services running on the guest VM every time a backup job is performed.
If the VM Snapshot method cannot be used, AhsayOBM will automatically use the Saved State method.
-
The guest VM must be running.
-
Integration services must be enabled on the guest VM.
-
The Hyper-V Volume Shadow Copy Requestor service is running on the guest VM installed with Windows operating system. Please refer to the following article for further details: Hyper-V Volume Shadow Copy Requestor
-
For guest VMs installed with Linux / FreeBSD operating systems, the VSS Snapshot daemon is required for live backups, not all Linux / FreeBSD versions support live backup on Hyper-V. For example, only FreeBSD 11.1 supports live backup while for Ubuntu, version 14.04 LTS to 17.04 LTS supports live backups.
Please refer to the following article for further details:
Supported Linux and FreeBSD virtual machines for Hyper-V on Windows Server and Windows
-
The guest VM volumes must use a file system which supports the use of VSS snapshots, i.e. NTFS or ReFS.
-
The guest VMs snapshot file location must be set to the same volume in the Hyper-V host as the VHD file(s).
-
The guest VM volumes have to reside on basic disks. Dynamic disks cannot be used within the guest VM.
Some older Windows operating systems installed on guest VM's which do not support either Integration Services or the Hyper-V Volume Shadow Copy Requestor Service, will not support VM snapshot method, for example, Microsoft Windows 2000, Windows XP, or older Linux/FreeBSD versions.
Saved State
If any of the VM Snapshot method requirements cannot be fulfilled, AhsayOBM will automatically use the Saved State method. When the Saved State method is used, the guest VM is placed into a saved state while the VSS snapshot is created (effectively shut down), and the duration is dependent on the size of VM and performance of Hyper-V host. The downside is it may affect the availability of any applications or services running on the guest VM every time a backup job is performed.
CBT Cluster Services
CBT Cluster Services (Ahsay Online Backup Manager) is installed and enabled upon installation / upgrade to AhsayOBM v9.1.0.0 or above on Windows 2008/2008R2 or Windows 2012/2012R2.
-
CBT (Changed Block Tracking) Cluster Services is used to optimize incremental backups of VMs by keeping a log of the blocks of data that have changed since the previous snapshot making incremental backups much faster. When AhsayOBM performs a backup, CBT feature can request transmissions of only the blocks that changed since the last backup, or the blocks in use.
CBT service is supported on all the backup destinations for AhsayOBM.
-
CBT cluster service is only installed on Windows x64 machine.
-
Check if CBTFilter is enabled
Example:
-
This can be verified by running the following command:
C:\Users\Administrator>net start CBTFilter The requested service has already been started. More help is available by typing NET HELPMSG 2182.
-
For Windows Server 2008 R2, if the following error is displayed:
C:\Users\Administrator>net start CBTFilter System error 577 has occurred. Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrect or damaged, or that might be malicious software from an unknown source.
If the above error is displayed:
-
The issue may be related to the availability of SHA-2 code signing support for Windows Server 2008 R2.
https://technet.microsoft.com/en-us/library/security/3033929
-
To resolve the issue, install the following patch from Microsoft:
https://www.microsoft.com/en-us/download/confirmation.aspx?id=46083
-
Restart the affected server afterward for AhsayOBM to operate properly.
-
-
CBT Cluster Service and CBTFilter will NOT be installed on Windows Server 2016 and 2019 where a built-in system called Resilient Change Tracking (RCT) will be used instead. For details of RCT, please refer to Windows Server 2016 and 2019 RCT Requirement.
-
If a Windows Hyper-V 2008/2008 R2/2012/2012 R2 with AhsayOBM already installed is upgraded to Windows 2016/2019, it is recommended that both CBT Cluster Service and CBTFilter should be uninstalled using the following batch files:
-
UninstallCBTClusterService.bat
C:\ProgramFiles\AhsayOBM\bin>UninstallCBTClusterService.bat C:\Program Files\AhsayOBM\bin>Service.exe -r CBTCluster Start to remove CBTCluster StoppingCBTCluster. CBTCluster stopped. CBTCluster removed.
-
UninstallCBTFilter.bat
C:\Program Files\AhsayOBM\bin>UninstallCBTFIlter.bat C:\Program Files\AhsayOBM\bin>RUNASCMD64.EXE RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultUninstall 132 C:\ProgramFiles\AhsayOBM\bin\CBTFilter.inf execute RUN DLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultUninstall 132 C:\Program Files\AhsayOBM\bin\CBTFilter.inf run ShellExecuteEx runas RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultUninstall 132 C:\Program Files\AhsayOBM\bin\CBTFilter.inf 2023-02-28-11-08-22] Execute return "RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultUninstall 132 C:\Program Files\AhsayOBM\bin\CBTFilter.inf" is executed successfully exit code=0
-
Windows Server 2016 and 2019 RCT Requirement
-
AhsayOBM would not install CBT Cluster Services (Ahsay Online Backup Manager) but use the native built-in RCT (Resilient Change Tracking) feature of Windows server 2016 and 2019 instead.
-
The guest VM version in Hyper-V must be 8.0 or above.
Example:
-
This can be verified by using Windows PowerShell.
get-VM | fomat-table name, version
-
If the version is not 8.0 or above, then the VM configuration version needs to be upgraded.
Update-VMversion <vmname>
Please refer to the following link from Microsoft for details about the VM version:
Upgrade virtual machine version in Hyper-V on Windows or Windows Server
-
Hyper-V Cluster Setup
For Hyper-V Cluster backup sets:
-
The same version of AhsayOBM must be installed on all Hyper-V Cluster nodes.
-
All Hyper-V Cluster nodes must be running the same Windows version.
-
The same backup user account must be used for all nodes.
-
The same backup set must be used for all nodes.
-
The backup schedule must be enabled on all Hyper-V Cluster nodes.
Guest VM Dependencies
To get full use of Hyper-V, install the appropriate linux-tools and linux-cloud-tools packages to install tools and daemons, e.g. VSS Snapshot Daemon, for use with VMs. Please refer to the following link for the details of requirements for Ubuntu relating to Hyper-V daemons:
Supported Ubuntu virtual machines on Hyper-V
For ease of restore, it is recommended to back up the whole VM (all the virtual disks) rather than individual virtual disks.
Run Direct Restore
Supported Guest VM Operating System
Guest VM running on Windows, Linux, and FreeBSD is supported for Run Direct Restore.
NFS Service
Make sure NFS service has started for Run Direct to operate. If the backup destination is located on network drive, the logon account must have sufficient permission to access the network resources.
For Restore to the Original Hyper-V Host
-
AhsayOBM UI must be running when a guest VM is started using Run Direct Restore or when migration process is running.
-
For local, mapped drive, or removable drive storage destinations with Run Direct enabled, the compression type will always be set to No Compression and data encryption is disabled to ensure optimal backup and restore performance. The backup set compression type and data encryption settings will only be applied to AhsayCBS, SFTP/FTP, or Cloud storage destinations.
-
Run Direct restore can only be performed on one guest VM at a time.
-
Restored guest VMs using Run Direct containing a saved state will not automatically power on. The saved state must be manually deleted in Hyper-V Manager and the guest must be powered on manually.
-
When a guest VM is started in a Run Direct instance and it is stopped, any changes made within the guest environment will be lost if the guest VM is not migrated to the Hyper-V Server using the “Auto migrate after Run Direct is running” option.
-
When a guest VM is started using Run Direct Restore, all backup jobs (manual and scheduled) for the related backup set will be skipped.
-
When a guest VM is started using Run Direct Restore, the following features are not available for the backup set; Data Integrity Check, Space Freeing Up, and Delete Backup Data.
For Restore to a Different (Standby) Hyper-V Host
-
AhsayOBM must be installed on the Hyper-V Host where you wish to restore the guest VM.
-
The same AhsayOBM backup account must be used.
-
For restore to an alternate Hyper-V Host with a different CPU architecture, the latest version of AhsayOBM client application must be installed.
-
The correct encryption key is required if the backup set was created with the encryption key feature enabled.
-
A guest VM backed up from a standalone Hyper-V host can only be restored to another standalone Hyper-V host. A guest VM backed up from a Hyper-V Cluster can only be restored to another Hyper-V Cluster.
-
Guest VM backed up to local drive / mapped drive / removable drive on the original HyperV host can be restored to another Hyper-V host only if the new machine has access to the original drive(s).
-
The network configuration and structure of the standby Hyper-V host must be same with the original Hyper-V host.
-
For Hyper-V restore, it is highly recommended to increase the Java heap size setting to improve performance, especially on guest VM’s with many incremental delta files. For further details, refer to Java Heap Size.
-
For best restore performance, the temporary directory should be set to a local drive. Also, the temporary directory must have sufficient free disk space for the guest VM restore, for example, the restore of a 500GB guest VM with 30 incremental files of around 5GB each (500GB + 150GB (30 x 5GB)), the temporary directory will require at least 650GB of free space. For further details, refer to Temporary Directory.
-
Restore guest VM to Original Location is possible only if the disk setup on the new Hyper-V host is the same as the original Hyper-V host, for example if the original guest VM was backed up on G: drive. Then restore to “Original location” can be selected if G: drive is setup on the new Hyper-V host. Otherwise, select “Alternate location”.
-
The Hyper-V management tools must be installed on the new Hyper-V host. For Hyper-V Cluster environments Hyper-V management tools must be installed on all Cluster nodes.
-
The Hyper-V services must be started on the host. For Hyper-V Cluster environment, the Hyper-V services must be started on all Cluster nodes. For more details, refer to Hyper-V Services.
-
Microsoft Hyper-V VSS Writer must be installed and running on the new Hyper-V host and the writer state must be Stable. This can be verified by running the vssadmin list writers command. For more details, refer to number 3 of Hyper-V Services.
Granular Restore
Operating System
AhsayOBM must be installed on a 64-bit Windows machine as libraries for Granular Restore only supports 64-bit Windows operating system. Refer to the following article for the list of compatible operating system for Granular Restore:
Granular Restore is supported on Hyper-V backup sets created and backed up using AhsayOBM installed on a Windows platform with the Granular Restore feature enabled on the backup set.
Available Spare Drive Letter
One spare drive letter must be available on the Windows machine for the Granular Restore process, as the VHD virtual disk is mounted on Windows as a logical drive. AhsayOBM will automatically take the next available drive letter in alphabetical order for the mounted virtual disk.
-
The Windows drive letters A, B, and C are not used by Granular Restore.
-
The Granular Restore assigned drive letter(s) will be released once you exit from AhsayOBM UI.
Network Requirements
Recommended minimum network speed is at least 100Mbps download speed.
The network bandwidth requirements will increase in proportion to the size of the guest VM and/or the incremental delta chain length to ensure optimal performance. Working with limited network bandwidth may severely affect the Granular Restore performance.
You can use an online network speed test website (e.g. www.speedtest.net) to get an idea of the actual bandwidth of the machine.
It is recommended that a local destination is added to the backup set for faster Granular Restore. Since Granular Restore of large guest VM from CBS server over the internet can be slow depending on network bandwidth and CBS server load
Other Dependencies
The following dependencies are required for restore and therefore they are verified by AhsayOBM only when a Granular Restore is performed. The absence of these dependencies will not affect the backup job but would cause the Granular Restore to fail.