Install the Mobility service manually on VMware VMs and physical servers
When you set up disaster recovery for VMware VMs and physical servers using Azure Site Recovery, you install the Site Recovery Mobility service on each on-premises VMware VM and physical server. The Mobility service captures data writes on the machine, and forwards them to the Site Recovery process server.
This article describes how to install the Mobility service manually on each machine you want to protect.
Create a passphrase
Before you install, create a passphrase that will be used during installation.
- Sign into the configuration server.
- Open a command prompt as an administrator.
Change the directory to the bin folder, and then create a passphrase file.
cd %ProgramData%\ASR\home\svsystems\bin genpassphrase.exe -v > MobSvc.passphrase
- Store the passphrase file in a secure location.
Install the service from the UI
If you're replicating Azure IaaS VM from one Azure region to another, don't use this method. Use the command-line-based installation method insteadl.
- Locate the installer version you need for the machine operating system. Installers are located in the %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository folder. Check which installer you need.
- Copy the installation file to the machine, and run it.
- In Installation Option, select Install mobility service.
Select the installation location > Install.
Monitor the installation in Installation Progress. After the installation is finished, select Proceed to Configuration to register the service with the configuration server.
in Configuration Server Details, specify the IP address and passphrase you configured.
Select Register to finish the registration.
Install the service from the command prompt
On a Windows machine
Copy the installer to a local folder (for example, C:\Temp) on the server that you want to protect.
cd C:\Temp ren Microsoft-ASR_UA*Windows*release.exe MobilityServiceInstaller.exe MobilityServiceInstaller.exe /q /x:C:\Temp\Extracted cd C:\Temp\Extracted.
Install as follows:
UnifiedAgent.exe /Role "MS" /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery" /Platform "VmWare" /Silent
Register the agent with the configuration server.
cd C:\Program Files (x86)\Microsoft Azure Site Recovery\agent UnifiedAgentConfigurator.exe /CSEndPoint <CSIP> /PassphraseFilePath <PassphraseFilePath>
|Usage||UnifiedAgent.exe /Role <MS|
|Setup logs||Under %ProgramData%\ASRSetupLogs\ASRUnifiedAgentInstaller.log.|
|/Role||Mandatory installation parameter. Specifies whether the Mobility service (MS) or master target (MT) should be installed.|
|/InstallLocation||Optional parameter. Specifies the Mobility service installation location (any folder).|
|/Platform||Mandatory. Specifies the platform on which Mobility Service is installed. VMware for VMware VMs/physical servers; Azure for Azure VMs.|
|/Silent||Optional. Specifies whether to run the installer in silent mode.|
|Agent configuration logs||Under %ProgramData%\ASRSetupLogs\ASRUnifiedAgentConfigurator.log.|
|/CSEndPoint||Mandatory parameter. Specifies the IP address of the configuration server. Use any valid IP address.|
|/PassphraseFilePath||Mandatory. Location of the passphrase. Use any valid UNC or local file path.|
On a Linux machine
Copy the installer to a local folder (for example, /tmp) on the server that you want to protect. In a terminal, run the following commands:
cd /tmp ; tar -xvzf Microsoft-ASR_UA*release.tar.gz
Install as follows:
sudo ./install -d <Install Location> -r MS -v VmWare -q
After installation is finished, Mobility Service must be registered to the configuration server. Run the following command to register Mobility Service with the configuration server:
/usr/local/ASR/Vx/bin/UnifiedAgentConfigurator.sh -i <CSIP> -P /var/passphrase.txt
|-r||Mandatory installation parameter. Specifies whether the Mobility service (MS) or master target (MT) should be installed.|
|-d||Optional parameter. Specifies the Mobility service installation location: /usr/local/ASR.|
|-v||Mandatory. Specifies the platform on which Mobility Service is installed. VMware for VMware VMs/physical servers; Azure for Azure VMs.|
|-q||Optional. Specifies whether to run the installer in silent mode.|
|-i||Mandatory parameter. Specifies the IP address of the configuration server. Use any valid IP address.|
|-P||Mandatory. Full file path of the file in which the passphrase is saved. Use any valid folder|
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.