Install Ansible automation portal on VMware vSphere
Deploy the Ansible automation portal appliance on VMware vSphere using the vSphere web client.
Prerequisites
- VMware vSphere/vCenter with permissions to create VMs and upload files to a datastore.
- The Ansible automation portal disk image in VMDK format, available from the Red Hat Ansible Automation Platform downloads page.
- Your cloud-init user-data file prepared with Ansible Automation Platform credentials and SSH keys.
- An SSH key pair for appliance access.
genisoimageinstalled on your local machine (for creating the cloud-init ISO).
Install using the vSphere web client
- Upload the VMDK disk image to a datastore:
- Open the vCenter web client.
- Navigate to Storage > Datastores and select your datastore.
- Click Upload Files and upload the Ansible automation portal VMDK file.
- Save your cloud-init user-data file as
cloud-init-user-data.yaml. Use the cloud-init template from the first boot configuration topic. - Create a cloud-init ISO from your user-data file.
VMware delivers cloud-init configuration to the VM as a small ISO disk image labeled
cidata. Cloud-init expects two files on the ISO:user-data(your configuration) andmeta-data(instance identity):$ cp cloud-init-user-data.yaml user-data $ echo "instance-id: automation-portal" > meta-data $ genisoimage -output cloud-init.iso -volid cidata -joliet -rock user-data meta-data - Upload the cloud-init ISO to the same datastore.
- Create a virtual machine:
- Right-click the cluster or host and select New Virtual Machine > Create a new virtual machine.
- Set the following example values. Replace the name, CPU, and memory to match your environment:
Field Example value Name automation-portalGuest OS Red Hat Enterprise Linux 9 (64-bit) CPU 6 cores Memory 24 GB Hard disk Remove the default disk Network Select your VM network - Click Next and then Finish.
- Attach the VMDK disk and cloud-init ISO to the VM:
- Copy the uploaded VMDK and cloud-init ISO to the VM folder on the datastore.
- Edit the VM settings.
- Click Add New Device > Existing Hard Disk and browse to the copied VMDK.
- Click Add New Device > CD/DVD Drive. Select Datastore ISO File and browse to the copied cloud-init ISO.
- Select Connect At Power On for the CD/DVD drive.
- Save the VM settings.
- Power on the VM. First-boot configuration takes 2-3 minutes.
Verification
- Open the VM console in vSphere or SSH into the VM and confirm that all services are running:
$ sudo systemctl status portal postgres devtools - Access the portal URL from your browser.