7.1

Table Of Contents
Scenario: Prepare Your Reference Machine for the Dukes Bank vSphere Sample
Application
You want your template to support the Dukes Bank sample application, so you must install both the guest
agent and the software bootstrap agent on your reference machine so vRealize Automation can provision
the software components. To simplify the process, you download and run a vRealize Automation script that
installs both the guest agent and the software bootstrap agent instead of downloading and installing the
packages separately.
Procedure
1 Log in to your reference machine as the root user.
2 Download the installation script from your vRealize Automation appliance.
wget https://vRealize_VA_Hostname_fqdn/software/download/prepare_vra_template.sh
If your environment is using self-signed certicates, you might have to use the wget option --no-check-
certificate option. For example:
wget --no-check-certificate
https://vRealize_VA_Hostname_fqdn/software/download/prepare_vra_template.sh
3 Make the prepare_vra_template.sh script executable.
chmod +x prepare_vra_template.sh
4 Run the prepare_vra_template.sh installer script.
./prepare_vra_template.sh
You can run the help command ./prepare_vra_template.sh --help for information about non-
interactive options and expected values.
5 Follow the prompts to complete the installation.
You see a conrmation message when the installation is successfully completed. If you see an error
message and logs in the console, resolve the errors and run the installer script again.
You installed both the software bootstrap agent and its prerequisite, the guest agent, to ensure the Dukes
Bank sample application successfully provisions software components. The script also connected to your
Manager Service instance and downloaded the SSL certicate to establish trust between the Manager Service
and machines deployed from your template. This is a less secure approach than obtaining the Manager
Service SSL certicate and manually installing it on your reference machine in /usr/share/gugent/cert.pem,
and you can manually replace this certicate now if security is a high priority.
Scenario: Convert Your Reference Machine into a Template for the Dukes Bank
vSphere Application
After you install the guest agent and software bootstrap agent on your reference machine, you disable
SELinux to ensure your template supports the specic implementation of MySQL used in the Dukes Bank
sample application. You turn your reference machine into a template that you can use to provision the
Dukes Bank vSphere sample application.
After you convert your reference machine to a template, you cannot edit or power on the template unless
you convert it back to a virtual machine.
Chapter 1 External Preparations for Provisioning
VMware, Inc. 71