Cloud Lab-39: vCloud Director Organizations- “Create vApp Templates”

In previous post, i have created Organization vDC network for our different organizations. in today’s post, lets see how we create vAPP templates in vCloud Director and than these vApp template will be use to deploy different types of services under each Cloud Organizations.

LAB-39 TASKS

In this Lab we will perform following tasks

  1. Create vCloud Director vApp Templates. 
  2. Import Media files (ISO/Floppy) in Organization Catalogs

1-Create vCloud Director vApp Templates.

what is vApp Templates?

A vApp template is a virtual machine image that is loaded with an operating system, applications, and data. These templates ensure that virtual machines are consistently configured across an entire organization

There are two ways to create vAPP Templates

  1.  Import a VM from OVF, OVA file
  2. Import a VM from vCenter inventory

Let’s see both method one by one.

 To create a vAPP Template- >Go to vCloud Director “Manage & Monitor” -> Organization -> Select an Organization “SkyNet” -> “Catalogs” -> Select “SkyNet-Catalog”

 Method 1: Import a VM from OVF, OVA file

 If you already downloaded a VMware appliance. then you should choose the Highlighted option to upload the VM “ova/ovf” file in vAPP Templates.

cloudlab39-vCloudOrganization-CreatevAppTemplate-01

NOTE: In case if you don’t have an appliance at the moment.it is easy to export you existing VM into ova/ovf file. For sake of demonstration I already prepared a “rhel01” VM. Let export him as OVA template file.

 Right Click on the VM -> All vCenter Actions -> Export OVF Templates

cloudlab39-vCloudOrganization-CreatevAppTemplate-02

NOTE: make sure any kind of media (CD/Floppy/USB) is disconnect and not mounted.

Choose the “Name” of OVA file and “location” where you want to export the file. Select “single file (OVA)” format and “uncheck image file” check box -> Click “OK”

cloudlab39-vCloudOrganization-CreatevAppTemplate-03

If you see in vSphere web client “recent tasks”, an OVF Export task has initialized. Wait for the task to complete

cloudlab39-vCloudOrganization-CreatevAppTemplate-04

When task will complete go back to “Catalog’ screen. Click on the highlighted icon to upload an ova/ovf file.

cloudlab39-vCloudOrganization-CreatevAppTemplate-01

Click “Allow”. If this popup appear

cloudlab39-vCloudOrganization-CreatevAppTemplate-05

Choose “Local file”. Browse the file which we exported above in ova format. Set a “template name” and description -> Click “upload”

cloudlab39-vCloudOrganization-CreatevAppTemplate-06

Now wait for upload to complete.

 If everything went fine then you will see your template has exported and is in ready state as shown below

cloudlab39-vCloudOrganization-CreatevAppTemplate-07

Method 2: Import a vCenter Inventory.

To import a VM from vCenter inventory for vAPP Template-> Click on “2nd icon” as highlighted.

cloudlab39-vCloudOrganization-CreatevAppTemplate-08

Choose a “Virtual Machine”, enter his “vAPP Template name”, Select “catalog” where you want to put this vAPP Template and also choose option such as “Copy the VM “ or “Move” the same VM from vSphere to vCloud Director inventory.

cloudlab39-vCloudOrganization-CreatevAppTemplate-09

NOTE: Only shutdown VM appear as source in “import from vSphere” Inventory

 Wait for VM to import into the “vAPP template” section of organization Catalog. If everything went fine then you should see vAPP Template screen as shown below.

cloudlab39-vCloudOrganization-CreatevAppTemplate-10

2-Import Media files (ISO/Floppy) in Organization Catalogs

 You have the option to import media file into the catalog. So if you want to install VM by yourself then you have image file available for respective OS into the catalog.

To import a media file into the catalog ->Select “Media & Other” tab and click on highlighted icon to import a media into the catalog.

cloudlab39-vCloudOrganization-CreatevAppTemplate-11

Select the media file. Change the name of media file if you want -> Click “Upload”

cloudlab39-vCloudOrganization-CreatevAppTemplate-12

After media file has uploaded into the media catalog. Your screen should look like as shown below

cloudlab39-vCloudOrganization-CreatevAppTemplate-13

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s