VMware {code}

Thursday 24 December 2015

Part 4. Prepare the VM template for Cloud provisioning - Linux

1. Agent files and Location (on AppDirector).

Copy the necessary agents files depending on the OS and architecture to the VM template /tmp folder. You can use SCP/WGET/WinSCP anything.


# cd /home/darwin/tcserver/darwin/webapps/darwin/agent


Below are the files you would be primarily interested in (depending on type of OS and architecture):

jre-1.7.0_72-lin32.zip
jre-1.7.0_72-win64.zip
jre-1.7.0_72-lin64.zip
vmware-appdirector-agent-service-vcac_6.0.0.0-0_i386.rpm
vmware-appdirector-agent-service-vcac_6.0.0.0-0_x86_64.rpm

If you are using the web browser then below is the link (just change the file names):

http://<vra-appliance server>/agent/jre-1.7.0_72-lin64.zip

2. Create a folder vmware-jre

# mkdir /opt/vmware-jre

3. Unzip the jre package to the folder vmware-jre

# unzip -d /tmp/jre-1.7.0_72-lin32.zip /opt/vmware-jre

if unzip is not installed then do #yum install unzip

verify the version installed,

# /opt/vmware-jre/bin/java -version

Also (optional) you could install the latest JDK updates using below commands but purely upto you,

# yum install java-1.7.0-openjdk

4. Download and install the Linux agent (gugent)

a. Download the file



b. Copy the file,

The file downloaded will be "LinuxGuestAgentPkgs.zip". Copy this file to the VM template /tmp folder.

c.Unzip this file

# unzip -d /tmp/LinuxGuestAgentPkgs.zip

Now you should see a folder LinuxGuestAgentPkgs with many folders inside depending on Linux OS and architecture.

# cd LinuxGuestAgentPkgs
# cd rhel5-x86

d. Install the gugent

# rpm -i gugent-6.2.0-103014.i386.rpm



5. Install vCAC agent

This is the file we copied in the step 1 above,

# rpm -i vmware-appdirector-agent-service-vcac_6.0.0.0-0_i386.rpm

6. Register vCAC

For SSL connection

/opt/vmware-appdirector/agent-bootstrap/vcac-register.sh -r 443 -s <IaaS server fqdn>

For Non-SSL connection

/opt/vmware-appdirector/agent-bootstrap/vcac-register.sh -r 80 -n -s <vRA server fqdn>

7. Install Gugent (vrm-agent)

For SSL connection
/usr/share/gugent/installgugent.sh vsvcac.teapot.com:443 ssl

For Non-SSL connection

/usr/share/gugent/installgugent.sh vsiaas.teapot.com ssl

8. Verify if all went well

chkconfig --list | grep vrm-agent

rpm -qa | grep dmidecode

rpm -qa | grep vmware-appdirector-agent-service-vcac

Run this command to verify the agent installation, all should pass without error ([ERROR]).

/usr/share/gugent/rungugent.sh


9. Once all above done, shut down the VM and convert it template.

Part 1. Install & Configure vRA Application Director.


No comments:

Post a Comment