The official (not working 🙁 ) way:
To replicate VMware VMs to Azure you have to install the ASR Mobility Service in the VM. But what is when in the VM is running a Client OS (Windows 7, 8.1, 10) instead of Windows Server? Officially this is not supported by Azure Site Recovery and when you try to install the Mobility Service you get the following nice, or not so nice 😉 , message:
The unofficial but working way:
However, beside the fact that a single VM in Azure does not qualify for a SLA guarantee and may have down times, there is technically actually no reason why you cannot run a Client OS in an Azure VM. Especially if the VMs are used for Dev/Test scenarios. So why should it then not be possible to replicate or migrate these VMs to Azure with ASR, you may ask? And you know what? With a little trick (installing the MSI directly on command line) it’s actually really possible. Here are the steps needed to get the Mobility Service running on a Client OS:
- Get the Mobility Service .exe file from your ASR Process Server and copy it to temporary location on the VM which you want to replicate to Azure. You can find the setup file in the install folder of the Process Server under home\svsystems\pushinstallsvc\repository (e.g. D:\Program Files (x86)\Microsoft Azure Site Recovery\home\svsystems\pushinstallsvc\repository\Microsoft-ASR_UA_188.8.131.52_Windows_GA_31Dec2015_Release.exe)
- Run the exe and make notice of the folder to where the files get extracted by the installer
- Keep the Setup Wizard open and copy the content of the folder from step 2 to a temporary location
- Now you can install the Mobility Service MSI directly with msiexec by executing the following command line.
MS DOS1msiexec.exe /i "C:\Temp\ASRAgent\UnifiedAgentMSI.msi" /qn ROLE="Agent" INSTALLDIR="C:\Program Files (x86)\Microsoft Azure Site Recovery\agent" CSIP="<Process Server IP Address>" CSPORT="443" /L+*V "C:\temp\UnifiedAgentMSIInstall.log"
- Finally start “C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\hostconfigwxcommon.exe” an enter the Passphrase of the ASR Process Server to connect the Agent to the ASR Server.
That’s it. Now you can replicate and failover the VM with ASR like any other Windows Server VM. Success! 🙂