vRA7 Software Agent Gotcha for CentOS7 or RHEL7

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.

Screen Shot 2016-01-06 at 4.43.14 PM

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.

Remember, sharing is caring ->Tweet about this on Twitter
Twitter
0Share on Facebook
Facebook
0Share on LinkedIn
Linkedin
Share on Google+
Google+
0Email this to someone
email

11 Replies to “vRA7 Software Agent Gotcha for CentOS7 or RHEL7”

  1. Pingback: How to create a vRA 7 Automation Agent Linux Template – Part I – VMtoCloud.com

  2. 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.

  3. 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

  4. Pingback: The Beginner’s Guide to vRealize Automation 7 Software Components – Nuvoli Systems

  5. Pingback: vRA7 Software Agent issue for CentOS7 or RHEL7 – icgkb

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.