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.

Prerequisites

vCloud Director

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

Procedure

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

  2. Install the supported Linux operating system in the virtual machine.
  3. Install VMware Tools in the virtual machine.
  4. Log in the virtual machine with root privileges and open a terminal.
  5. 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.

    1. 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.
    2. Create an /opt/vmware-jre directory.
    3. Unzip the JRE package.

      unzip -d /opt/vmware-jre

    4. Enter /opt/vmware-jre/bin/java -version to verify the installation

      The installed version of Java appears.

    5. Remove any existing JRE packages from the /usr/java/default, /usr/java/latest, and /usr/java/1.7.0_21 directories.
  6. Download and install the Application Services agent bootstrap service.
    1. Change directory to /tmp/ folder.
    2. For an RPM-based virtual machine, download the agent bootstrap from http://Application_Director_IP/agent/vmware-appdirector-agent-service_6.0.0.0-0_ArchitectureName.rpm to the folder and enter rpm -i vmware-appdirector-agent-service_6.0.0.0-0_ArchitectureName.rpm in the terminal to install the service, where the ArchitectureName is i386 for 32-bit and x86_64 for 64-bit.
    3. For a DEB-based virtual machine, download the agent bootstrap from http://Application_Director_IP/agent/vmware-appdirector-agent-service_6.0.0.0-0_ArchitectureName.deb to the folder and enter dpkg -i vmware-appdirector-agent-service_6.0.0.0-0_ArchitectureName.deb in the terminal to install the service, where the ArchitectureName is i386 for 32-bit and amd64 for 64-bit.
  7. Shut down the Linux virtual machine and stop the vApp in vCloud Director.
  8. Navigate to the vCloud Org location where the Linux vApp resides.
  9. 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.