7.1

Table Of Contents
Procedure
1 Log in to your reference machine as the root user.
a Edit your /etc/selinux/config le to disable SELinux.
SELINUX=disabled
If you do not disable SELinux, the MySQL software component of the Duke's Bank Sample
application might not work as expected.
b Remove udev persistence rules.
/bin/rm -f /etc/udev/rules.d/70*
c Enable machines cloned from this template to have their own unique identiers.
/bin/sed -i '/^\(HWADDR\|UUID\)=/d'
/etc/sysconfig/network-scripts/ifcfg-eth0
d If you rebooted or recongured the reference machine after installing the software bootstrap agent,
reset the agent.
/opt/vmware-appdirector/agent-bootstrap/agent_reset.sh
e Power down the machine.
shutdown -h now
2 Log in to the vSphere Web Client as an administrator.
3 Right-click your reference machine and select Edit .
4 Enter dukes_bank_template in the VM Name text box.
5 If your reference machine has a CentOS guest operating system, select Red Hat Enterprise Linux 6 (64-
bit) from the Guest OS Version drop-down menu.
If you select CentOS, your template and customization specication might not work as expected.
6 Click OK.
7 Right-click your reference machine in the vSphere Web Client and select Template > Convert to
Template.
vCenter Server marks your dukes_bank_template reference machine as a template and displays the task in
the Recent Tasks pane. If you have already brought your vSphere environment under vRealize Automation
management, your template is discovered during the next automated data collection. If you have not
congured your vRealize Automation yet, the template is collected during that process.
Scenario: Create a Customization Specification for Cloning the Dukes Bank
vSphere Sample Application Machines
You create a customization specication to use with your Dukes Bank machine template.
Procedure
1 Log in to the vSphere Web Client as an administrator.
2 On the home page, click Customization  Manager to open the wizard.
3 Click the New icon.
4 Specify properties.
a Select Linux from the Target VM Operating System drop-down menu.
b Enter Customspecs_sample in the Customization Spec Name text box.
Configuring vRealize Automation
72 VMware, Inc.