Friday, 16 June 2017

Deploy vSphere Data Protection 6.1 Using OVF Tool + Automating The Deployment With Bash

I am going to cover two things in this post rather than splitting it up because it is fairly simple. Before we get started, we had seen deploying VDP from a tool called govc CLI (Thanks to William Lam for a good article on this tool)

Govc CLI VDP deployment:

Govc CLI:

Another way to deploy this is using our good old OVF tool, which is available for Windows and for Linux (For which we will be bash scripting)

Deploying using OVF tool for Windows:

1. Download OVF tool 4.2 from the below link:

2. Install the tool on a windows box

3. Open a command prompt and change your directory to install location of OVF Tool.

The syntax for deploying VDP would be:

ovftool.exe --acceptAllEulas -ds="<Datastore-name>" --net:"Isolated Network"="<vm-portgroup-name>" --prop:"vami.gateway.vSphere_Data_Protection_6.1"="<gateway-address>" --prop:"vami.DNS.vSphere_Data_Protection_6.1"="<dns-address>" --prop:"vami.ip0.vSphere_Data_Protection_6.1"="<ip-address>" --prop:"vami.netmask0.vSphere_Data_Protection_6.1"="<subnet-mask>" <Location-of-the-file>\vSphereDataProtection-6.1.3.ova vi://<vcenter-ip/fqdn>/<data-center-name>/host/<cluster-name>

So a sample command would look like:

ovftool.exe --acceptAllEulas -ds="Local_Storage_1_39" --net:"Isolated Network"="VM Network 2" --prop:"vami.gateway.vSphere_Data_Protection_6.1"="10.x.x.x" --prop:"vami.DNS.vSphere_Data_Protection_6.1"="10.x.x.x" --prop:"vami.ip0.vSphere_Data_Protection_6.1"="10.x.x.x" --prop:"vami.netmask0.vSphere_Data_Protection_6.1"="255.x.x.x" C:\Users\Administrator\Downloads\vSphereDataProtection-6.1.3.ova vi://vcenter-prod.happycow.local/HappyCow-DC/host/HappyCow-Cluster

This will then prompt you to enter SSO username and SSO password and once authenticated it will proceed with the deployment.

Deploying Using Bash Script with Linux.

If you have a Linux based environment, then I have automated this process using bash and the script can be downloaded from the below link:

Please go through the ReadMe Before performing any deployments.

A copy of ReadMe:

1. Place the VDP OVF in the /root folder of the Linux appliance
2. Download the script and place it in the /root folder
3. If the Linux VM has internet access, then the script will download and install ovf tool If not, it will exit the script and you will have to manually install ovf tool on linux and then run the script
4. If the script detects the ovftool is already installed it will proceed further with the deployment of VDP where user inputs are requested.

Note the script and deployment is only for VDP 6.1. Hope this helps!