Hyper-V Replication: step-by-step guide
In this article you will find out:
- what is Hyper-V Replication
- how to configure Hyper-V Replication
- how to protect data with RAID Recovery
Are you ready? Let's read!
What is Hyper-V Replication?
Hyper-V replication is copying a virtual machine in a separate environment. To use this convenient feature, you must meet these conditions:
- You are running Windows Server 2012.
- You must have Hyper-V role and availability of the hardware that supports this feature.
- Free space must be sufficient to accommodate the files.
- You must have a network connection between the main server and the replica server.
- You must have the correct firewall settings.
- You must have X.509v3 certificate availability.
- You must have the correct configuration of Active Directory Domain Services.
Hyper-V Replication: a closer look
Users do not always understand correctly what a replica is, how and when it is best to use it. In general, the main purpose of this function is the disaster recovery of a virtual machine. That is, it is a copy of your VM, which is loaded in a matter of minutes. It is assumed that the original virtual machine is completely out of order and cannot be restored. You may consider the replica as an official copy of your VM. However, Hyper-V Replication is not a universal feature and in order to use it, you must first contact support or at least read the instructions.
Also, do not confuse this function with:
- Backup (this is not a full-fledged VM).
- Snapshots (this is just a rollback of a VM to a certain state).
- Clustering (a replica always maintains two separate copies of the same virtual machine, and clustering uses only one).
Hyper-V Replication: basic process
To work effectively and not be afraid to use the replication function, you need to know the basics of this process.
You need to enable Hyper-V as a replica server so that it can participate in replication. It is also recommended that you assign encryption replicas, as they travel over the network SSL certificates. This will help the replica pass through any unsecured media.
Any additional changes are propagated from the source host to the target replica server in a .HRL file (Hyper-V Replica Log). Typically, one HRL file is equal to the number of recovery points that you specify when configuring the replica.
Step-by-step guide to configuring Hyper-V Replication
Here are the basic steps for configuring the replication feature:
1. Enabling the Hyper-V Replica option on the replica server. Go to Hyper-V Manager and click “Hyper-V Settings”. In Replication Configuration, select “Enable this computer” as a replica server check box. Then visit the section “Authentication and ports”, and select “Use Kerberos (HTTP)”. Next, in the “Authorization and storage” section, click on “Allow replication from any authorized server” and click “Apply”.
2. Enabling Hyper-V Replica Firewall Rules. Go to the Control Panel and select Windows Firewall. Find and right-click the rules at the same time: Hyper-V Replica HTTP, Listener Hyper-V Replica HTTPS Listener. Then click “Enable Rule”. Alternatively, enter the Powershell command: Enable-Netfirewallrule-displayname "Hyper-V Replica HTTPS Listener (TCP-In)".
3. Configuring the virtual machine for replication. Select any virtual machine running on the primary server and click “Enable Replication”. Next, the Wizard will load, select the basic parameters, then click the "Finish" button to enable replication for this virtual machine. It is also recommended to exclude file paging from Hyper-V Replication.
Best practices for using Hyper-V Replication
Hyper-V Replication introduces many additional configurations: you can use them in a complex many-to-many cluster setup or in a one-to-one layout with low security. Microsoft provides extended coverage, such as clustering and certificates. However, the replica environment is not always simple; for example, some server software may have its own license terms. In such cases, you can contact third-party vendors; they can help you with setup and licensing.
Protect your data with RAID Recovery
DiskInternals RAID Recovery is high-tech RAID data recovery software. The utility recovers files from a RAID connected to a dedicated RAID controller such as HP, Adaptec, DDF-compliant devices, Silicon RAID controllers, etc. The app is equipped with a Recovery Wizard and free preview and has many unique and useful features, including:
- It supports Unicode file names and multi-level folders.
- It can ignore Windows restrictions.
- It can export data to local or remote locations.
- And much more!
Follow these instructions:
- Download and install RAID Recovery on your device.
- After the app opens, select the required array to search for data using the Wizard.
- Select the scan method (full or fast) and wait for the new dialog box with the search results.
- After scanning, you will get read access to the files for free.
- Visit the DiskInternals site to buy a license for RAID Recovery and you will have full access to your files.