I recently discovered an issue while using the Software Components feature of vRA7 on a CENTOS7 template. All was working fine before I performed a YUM update. You can see from the screenshot below that the VM provisions but the Software Component does not deploy. After the YUM Update on my template, it appears there was a change in the way CentOS7 calls systemd. To be honest I don’t know all the details as VMware engineering actually figured this out so they get all the credit. See the workaround below.
To fix this issue follow these steps:
Reconfigure the template VM:
1. Turn on the VM
2. edit /opt/vmware-appdirector/agent-bootstrap/vmware_vra_software_agent and remove these lines:
# Source init.d function library
if [ -f /etc/rc.d/init.d/functions ]; then
. /etc/rc.d/init.d/functions
elif [ -f /etc/init.d/functions ]; then
. /etc/init.d/functions
fi
3. rm /etc/init.d/vmware_vra_software_agent
4. cp /opt/vmware-appdirector/agent-bootstrap/vmware_vra_software_agent /etc/init.d/vmware_vra_software_agent
5. Shutdown the VM and perform whatever steps make the VM ready for vRA (snapshot, make template, etc).
Both the edit and the copy are vital.
Pingback: How to create a vRA 7 Automation Agent Linux Template – Part I – VMtoCloud.com
Hello,
I did all the steps but it is in “in progress” state. what would be the problem? Do i have to import the IaaS certificate manually to the template VM or not?
Thanks.
Hi Reza,
You will need to follow this guide to get the agent installed. It will also import the IaaS certificate. https://www.vmtocloud.com/how-to-create-a-vra-7-automation-agent-linux-template-part-i/
Hi Ryan,
I did these steps already but no success. any idea?
what OS type should i choose in Vcenter? Redhat 6 or 7?
It depends what version of vCenter. If it is 5.5 it should be RHEL 6 if you are running CentOS or RHEL. In vCenter 6 it should match the OS so RHEL 6 template RHEL 6 and CentOS 6 should be CentOS 6
I’m using Vcenter 5.5. So in order to create a Centos 7 VM i should select RHEL 6. is that right?
and inside the vm i should change the /etc/redhat-release to “Red Hat Enterprise Linux Server release 7.0 (Maipo)”.
I don’t have /opt/vmware-appdirector/agent-bootstrap/vmware_vra_software_agent on my CentOS machine.
From where do i get that ?
Thanks in advance
Pingback: The Beginner’s Guide to vRealize Automation 7 Software Components – Nuvoli Systems
Pingback: vRA7 Software Agent issue for CentOS7 or RHEL7 – icgkb