When provisioning Red Hat Enterprise Linux (RHEL) 8.x virtual machines through vRealize Automation (vRA) using vSphere Guest OS Customization or Cloud-init:
xxxx-xx-xx xx:xx:xx,316 - util.py[WARNING]: vmtoolsd failed to get guestinfo.ovfEnv: Unexpected error while running command.Command: ['/usr/bin/vmtoolsd', '--cmd', 'info-get guestinfo.ovfEnv']Exit code: 1Reason: -Stdout: Stderr: No value foundxxxx-xx-xx xx:xx:xx,329 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
Aria Automation 8.x
vSphere 8.x, 9.x
The issue occurs because the cloud-init configuration on the RHEL 8.x template does not include the OVF datasource in its search list. Without the OVF datasource, cloud-init is unable to read the environment data passed by the vSphere platform during the customization phase.
To resolve this issue, the cloud-init configuration in the base VM template must be updated to include the OVF datasource.
sudo vi /etc/cloud/cloud.cfg
datasource_list: [ NoCloud, ConfigDrive, Azure, OVF, OpenStack, Ec2 ]
sudo cloud-init clean --seed