In previous post, i have discussed the first vApp Fenced use case. today, i move forward to deploy last and second Fenced vApp use case, which is vApp Fenced Network connected to Organization Routed network. 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”
In this Lab we will perform following tasks
- Architecture diagram for Fenced vApp Use Case 2.
- Build Fenced vApp1
- Build Fenced vApp2
- Verify Fenced vApp Method-1
- Verify Fenced vApp Method-2
1-Architecture diagram for Fenced vApp Use Case 2
Following is architecture diagram for Fenced vApp Use case 2, 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 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
Name your vApp, i Chooses vApp name “vApp-Fenced-OrgRouted-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-OrgRouted-Web1” and choose the Storage policy-> Click “Next”
Set the Computer Name of first VM into “vApp-Fenced-OrgRouted-Web1”. Choose vApp Network “HITech-RND-Org-Routed”-> 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-OrgRouted-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-OrgRouted-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-OrgRouted-1“. Choose “Copy to” option.
Enter your second vApp Name “vApp-Fenced-OrgRouted-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-OrgRouted” 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-OrgRouted-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-OrgRouted-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-Routed”
5-Verify Fenced vApp Method-2
For more verification. Open the console of “vApp-Fenced-OrgRouted-1” VM. Login using “root” credentials. Run “ifconfig” cmd and see his “MAC and IP” address detail
Similarly open the console of “vApp-Fenced-OrgRouted-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.