Cloud Lab-49: vApp Fenced Use Case 1: vApp Network (Fenced) –> Organization vDC Network (Direct)

In previous posts, i have discussed the seventh vApp deployment Use cases.but this is not end of it, there is one other special type of vApp deployment use Case exists, which we called Fenced vApp. the purpose of Fenced vApp is to deploy Identical virtual machines in different vApps. this is kind of use case which we use mostly  for Development and Testing of Virtual Machine, where we need VMs for testing the Applications with identical configuration. for more information about what is vApp Fencing and what are their deployment options. you should visit my eailer post vCloud Director Organizations- “vApp Deployment UseCases”

Today, i am moving forward to show you how to deploy and configure Fenced vApp Use Case-1.

LAB-49 TASKS

In this Lab we will perform following tasks

  1. Architecture diagram for Fenced vApp Use Case 1. 
  2. Build Fenced vApp1
  3. Build Fenced vApp2
  4. Verify Fenced vApp Method-1
  5. Verify Fenced vApp Method-2

1-Architecture diagram for Fenced vApp Use Case 1

Following is architecture diagram for Fenced vApp Use case 1, which I am going to configure in this post.

cloudlab49-vCloudOrganization-FencedAppUsecases-01

2-Build Fenced vApp1

To deploy vApp, you should login to your Organization. in my case, i am choosing my Organization HITech for this use case.so login to “HITech Organization” on following vCloud Director Organization URL https://vcloud.vmlab.com/cloud/org/hitech

NOTE: This the same Organization, which i have created/configured in my previous post vCloud Director Foundation- “Organizations Configuration”

From Organization login Screen, provide HITech Organization admin Credentials “hitechadmin/password”

Once login go to my “My Cloud” Tab -> Click on highlighted icon to build a new vApp in HITech Organization.

Click the “Build New vApp” icon from menu

cloudlab42-vCloudOrganization-AppUsecases-02

Name your vApp, i Chooses vApp name “vApp-Fenced-OrgDirect-1”, Next choose your “Org VDC” according to vApp architecture diagram, where vApp will be deployed and set the vApp leases, Once done-> Click “Next”

cloudlab49-vCloudOrganization-FencedAppUsecases-02

NOTE: This the same vDC, which i have created/configured in my previous post vCloud Director Foundation- “Organization vDCs Configuration”

Choose Catalog “Public Catalog”, Select vApp “Webserver-Template” from vApp templates -> Click “Add”. Once done. Click “Next”

cloudlab49-vCloudOrganization-FencedAppUsecases-03

NOTE: This the same catalog and vApp template, which i have created/configured in my previous posts “vCloud Director Foundation- “Organization Catalog and User Rights Configuration” and vCloud Director Organizations- “Create vApp Templates”  respectivly

Select the Full Name of VMs “vApp-Fenced-OrgDirect-Web1” and choose the Storage policy-> Click “Next”

cloudlab49-vCloudOrganization-FencedAppUsecases-04

Set the Computer Name of first VM into “vApp-Fenced-OrgDirect-Web1”. Choose vApp Network “HITech-RND-Org-Direct”-> Click “Next”

cloudlab49-vCloudOrganization-FencedAppUsecases-05

In “Networking” tab Check “Fence vApp”. If you want to “Retain IP/MAC” then make sure to check that box as well ->Click “Finish”

cloudlab49-vCloudOrganization-FencedAppUsecases-06

NOTE: this is same networks, which i created/configured in my previous post vCloud Director Organizations- “Create Organization vDC Networks”

When you click Finish button. If you see your vSphere Client “Recent tasks” it will perform following task in background.

cloudlab49-vCloudOrganization-FencedAppUsecases-07

Go to your Organization vCloud Director Cell main page. As you can see below, your “vApp-Fenced-OrgDirect-1” has deployed and its in “stopped” state. Lets Start the vApp by click on “Play” button and click on “open” link to go to vApp Details.

cloudlab49-vCloudOrganization-FencedAppUsecases-08

When you start your Deployed vApp VMs. In background, vCloud Director will perform following tasks. you can see it on vSphere Client recent tasks.

cloudlab49-vCloudOrganization-FencedAppUsecases-09

In vApp details, As you can below VM is in “Running” State and has two IP addresses, one is internal vApp IP and other one is mapped to External network. 

cloudlab49-vCloudOrganization-FencedAppUsecases-10

 

Now First Fenced vApp has been created/deployed, lets create an another.

3-Build Fenced vApp2

Navigate into Org “HITech” home page. go to your “vApp-Fenced-OrgDirect-1”. Click on “Stop” Sign to stop the vApp.

cloudlab49-vCloudOrganization-FencedAppUsecases-11

When you stop your vApp. vCloud Director will perform following tasks in the background.

cloudlab49-vCloudOrganization-FencedAppUsecases-12

Right click on vApp “vApp-Fenced-OrgDirect-1“. Choose “Copy to” option.

cloudlab49-vCloudOrganization-FencedAppUsecases-13

Enter your second vApp Name “vApp-Fenced-OrgDirect-2”. Choose your provider vDC. Click “OK”

cloudlab49-vCloudOrganization-FencedAppUsecases-14

In background vCloud Director will performed following tasks as you can see in tasks, it cloned the second vApp from the first one.

cloudlab49-vCloudOrganization-FencedAppUsecases-15

Once your vApp2 has copied. Now we have two “vApp-Fenced-OrgDirect” vApps as shown below.Click on “Play” Button to start both vApps.

cloudlab49-vCloudOrganization-FencedAppUsecases-16

In background vCloud Director will performed following tasks

cloudlab49-vCloudOrganization-FencedAppUsecases-17

When both vApps are in “Running” state as shown below. Click on “Open link” one each vApp one by one to go to their details.

cloudlab49-vCloudOrganization-FencedAppUsecases-18

4-Verify Fenced vApp Method-1

Once you click on the “Open” link of vApp-Fenced-OrgDirect-1. it will direct leads to you that vApp properties. In vApp “Virtual machine” tab. you can see the first Fenced vApp IP details. 

cloudlab49-vCloudOrganization-FencedAppUsecases-19

NOTE: Check the Internal and external IP Address of this vApp.

Similarly following are the “vApp-Fenced-OrgDirect-2” Details.

cloudlab49-vCloudOrganization-FencedAppUsecases-20

NOTE: Check the Internal and external IP Address of this vApp. as you can see Both vApps has identical properties except their external IPs.

If you go to their (vApp) “Networking” tab. then you can see Network details, both are “fenced” and connected to same network “HITech-RND-Org-Direct”

cloudlab49-vCloudOrganization-FencedAppUsecases-21

cloudlab49-vCloudOrganization-FencedAppUsecases-22

5-Verify Fenced vApp Method-2

For more verification. Open the console of “vApp-Fenced-OrgDirect-1” VM. Login using “root” credentials. Run “ifconfig” cmd and see his “MAC and IP” address detail

cloudlab49-vCloudOrganization-FencedAppUsecases-23

Similarly open the console of “vApp-Fenced-OrgDirect-2” VM. Login using root credentials. Run “ifconfig” cmd and see his “MAC and IP” address detail

cloudlab49-vCloudOrganization-FencedAppUsecases-24

NOTE: You have noticed both vApps has identical IP/MAC Settings as well.

IMPORTANT: You can deploy as many vApps as you want in Fenced Network. You can easily access then from internet because they all have different external IP addresses.

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