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.
In this Lab we will perform following tasks
- Create vCloud Director vApp Templates.
- 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
- Import a VM from OVF, OVA file
- 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.
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
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”
If you see in vSphere web client “recent tasks”, an OVF Export task has initialized. Wait for the task to complete
When task will complete go back to “Catalog’ screen. Click on the highlighted icon to upload an ova/ovf file.
Click “Allow”. If this popup appear
Choose “Local file”. Browse the file which we exported above in ova format. Set a “template name” and description -> Click “upload”
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
Method 2: Import a vCenter Inventory.
To import a VM from vCenter inventory for vAPP Template-> Click on “2nd icon” as highlighted.
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.
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.
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.
Select the media file. Change the name of media file if you want -> Click “Upload”
After media file has uploaded into the media catalog. Your screen should look like as shown below