Contributions by Alka Gupta, Bhuvanesh Kumar Ravichandran and Pranay Bakre
vRealize Automation 7.2 and later versions support provisioning and management of Virtual Container Hosts(VCH) for running vSphere Integrated Containers (VIC). Below we outline the steps to automate provisioning of VCH from a vRA Service catalog, using XaaS blueprint in vRA.
- Download the ‘VIC-Deploy.zip’ file attached at the end of this blog and unzip it
- Login to vRealize Orchestrator in your environment. Select ‘Design’ from the dropdown on the homepage and select ‘Import Package…’
- Select the ‘vmware.vra.vic.package’ from the zip file and import it as below –
- Once imported successfully, you should see the package and its workflows in the inventory. Go to the workflows tab and verify that you see the workflows as below –
- Go to the Configurations tab and select the configuration element found under the path – VMware->VIC Deploy->vRealize Automation->Targets
Edit the element as per your environment settings. You can change the name of the element too. Note – If you are using multiple clusters in your environment then you need to add an additional attribute named ‘compute-resource’ and the name of the cluster as its value
- Make sure to keep the same name for another configuration element which is found under the path – VMware->VIC Deploy->vRealize Automation->Deployments
Edit the name of the element and delete its attributes (if any)
- Go to the workflows tab, expand the tree – Library->Dynamic Types->Configuration and execute the workflow – Import Configuration From Package
- Select the ‘dynamictypes-config-23-Feb-2017-19-36-55-GMT.package’ and submit the workflow as below –
- Copy the vic v1.2.0.tar file (part of vSphere Integrated Containers 1.2.0 OVA ) to your vRO environment
- Login to the vRO appliance and copy the vic v1.2.0.tar file to this location –
/etc/vco/app-server
- Untar the file using the following command –
tar –xvf vic1.2.0.tar
- A folder should be created on the path name vic
- Change the permissions for this folder – chown –R vco:vco vic
- Verify the change of permissions by executing – ls –l
- Edit the /etc/vco/app-server/properties file and add the following property – com.vmware.js.allow-local-process=true
- Close the editor and restart the vco service – /etc/init.d/vco-server restart
- Go back to the unzipped directory of ‘VIC-Deploy.zip’ that you downloaded in the first step and import the Xaas blueprint into your vRA setup using a utility called CloudClient
- Login to your vRA environment using CloudClient –
- Import the blueprint as shown in the screenshot below –
Once you successfully import the blueprint, you should see this blueprint in vRA like below –
- Similarly, execute the command – vra content import again for the xaas-resource action and import it also in vRA
- Login to your vRA tenant, navigate to Design->XaaS->XaaS Blueprints and edit the blueprint ‘Deploy Virtual Container Host’
- Go to the Blueprint Form tab and select the field named – Select vSphere / ESXi Host
Make sure that the ‘Default Value’ matches the name of configuration element specified in Step-8
- Publish this blueprint. Add it to a vRA service and create entitlements for the DevOps users who will be requesting this blueprint
- Similarly, add the ‘Destroy VCH’ action to the entitlements for DevOps users. This action will be used to remove VCH from the environment
- Go to the vRA Catalog tab and you should see ‘Deploy Virtual Container Host’ as a catalog item
- Request the item, pass in the required parameters like – Virtual Container Host Name and Bridge Network Port Group and submit the request
- Check the status of your request in the Requests tab
- Login to vSphere and you should see a vApp named ‘Demo-01’ and a VM with the same name provisioned in your environment as shown in screenshot below –
- Login to your vRA tenant, navigate to the ‘Containers’ tab and in the ‘Hosts’ section you should see ‘Demo-01’ with status as ‘ON’ as shown below –
Once the VCH is deployed, the URL of the VCH can be made available to the developers who can start deploying vSphere Integrated Container using the Docker Client OR from vRA using the vRA-Containers provisioning feature.