workgroup servers
May 13, 2015 / Severn
Hyper-V replication is an essential ‘server availability’ tool for any organization. Whilst
it is not a substitute for good backups; it will allow you to restore an up-to-date copy of
your virtual servers very quickly, should your primary host hardware fail.
In this tutorial, i have built two Windows 2012 R2 servers using a pair of old Dell
Optiplex 580’s (AMD Phenom CPU, upgraded to 8GB RAM each), and a single 8 port
Netgear GB switch.
Build two physical host servers – they need to be running the same version of
Windows Server 2016, 2012 R2, or 2012 (which has less functionality).
Install the Hyper-V role on both.
Make sure both servers are fully patched though Windows update.
See if any of the hyper-v hotfixes apply to your situation
If you are doing this in a clustered environment, you will need to know the replication
broker name on each cluster.
or, download both 32bit and 64bit versions from here (you’ll want 64bit):
https://1drv.ms/u/s!AqcygLZtv7MtlbUm6aQj-b460K1ncw
C:\makecert
C:\makecert\copy
C:\makecert\import
Using an admin command prompt (do not use Powershell on server 2012 R2, or 2012).
If you hit any issues at this stage; you can open a new mmc console, add the certificates
snap in (local computer), head to Trusted Root Certification Authorities, Certificates.
Find the ReplicaTestRootCA or PrimaryTestRootCA certificate and delete them, then re-
running the above commands once corrected.
Launch an MMC
In the Certificates snap-in window, click the Computer account radio button; click Next
to continue;
In the Select Computer window, make sure the Local computer radio button is clicked;
then click Finish;
In the Add or Remove Snap-ins window, click OK.
In the Microsoft Management Console on the primary server, expose the contents of
Certificates (Local Computer), which can be found under the Console Root directory:
Expose the contents of the Personal directory; click the Certificates directory;
PrimaryTestCert
PrimaryTestRootCA.cer
TruroServer.pfx
Copy:
ReplicaTestCert
ReplicaTestRootCA.cer
ExeterServer.pfx
This is what you should now see on your Primary server (Truro):
In the MMC on the primary server, make sure your still in Certificates (Local Computer)
Personal directory;
On the wizard that appears, click next.
Navigate and select the exeterserver.pfx file (you’ll need to select the dropdown menu to
all items before it will appear).
Enter the password you set during the export
Click next
Click finish
Click ok.
Personal directory;
Right click on Personal directory, mouse over All Tasks >; in the submenu that appears,
click Import…;
Locate the TruroServer.pfx file. enter the password (as per the export section)
In Hyper-V manager, right click on the host server and select Hyper-V settings (in a
cluster, open Failover Cluster Manager, rmb on the Hyper-V Replica Broker and select
replication settings).
Select the Allow replication from any authenticated server check box.
Check the firewall rules are configured to allow hyperv replication. (Control Panel,
Windows Firewall, Advanced). – both should have green ticks (if not, right click and
enable).
Repeat on the replica server.