Wednesday, 14 June 2017

Deploying vSphere Replication Using OVF Tool

If you ever run into vSphere Replication Appliance deployment issues from web client (Specially in Pre U1 release of vCenter 6.5) you can use the OVF tool to deploy this appliance. Here is a quick walk-through of how to get this done.

1. Download the OVF tool using the below link
Download: https://my.vmware.com/web/vmware/details?downloadGroup=OVFTOOL400&productId=353

2. Install the OVF tool by running the exe file. The installation is pretty straight forward. As simple as calculating 5x5

3. Open the Command Prompt in administrator mode and change your directory to the install location of OVF tool. By default, this should be:
C:\Program Files\VMware\VMware OVF Tool

4. Below is the syntax for OVF tool deployment:

ovftool.exe --acceptAllEulas -ds="DATASTORE_NAME" -n="SPECIFY VRMS NAME" --net:"Management Network"="PORT GROUP NAME" --prop:"password"="VRMS ROOT PASSWORD" --prop:"ntpserver"="NTP SERVER IP OR FQDN" --prop:"vami.ip0.vSphere_Replication_Appliance"="SPECIFY VRMS SERVER IP" --vService:installation=com.vmware.vim.vsm:extension_vservice <PATH>\vSphere_Replication_OVF10.ovf vi://"administrator@vsphere.local":<SSO-PASSWORD>@VCENTER IP/?ip=HOST IP

Below is the sample command from my environment:

ovftool.exe --acceptAllEulas -ds="Local_Storage_1_39" -n="VR-OVF" --net:"Management Network"="VM Network 2" --prop:"password"="HappyCow123!" --prop:"ntpserver"="10.x.x.x" --prop:"vami.ip0.vSphere_Replication_Appliance"="10.x.x.x" --vService:installation=com.vmware.vim.vsm:extension_vservice E:\bin\vSphere_Replication_OVF10.ovf vi://"administrator@vmware.local":HappyCow123!@10.x.x.x/?ip=10.x.x.x

The switches:
-ds is for datastore
-n is to specify display name for the vR appliance (Not the host name, but the VM inventory name)
--net is to specify the port group for vR
--prop:"password" is vR root password
--prop:"ntpserver" is for your time server

The path would be the location of the OVF10.ovf file. If you downloaded like say 6.1.1 ISO and mounted it, then it would be the <CD-ROM-Drive>\bin\vSphere_Replication_OVF10.ovf

Always use SSO username for deployment and make sure it is within the double quotes, else you may run into issue where the '@' is not recognized

You should see a similar output once you execute the command:

Opening OVF source: //:@jump.happycow.local:80\bin\vSphere_Replication_O
The manifest validates
Source is signed and the certificate validates
Opening VI target: vi://administrator%40vmware.local@10.x.x.x:443/
Deploying to VI: vi://administrator%40vmware.local@10.x.x.x:443/
Transfer Completed
Completed successfully

You will also see a progress percentage along with a recent task for OVF deployment in the vSphere Client to monitor.

Hope this was helpful.