With Linux virtual machine templates, you can use Application Services on vCloud Director to create an application blueprint and deploy Linux-based services and applications.
Verify that vCloud Director 5.1.2 or 5.5 is installed and configured.
Verify that the vCloud organization that you plan to use with Application Services is created and configured with a user account that has privileges to create and share vCloud Director catalog templates.
Familiarize yourself with how to create a vApp in vCloud Director. See vCloud Director documentation.
Creating multiple virtual machine vApp templates is not supported.
Verify that the vApp meets the Application Services virtual machine requirements. See Virtual Machine Requirements for Creating vCloud Director Custom Templates.
Familiarize yourself with how to install and configure VMware Tools.
- Log in to vCloud Director and create a vApp with one virtual machine.
Allocate the appropriate virtual storage and virtual memory to support the Linux operating system and your application.
- Install the supported Linux operating system in the virtual machine.
- Install VMware Tools in the virtual machine.
- Log in the virtual machine with root privileges and open a terminal.
- Download and install the supported JRE packages with the YUM package management tool or APT-GET packaging tool.
If you have the supported JRE packages installed, skip this step.
- Download the JRE package from http://Application_Director_IP/agent/jre-1.7.0_51-lin-ArchitectureName.zip, where the ArchitectureName is 32 or 64.
- Create an /opt/vmware-jre directory.
- Unzip the JRE package.
unzip -d /opt/vmware-jre
- Enter /opt/vmware-jre/bin/java -version to verify the installation
The installed version of Java appears.
- Remove any existing JRE packages from the /usr/java/default, /usr/java/latest, and /usr/java/1.7.0_21 directories.
- Download and install the Application Services agent bootstrap service.
- Change directory to /tmp/ folder.
- For an RPM-based virtual machine, download the agent bootstrap from http://Application_Director_IP/agent/vmware-appdirector-agent-service_22.214.171.124-0_ArchitectureName.rpm to the folder and enter rpm -i vmware-appdirector-agent-service_126.96.36.199-0_ArchitectureName.rpm in the terminal to install the service, where the ArchitectureName is i386 for 32-bit and x86_64 for 64-bit.
- For a DEB-based virtual machine, download the agent bootstrap from http://Application_Director_IP/agent/vmware-appdirector-agent-service_188.8.131.52-0_ArchitectureName.deb to the folder and enter dpkg -i vmware-appdirector-agent-service_184.108.40.206-0_ArchitectureName.deb in the terminal to install the service, where the ArchitectureName is i386 for 32-bit and amd64 for 64-bit.
- Shut down the Linux virtual machine and stop the vApp in vCloud Director.
- Navigate to the vCloud Org location where the Linux vApp resides.
- Select the vApp and click Add to Library to create a vApp template in the library.
What to do next
Register the Linux template for use in Application Services. See Register the vCloud Director Cloud Provider and Template.