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.


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.


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 login to “HITech Organization” on following vCloud Director Organization URL

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


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”


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”


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”


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


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


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.


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.


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


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. 



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.


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


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


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


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


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


In background vCloud Director will performed following tasks


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.


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. 


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

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


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”



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


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


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.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s