Posts

Showing posts with the label ova

How to build Ubuntu Server 20.04 LTS OVA with vAPP Properties ?

Image
This document will explain how to build an Ubuntu Server 20.04 LTS ova with vAPP properties enabled. Requirement: VM Deployment access required in vCenter environment. We have used the vCenter Server 6.7 and ESXi 6.5 while documented the below steps 1. Install a ubuntu server 20.04 lts vm with minimal cpu, ram and HDD(as needed). Make your own partition. 2. Use apt-get to upgrade all the packages along with the additional packages that required to install in the vm:      $ sudo apt-get update && apt-get upgrade -y 3. Make sure that 'open-vm-tools' and 'ifupdown' package is installed in the vm:       $ sudo apt-get install open-vm-tools  -y       $ sudo apt-get install ifupdown  -y 4. Take the console of the vm and stop, disable and mask the Network Manager service:       $ systemctl  stop  NetworkManager.service       $ systemctl  disable NetworkManager.service     ...

VMware OVA deployment using ansible

To deploy OVA on VMware platform using ansible a provision server is required from where ansible playbooks need to be executed. Follow the steps as mentioned in  how to build ansible provision server for VMware  and make the provision server ready. With the help of vmware_deploy_ovf  module ansible can deploy VMware OVA. Let say the requirement is to deploy the OVA in a vm folder and under a resource pool in hosts view, then it should go through the following check points: Create vm folder and resource pool if not present OVA should be available in the provision server Before deploying the OVA, extract the OVA and check the custom section of .ovf file to see what all variable need to pass in the playbook at the time of deployment. We will create three yml files to keep: vmware ova deployment code ( vsphere_ova_deploy.yml ) vmware environment login details ( vsphere_creds.yml ) variables used for the guest deployment ( vsphere_var.yml ) In m...