<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>HYPERVIZOR</title>
	
	<link>http://www.hypervizor.com</link>
	<description>From The Core To The Cloud</description>
	<lastBuildDate>Fri, 17 May 2013 18:31:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Hypervizor" /><feedburner:info uri="hypervizor" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Hypervizor</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Eating My Own Dogfood: SpringSource + WaveMaker + vCloud APIs + Cloud Foundry + vCloud Director</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/vR1TvcET0BI/</link>
		<comments>http://www.hypervizor.com/2011/11/eating-my-own-dogfood-springsource-wavemaker-vcloud-apis-cloud-foundry-vcloud-director/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 13:45:24 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1291</guid>
		<description><![CDATA[This is my attempt to &#8220;eat my own dog food&#8221; and use a handful of VMware products/technologies in my current role in PSO. It is also kind of my way to make sense of the entire Cloud Application Platform. For a quite some time now I&#8217;ve been focused on the infrastructure layer of the &#8220;cake&#8221; [...]]]></description>
				<content:encoded><![CDATA[<p>This is my attempt to &#8220;<a href="http://en.wikipedia.org/wiki/Eating_your_own_dog_food" target="_blank">eat my own dog food</a>&#8221; and use a handful of VMware products/technologies in my current role in PSO. It is also kind of my way to make sense of the entire Cloud Application Platform. For a quite some time now I&#8217;ve been focused on the infrastructure layer of the &#8220;cake&#8221; but I thought it might be good to start exploring other areas in the very rich VMware offerings.</p>
<p>First, let&#8217;s start with the holistic view.</p>
<h3>Diagram</h3>
<p>This is an overall illustration showing the products mentioned in the subject and how they relate to each other. In the next few sections I&#8217;ll talk briefly about my experience with each item and then wrap up with a conclusion on how I was able to benefit from this micro-project in the real world. Let&#8217;s get started!</p>
<p><a href="http://www.hypervizor.com/wp-content/plugins/download-monitor/download.php?id=18" target="_blank"><img src="http://www.hypervizor.com/wp-content/uploads/2011/11/112411_1319_EatingMyOwn1.gif" alt="" /></a></p>
<h3>Making the Wave</h3>
<p>WaveMaker (WM) is one of the products that really impressed me from the first look. Coming from a web development background, I can tell you that a tool like this would have been instrumental for me when I used to build complex web apps in the old days. You literally drag and drop items here and there and voila! You have a fully functioning web application.</p>
<p>I used WM here to build the application interface and multi-tenancy (i.e. accounting and authorization) as a starting point. I didn&#8217;t write a single code in this part, everything is visually available for you to drag, drop and run. That&#8217;s it. As you can imagine, this was the easiest part of the whole project and I wouldn&#8217;t be exaggerating if I told you that it was done in a matter of minutes.</p>
<h3>A sip of Java</h3>
<p>Now to the tricky part. More than 15 years ago I used to call myself a programmer. I used Basic, Pascal, C, C++ and then figured that it&#8217;s not really my thing. Few years latter to that I found myself dragged by force into the WebDev and hence started learning PHP with mySQL. Again, it wasn&#8217;t my area of interest so I stopped and promised myself that it will be my last attempt to learn anything in the programming/scripting world. Of course I was wrong.</p>
<p>I started learning about Java about 2 weeks ago! It was really a very, very fresh start since it&#8217;s been years without practicing to write a code. Despite that, I was able to find my way through to build some java methods and use them in WM. Let me explain in a bit detail here.</p>
<p>WM comes with a quite rich &#8220;Services&#8221; that you can inject in your project and one of which is Java. All you need to do is to inset a new Java service in your project, write your own methods and then call them within the app. Since I was quite fresh with Java and was as good as a newbie to this world, I found the Java SDKs of vCloud Director to be all what I need! I used also here the SpringSource Tool Suite (STS) to test my Java code before porting to WM. Of course I could have used any other IDE like Eclipse or NetBeans but I just wanted to stick with the VMware tools here. Note that switching between WM and STS is quite easy and straight forward. You just need to create a new Java project in STS with the WM sources, do your java coding/testing and then go back to WM and &#8220;refresh&#8221; your service to pickup anything new you have applied.</p>
<h3>Pushing to the Cloud</h3>
<p>A working App without a solid foundation to run on is useless. There are many options/places to run my app in but what else would be better than the amazing <a href="http://www.cloudfoundry.com/">Cloud Foundry</a>? You literally need to type a &#8220;vmc push&#8221; command and your app will be in the cloud in a minute. Now, how cool is that?</p>
<p>Prior to pushing my app to CF, I wanted to have a taste of the MicroCloud as well. It&#8217;s a complete CF platform running in a VM! You just need to download it and run it in Workstation/Fusion and then test your application exactly as if you were pushing and running it on CF.com. After doing all my trials on the MicroCloud, I pushed my app to CF.com, created a couple of instances with another one-liner and that&#8217;s all. My app is running now in the cloud <a href="http://cloudwave.cloudfoundry.com">http://cloudwave.cloudfoundry.com</a></p>
<h3>Putting it all together</h3>
<p>When I first started creating this app, it was really just for fun. I call some Java methods in the app to go and grab specific information from a vCloud Director environment and return it back in a form of data grids. Now, these vCloud environments are actually real public clouds that I&#8217;ve built for customers and they were kind to keep an access for me to them. The application is <a href="http://dev.wavemaker.com/wiki/bin/wmdoc_6.3/Multitenancy" target="_blank">multi-tenant</a> as I explained earlier, so I can login either as an Admin to view all my clouds, or as a vCloud owner who can only see his/her own environment and call information from it. At the time of writing these lines, I have three public clouds and one private/home cloud registered in the app where I can live-grab information from them and show back in my UI. Here is a simple screenshot.</p>
<p><a href="http://hypervizor.com/imgs/vcap-screen1.gif" target="_blank"><img src="http://www.hypervizor.com/wp-content/uploads/2011/11/112411_1319_EatingMyOwn2.gif" alt="" /></a><br />
<a href="http://hypervizor.com/imgs/vcap-screen2.gif" target="_blank"><img src="http://www.hypervizor.com/wp-content/uploads/2011/11/112411_1319_EatingMyOwn3.gif" alt="" /></a></p>
<h3>Conclusion</h3>
<p>Now to my favorite part in the whole article. I was doing a vCloud engagement this week for one of my customers and while we were in the middle of the discussions they challenged me on how easy or hard it is to leverage the vCloud APIs for integrating with their own portal. In fact, I always get this question in my vCD engagements especially with Service Providers and I normally talk in high level since it&#8217;s not in the scope of the project. This time, I had a better story to tell my customer. In fact I didn&#8217;t even talk, I just fired-up my browser, opened my CloudWave application online, logged in, and then pulled live information from the customer cloud to the application. I then looked back at them and said &#8220;I built this app with no programming experience, and just during this week in my spare time!&#8221;</p>
<p>Every single thing you&#8217;ve seen in the diagram or read in the article is a VMware product or technology. Even better, it&#8217;s FREE! You can go ahead and download WM or STS for free and play with them, you can download the MicroCloud and run it for free on your PCs/Macs. You can register an account, again for free, on CloudFoundry.com and start pushing your apps to the cloud. You can download and use the vCloud SDKs (be it Java, PHP or .NET) and start coding your own apps leveraging the examples included in the kits.</p>
<h3>Teaser</h3>
<p>I took it up a notch this morning and decided to go crazy. I&#8217;ve built my own Cloud Foundry platform from the scratch on one the public vClouds that I&#8217;ve built for a customer. It&#8217;s up and running at the time of this writing and I&#8217;ve just pushed my very first app to it. Stay tuned for more details soon. <a href="http://www.myvcap.com/" target="_blank">http://www.myvcap.com/</a><br />
<img src="http://www.hypervizor.com/imgs/myvcap.png" alt="" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F11%2Feating-my-own-dogfood-springsource-wavemaker-vcloud-apis-cloud-foundry-vcloud-director%2F&amp;title=Eating%20My%20Own%20Dogfood%3A%20SpringSource%20%2B%20WaveMaker%20%2B%20vCloud%20APIs%20%2B%20Cloud%20Foundry%20%2B%20vCloud%20Director" id="wpa2a_2"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/vR1TvcET0BI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/11/eating-my-own-dogfood-springsource-wavemaker-vcloud-apis-cloud-foundry-vcloud-director/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/11/eating-my-own-dogfood-springsource-wavemaker-vcloud-apis-cloud-foundry-vcloud-director/</feedburner:origLink></item>
		<item>
		<title>Double-Diagram: vCloud Director Management Pod in the Public &amp; Private Clouds!</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/xucmVWENM3c/</link>
		<comments>http://www.hypervizor.com/2011/11/double-diagram-vcloud-director-management-pod-in-the-public-private-clouds/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 08:30:50 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[Diagrams]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1281</guid>
		<description><![CDATA[Those two diagrams have been sitting in my PC for ages and I thought it&#8217;s time for them to see the light. As a perfectionist by nature I think that they are probably the worst diagrams I&#8217;ve designed to date! The reason being is that I am probably missing way too many items and services. [...]]]></description>
				<content:encoded><![CDATA[<p>Those two diagrams have been sitting in my PC for ages and I thought it&#8217;s time for them to see the light. As a perfectionist by nature I think that they are probably the worst diagrams I&#8217;ve designed to date! The reason being is that I am probably missing way too many items and services. It&#8217;s a quite rich topic when it comes to the management and monitoring of the cloud (be it public or private) and to top that, VMware is coming out with something new every day that is revolutionary and game changing. Have a look at the AppDirector on YouTube for example or Google what is coming in vCenter Operations Enterprise 5.0! Mind blowing stuff!</p>
<p>So, that being said, those diagrams are far from being complete or perfect. Just accept them as they are and I will keep trying to adjust and complete the missing pieces.</p>
<h3>Few notes on the diagrams:</h3>
<ul>
<li>As you notice, there are two diagrams here covering the same topic but one is focusing on the private cloud and the other on the public side.</li>
<li>There are many items that can overlap between the two diagrams. You can mix and match what you see relevant to your environment. The things are organized the way they are just to fit everything nicely in the limited A3 size.</li>
<li>I focused in the Public Cloud diagram on the portal exposure to the Internet since it&#8217;s a (somewhat) complex topic and requires proper illustration (I blogged about it in details here).</li>
<li>For the Private Cloud, I focused more on the management and monitoring aspect but make no mistake, these are as quite important for a Service Provider in a public cloud! Again, I&#8217;m just trying to fit so many things in so little space.</li>
</ul>
<p>That&#8217;s it from me today.</p>
<h3>Public Cloud Management Pod:</h3>
<p><a href="http://www.hypervizor.com/wp-content/plugins/download-monitor/download.php?id=16"><img src="http://www.hypervizor.com/wp-content/uploads/2011/11/110311_0812_DoubleDiagr1.gif" alt="" /></a></p>
<h3>Private Cloud Management Pod:</h3>
<p><a href="http://www.hypervizor.com/wp-content/plugins/download-monitor/download.php?id=17"><img src="http://www.hypervizor.com/wp-content/uploads/2011/11/110311_0812_DoubleDiagr2.gif" alt="" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F11%2Fdouble-diagram-vcloud-director-management-pod-in-the-public-private-clouds%2F&amp;title=Double-Diagram%3A%20vCloud%20Director%20Management%20Pod%20in%20the%20Public%20%26%20Private%20Clouds%21" id="wpa2a_4"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/xucmVWENM3c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/11/double-diagram-vcloud-director-management-pod-in-the-public-private-clouds/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/11/double-diagram-vcloud-director-management-pod-in-the-public-private-clouds/</feedburner:origLink></item>
		<item>
		<title>How to remote access a Linux GUI from a vCloud environment using a PC or an iPad?</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/mxgZuKlwbuk/</link>
		<comments>http://www.hypervizor.com/2011/07/how-to-remote-access-a-linux-gui-from-a-vcloud-environment-using-a-pc-or-an-ipad/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 15:19:11 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/2011/07/how-to-remote-access-a-linux-gui-from-a-vcloud-environment-using-a-pc-or-an-ipad/</guid>
		<description><![CDATA[I&#8217;ve received this question from one of my readers where he wanted an RDP-like mechanism to access the Linux GUI from a PC or a mobile device (e.g. iPad or iPhone). In his environment he plans to provide some GUI-based applications to his end-users and it must be accessible remotely using Windows and iOS. The [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve received this question from one of my readers where he wanted an RDP-like mechanism to access the Linux GUI from a PC or a mobile device (e.g. iPad or iPhone). In his environment he plans to provide some GUI-based applications to his end-users and it must be accessible remotely using Windows and iOS. The vCD portal, for some reason, is not a preferred method in his use-case.</p>
<p>I&#8217;ve tried to simulate this in one of my public vCloud accounts and I wanted to share with you these two methods in case they are of any interest to others.</p>
<h3>Remote access from Windows machines:</h3>
<p>I&#8217;ve used here two free tools in order to access the Linux GUI remotely. The first one is my favorite SSH client, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a>. This is to initiate the ssh connection to your VM in the cloud. The second tool is called <a href="http://sourceforge.net/projects/xming/files/" target="_blank">Xming </a>and we will use it here to forward the X-Window traffic. You need to download and install both the Xming and Xming-fonts utilities.</p>
<p>After the installation is done, all what you need is to fire-up your putty client, and set your SSH connection as follows:</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote1.png" alt="" /></p>
<p>in the Connection -&gt; SSH -&gt; X11 panel click on the &#8220;Enable X11 forwarding&#8221; check box and put &#8220;localhost:0&#8243; in your X display location. Now start the SSH connection and when you are there in the Linux shell you can either launch the GUI application directly (e.g. firefox as shown in the screen shot below) or launch a complete Gnome / KDE session by issuing the commands gnome-session / kdestart respectively.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote2.png" alt="" /></p>
<h3>Remote access from an iOS device (iPhone or iPad):</h3>
<p>In this method i used a paid App called &#8220;iSSH&#8221; since i already have it installed in my iPhone/iPad. You simple need to download the App to your iOS device and setup your SSH connection. once you are at the Linux shell, you also need to run your GUI app and then click to the &#8220;X&#8221; icon to see the display. Make sure to enable the X-Window in the App after you install it since it is switched off my default.</p>
<p><strong>The iPhone Screenshots:<br />
</strong></p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote3.png" alt="" /></p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote4.png" alt="" /></p>
<p><strong>The iPad Screenshots:<br />
</strong></p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote5.png" alt="" /></p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/072511_1518_Howtoremote6.png" alt="" /></p>
<h3>So what is the catch here?</h3>
<p>As you may have already noticed, you can only use these two methods if your VMs are connected to an external network (direct or routed). If your VMs are isolated, there is no way to access them remotely. Your only option will be the native VMRC through the vCloud portal.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F07%2Fhow-to-remote-access-a-linux-gui-from-a-vcloud-environment-using-a-pc-or-an-ipad%2F&amp;title=How%20to%20remote%20access%20a%20Linux%20GUI%20from%20a%20vCloud%20environment%20using%20a%20PC%20or%20an%20iPad%3F" id="wpa2a_6"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/mxgZuKlwbuk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/07/how-to-remote-access-a-linux-gui-from-a-vcloud-environment-using-a-pc-or-an-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/07/how-to-remote-access-a-linux-gui-from-a-vcloud-environment-using-a-pc-or-an-ipad/</feedburner:origLink></item>
		<item>
		<title>Publishing the vCloud Director portal on the Internet</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/7rBdOS4M-Nc/</link>
		<comments>http://www.hypervizor.com/2011/07/publishing-the-vcloud-director-portal-on-the-internet/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 11:58:28 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/2011/07/publishing-the-vcloud-director-portal-on-the-internet/</guid>
		<description><![CDATA[One of the very frequent questions I see internally on the VMware mailing lists is how to publish a vCloud Director portal on the Internet. I&#8217;ve personally went through the dilemma of searching for such information and had no luck to find something documented in a clear way with configuration examples. In this post I [...]]]></description>
				<content:encoded><![CDATA[<p>One of the very frequent questions I see internally on the VMware mailing lists is how to publish a vCloud Director portal on the Internet. I&#8217;ve personally went through the dilemma of searching for such information and had no luck to find something documented in a clear way with configuration examples.</p>
<p>In this post I will cover both the architecture considerations as well as the technical configuration from my experience in a real-world implementation. You have to keep in mind though that there is no one solution that fits all requirements, however, there are always some common guidelines and that&#8217;s what I will try to cover here.</p>
<h3>Quick introduction</h3>
<p>As you already know, a vCloud Director cell provides two services for end users to self-provision and access VMs in a cloud. We will refer to the first service here as &#8220;HTTP&#8221; and the second one as &#8220;VMRC&#8221;. The former is obviously responsible for providing the web portal and the latter for accessing the remote console of the VM running on the ESX host even if it doesn&#8217;t have any networking set for it.</p>
<h3>Architecting your solution</h3>
<p>There are two approaches here for publishing the vCD portal on the internet. The first one by connecting your HTTP and Console Proxy interfaces to the DMZ, and the second one by putting a reverse proxy in front of the Cells to handle the https requests back and forth (but not the VMRC). I intend to blog about the reverse proxy solution in a future post so we will focus here only on the first approach.</p>
<p>First thing first, you need to have at least three network interfaces on the vCloud Director cells:</p>
<ul>
<li>the first one for the HTTP service</li>
<li>the second one for the Console Proxy service.</li>
<li>the third one for the back end communications with the management network e.g. vCenter Server, ESX hosts, NFS shared mount and so forth.</li>
</ul>
<p>This is a diagram showing you in details the complete architecture that we will talk about throughout this article.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071911_1158_Publishingt1.gif" alt="" /></p>
<p>As you see, we have the first and second network adapters connected to the DMZ network which is typically a port-group set on your Management Pod ESX hosts and either segmented with a VLAN or dedicated network cards depending of course on your network and security infrastructure.</p>
<p>As we mentioned above, the third network card on the vCD cell will be communicating with the management network. You have another two options here:</p>
<ul>
<li>The first option is to connect this to the same management network port-group in your ESX host, the one that is also serving the vCenter Server, database, NFS ..etc.</li>
<li>The second option is to connect this interface to a new port-group/VLAN that is being routed through a Firewall to your management network.</li>
</ul>
<p>The reason being for the second option is that if your vCD cell is compromised on the Internet, the intruder will be still facing another firewall to access your internal management network. In my article here I will adopt the second option since it is the most secured architecture.</p>
<p>Here are an examples on how the networking would look like on a Management Pod ESX host.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071911_1158_Publishingt2.gif" alt="" /></p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071911_1158_Publishingt3.gif" alt="" /></p>
<h3>The Linux Routing</h3>
<p>As illustrated in the diagram (and the vSS/vDS screenshots), we have three different networks for routing the traffic. The first one is the external perimeter network (typically the DMZ), the second network is the internal perimeter network, and the third one is the management network for the vSphere substrate. The common question or confusion here is around the routing. How would the Linux OS decide on the routing paths to the upstream DMZ and the downstream management traffic? And the answer to that is just some basic static routing. Let&#8217;s have a closer look.</p>
<p>Firstly, you need to set the IP addresses facing the DMZ with a default gateway. In our case here the IPs for the two cells are (192.168.25.11 / 12 / 21 /22). The default gateway for them is (192.168.25.1). Secondly, for the management network, you need to set the IP address without a default gateway and then set a static route for that network. You have to note here that we will need to have a persistent entry for that route in order to retain the configuration should the cell be rebooted or shutdown for any reason. To do that, you need to add the following entry to the /etc/sysconfig/networking-scripts/route-eth2 file:</p>
<p>GATEWAY0=192.168.20.1<br />
NETMASK0=255.255.255.0<br />
ADDRESS0=198.18.5.0</p>
<p>Let&#8217;s quickly explain that. First of all, the file name mentioned above may be different in your case if you are using another order for the vNIC assignment (also note that we are using here a RHEL distribution). In my case, the eth0 and eth1 are assigned to the HTTP and Console Proxy services respectively. The third vNIC, eth2, is set for the management network which we are setting the static route for here. The other entries are self explanatory. The Gateway0 is the firewall IP address that will route our traffic from the Internal perimeter network to the management network. The Address0 and Netmask0 are for the destination management network we are routing the traffic to.</p>
<p>After setting these entries, you will need to restart the networking service and then test the connectivity like pinging the vCenter Server IP address from the Cell shell (sounds like a biology lesson!). After that I recommend to reboot the cell and see if your configuration is still persistent to avoid any issues in the future.</p>
<p>Okay, so now that we have the network all set for our traffic flow, you will need to install the vCloud Director software. When you run the configuration script, you will be asked which NICs you would like to assign to which service (HTTP and VMRC). Just make sure you set that properly.</p>
<h3>The SSL Certificates</h3>
<p>Depending on your case, you might be using a signed or self-signed certificates for your vCD portal. Each has a slightly different configuration approach the I intend to blog about in details in the future. Meanwhile, I&#8217;d highly recommend that you checkout this <a href="http://www.chriscolotti.us/vmware/vcloud/load-balancing-considerations-for-vcloud/">excellent blog post</a> by Chris Colotti for the high level considerations on the Certificates as well as some great tips on the cell Load balancing.</p>
<h3>The Load balancer</h3>
<p>First of all, you will need to have two public IPs assigned to you and set on your public DNS servers to resolve to the relevant host names. For example, I&#8217;m using these two entries in my diagram:</p>
<ul>
<li>vcloud.provider.com -&gt; 11.11.11.11</li>
<li>vmrc.provider.com -&gt; 22.22.22.22</li>
</ul>
<p>Of course these are fictitious IP addresses just to show a real-world configuration example end to end. Now it&#8217;s time to set your load balancer to point each IP address to distribute the load across the cells as illustrated in the diagram. If we look at a simple traffic flow for the HTTP service it would be as follows:</p>
<ul>
<li>The end-user fires-up his browser and point the URL to vcloud.provider.com</li>
<li>The hostname gets resolved into the public IP 11.11.11.11 and hits the Load balancer external interface.</li>
<li>The LB then distribute the traffic through its internal interface to the cells IPs (192.168.25.11 and 192.168.25.21).</li>
</ul>
<p>Note that in our example here we are using a path-through SSL traffic example for the LB.</p>
<p>If you are wondering about the VMRC traffic flow and how it is different from the HTTP service, you can have a look into this <a href="http://blogs.vmware.com/vcloud/2011/02/getting-started-with-vcloud-director-vmware-remote-console-proxy-and-vmware-remote-console-plugin.html">great two-part blog post</a> by Michael Hines.</p>
<h3>Setting the public address fields in the vCD admin panel</h3>
<p>Now to the important part that most of us forget to set. You will have to configure the relevant host names in your &#8220;Public Addresses&#8221; section in your vCloud Director Administration panel.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071911_1158_Publishingt4.png" alt="" /></p>
<p>As shown in the above screenshot, there are three URLs:</p>
<ul>
<li>The vCD Public URL: this will be reflected in the Organization URLs set for your customers access to your cloud.</li>
<li>vCD public console proxy address: this will be used when the customer clicks on the VM console to access his VM on the web. If this is not set, the cell will use the private IP address which will obviously fail for the user accessing the portal on the Internet.</li>
<li>vCD public REST API base URL: this will be used for all the functions depending on the APIs. One of which is the end-user uploads of ISOs/templates to the cloud. This one gave me a bit of a grief where I didn&#8217;t set that entry properly and had all my uploads failing (again because the cell will use the private IP if this field is empty).</li>
</ul>
<h3>The Network Ports</h3>
<p>Last but not least, you have to understand the right network ports that is used in your entire vCloud environment. I have published a detailed KB Diagram earlier that you can grab from here: http://kb.vmware.com/kb/1030816/</p>
<p>You will need to work with your network/security team to open the ports between your different zones. Please note that (at the time of writing this post) there is a small mistake in the ports listed in the diagram. The vCD and ESX hosts do not communicate on port 22 and port 80. Also vCD talks to vSM on port 443 and vSM talks to ESX on port 443. This will be updated very soon on the KB.</p>
<p>I hope you found this article useful in planning and publishing your portals. Happy vCloud&#8217;ing!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F07%2Fpublishing-the-vcloud-director-portal-on-the-internet%2F&amp;title=Publishing%20the%20vCloud%20Director%20portal%20on%20the%20Internet" id="wpa2a_8"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/7rBdOS4M-Nc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/07/publishing-the-vcloud-director-portal-on-the-internet/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/07/publishing-the-vcloud-director-portal-on-the-internet/</feedburner:origLink></item>
		<item>
		<title>Leveraging the vSphere 5.0 NetFlow support to monitor and report traffic data in a Service Provider vCloud environment</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/Cdy8jwlt56Y/</link>
		<comments>http://www.hypervizor.com/2011/07/leveraging-the-vsphere-5-0-netflow-support-to-monitor-and-report-traffic-data-in-a-service-provider-vcloud-environment/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 16:01:51 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1246</guid>
		<description><![CDATA[One of the cool networking features in vSphere 5.0 is the built-in support for NetFlow. This was first introduced in VI3.5 as an experimental feature and then it vanished, for some reason, in vSphere 4.x. I&#8217;ve blogged already about NetFlow with VI3.5 in this blog post, and I explained how you can configure it form [...]]]></description>
				<content:encoded><![CDATA[<p>One of the cool networking features in vSphere 5.0 is the built-in support for NetFlow. This was first introduced in VI3.5 as an experimental feature and then it vanished, for some reason, in vSphere 4.x.</p>
<p>I&#8217;ve blogged already about NetFlow with VI3.5 in this <a href="http://www.hypervizor.com/2009/03/video-tutorial-netflow-your-ultimate-tool-for-traffic-visibility-in-your-vi3-environment/">blog post</a>, and I explained how you can configure it form the command line on an ESX host to push the Netflow data to an external collector/analyzer.</p>
<p>The cool thing is that now it is fully supported in vSphere 5.0 and it can be configured also right from the GUI. Let&#8217;s have a quick look first on this.</p>
<h2>Configuring NetFlow on the vNetwork Distributed Switch</h2>
<p>1 &#8211; You will need to go to your networking panel in vSphere 5.0 and choose the vNetwork Distributed Switch (vDS) you want, and then right click and choose &#8220;Edit Settings&#8221;</p>
<p>2 &#8211; Go to the &#8220;NetFlow&#8221; tab and then fill the required fields as shown in the screenshot below.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071611_1600_Leveragingt1.png" alt="" width="657" height="503" /></p>
<p>3 &#8211; The first field is the NetFlow collector/analyzer IP address and the relevant port it will be listening to. The second field is the vDS IP which I must say can cause a lot of confusion. This doesn&#8217;t have to be a real IP address, it&#8217;s more of an identifier, if you will. This IP address will *not* be attached to any ESX vNIC. Think of it as if you are sending an email to someone with &#8220;your name&#8221; in the sender field so that the recipient knows from where it&#8217;s coming from. It&#8217;s important in our case here because you will probably have many ESX hosts in the cluster, each sending the data to the same collector. The unified IP address here is meant to tell that collector that all these data are coming from the same source/router rather than different ones.</p>
<p>4 &#8211; The rest of the settings are self explanatory and aimed to tweak the NetFlow exporting settings. Just keep in mind that if you set the &#8220;Sampling rate&#8221; to &#8220;0&#8243; the sampling will be disabled and you will be pushing all the traffic stats. This is of course the most accurate results you will have but in the same time it may require more resources from the ESX hosts in a busy network environment.</p>
<p>5 &#8211; In our case here, we are typically selecting the &#8220;External Networks&#8221; vDS which will have the external traffic of the customers/tenants in the SP (typically out to the Internet or their Site-to-Site VPN)</p>
<p>6 &#8211; Last step is to enable the NetFlow monitoring on the designated ports, up-links or port-groups. In our case here, I enabled the monitoring on a port-group which is in effect an external network for a pool of customers.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071611_1600_Leveragingt2.png" alt="" width="661" height="517" /></p>
<h2>Use cases for a vCloud Service Provider</h2>
<p>I&#8217;ll list below some of the use cases for a Service Provider applying this in their vCloud environment:</p>
<ul>
<li><strong>Traffic Reporting:</strong> Some end-customers would like to have a &#8220;live&#8221; traffic statistics for their cloud. With something like &#8220;NetFlow Analyzer&#8221; from ManageEngine (one of my all-time-favorites) , the SP can facilitate that to its customers. A scheduled reports can also be set to push the traffic statistics to each tenant based on his Organization Network.</li>
<li><strong>Bandwidth Utilization:</strong> a customer may want to have a capped bandwidth for his/her cloud external networking or at least a notification if they exceeded a specific quota. With NetFlow (and again NF Analyzer) you can set specific thresholds so that the customer get notified if they exceeded a certain bandwidth per day/week/month ..etc.</li>
<li>
<div><strong>Security:</strong> Through the NetFlow properties like (Protocol, Source and Destinations ports), a Service Provider can generate some security related reports like suspicious virus traffic. If you want to have a more accurate results, you can also leverage the Port-Mirroring feature in vSphere 5.0 (will talk about it in a future post)</div>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071611_1600_Leveragingt3.png" alt="" /></li>
<li>
<div><strong>DoS attacks:</strong> With NetFlow, a Service Provider can easily identify internal DoS attacks that may be launched between a tenant and another across Organization Networks or shared External Networks.</div>
</li>
</ul>
<p><img class="alignnone" src="http://www.hypervizor.com/wp-content/uploads/2011/07/071611_1600_Leveragingt4.png" alt="" width="853" height="112" /></p>
<h2>What about the Enterprises and Private Clouds?</h2>
<p>Similar use cases can be also considered in an enterprise or a private cloud. For example, a developer may want to analyze the internal or external traffic of his applications in the cloud. A Networking/Security team may want to have a visibility into a cloud environment for troubleshooting, security, auditing (you name it) and with a tool like this, it&#8217;s quite easy and very effective to achieve that.</p>
<h2>Conclusion</h2>
<p>Leveraging the NetFlow support in vSphere 5.0 with 3rd-party collectors/analyzers can be a of a great benefit to any Service Provider. I&#8217;ve personally managed various ISPs in the old days and I know for a fact that with a simple protocol like NetFlow I was able to not only have the required visibility in my environment, but also have a very effective tool to monitor and troubleshoot any problems. Of course you can still leverage expensive and high-end solutions like IPSs or traffic-shapers with a lot of administration and redesigning of your network infrastructure to have the inter-VM traffic visibility, but everything has its limit at the end of the day.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F07%2Fleveraging-the-vsphere-5-0-netflow-support-to-monitor-and-report-traffic-data-in-a-service-provider-vcloud-environment%2F&amp;title=Leveraging%20the%20vSphere%205.0%20NetFlow%20support%20to%20monitor%20and%20report%20traffic%20data%20in%20a%20Service%20Provider%20vCloud%20environment" id="wpa2a_10"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/Cdy8jwlt56Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/07/leveraging-the-vsphere-5-0-netflow-support-to-monitor-and-report-traffic-data-in-a-service-provider-vcloud-environment/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/07/leveraging-the-vsphere-5-0-netflow-support-to-monitor-and-report-traffic-data-in-a-service-provider-vcloud-environment/</feedburner:origLink></item>
		<item>
		<title>My Diagram Secrets Exposed!</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/h7OEBgMHV8c/</link>
		<comments>http://www.hypervizor.com/2011/07/my-diagram-secrets-exposed/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 20:24:09 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[Misc.]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1237</guid>
		<description><![CDATA[Yes, I&#8217;m still alive! It&#8217;s been like what, six months now without blogging?! Now that&#8217;s something not cool and I really need to do something about it. The thing is, I&#8217;ve been involved in a lot of cool stuff internally at VMware and a lot more projects that I&#8217;ve learned so much from. It will [...]]]></description>
				<content:encoded><![CDATA[<p>Yes, I&#8217;m still alive!</p>
<p>It&#8217;s been like what, six months now without blogging?! Now that&#8217;s something not cool and I really need to do something about it. The thing is, I&#8217;ve been involved in a lot of cool stuff internally at VMware and a lot more projects that I&#8217;ve learned so much from. It will all come back and reflect on my future blog posts in a way or another, so I can&#8217;t really complain!</p>
<p>But I&#8217;m not here to talk about that. I&#8217;ve just came across something really cool and I wanted to share with you right away.</p>
<p>Out of the blue, and while I was doing some geeky stuff with WAMP, ColdFusion and the vCloud PHP APIs, I&#8217;ve received a ping back from another blog with a title called: &#8220;<a href="http://geekafterfive.com/2011/07/15/drawing-network-diagrams-like-hany-michael/" target="_blank">Drawing Network Diagrams like Hany Michael</a>&#8221;</p>
<p>What!! Are you kidding me?!! Am I really that famous!! <img src='http://www.hypervizor.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ok, jokes aside. The blog post is so insightful that I really liked it a lot. I don&#8217;t necessary call then &#8220;Rules&#8221; as the author described them, but I agree with the vast majority of them. For example, in rule number 3 I personally think that the &#8220;right-angle&#8221; lines are so ugly in 99% of the cases, but everything has a use case. I just haven&#8217;t came across that one yet.</p>
<p>Anyways, I highly recommend reading that article and don&#8217;t forget to grab the .VSS stencils file provided by the author. As a matter of fact, I&#8217;ve learned a new trick from the &#8220;Cloud&#8221; shape! I just enhanced it a bit to look like that:</p>
<p style="text-align: center;"><img src="http://www.hypervizor.com/wp-content/uploads/2011/07/071511_2024_MyDiagramSe1.png" alt="" /></p>
<p>P.S. thank you Jake, you just made my day <img src='http://www.hypervizor.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F07%2Fmy-diagram-secrets-exposed%2F&amp;title=My%20Diagram%20Secrets%20Exposed%21" id="wpa2a_12"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/h7OEBgMHV8c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/07/my-diagram-secrets-exposed/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2011/07/my-diagram-secrets-exposed/</feedburner:origLink></item>
		<item>
		<title>Integrating VMware vCloud Director with vShield Edge and vShield App</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/phcDPXjRdWI/</link>
		<comments>http://www.hypervizor.com/2011/01/integrating-vmware-vcloud-director-with-vshield-edge-and-vshield-app/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 09:35:06 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[vShield]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1218</guid>
		<description><![CDATA[Until a very recent date, I was not quite sure whether this is possible or not. In fact, whenever I was asked if vCloud Director can work with the fully licensed vShield Edge/App or not, I thought the safest answer would be No! After doing some research internally at VMware, I found a great presentation [...]]]></description>
				<content:encoded><![CDATA[<p>Until a very recent date, I was not quite sure whether this is possible or not. In fact, whenever I was asked if vCloud Director can work with the fully licensed vShield Edge/App or not, I thought the safest answer would be No! After doing some research internally at VMware, I found a great presentation talking about this specific subject. And after viewing this preso for at least two times, I was still not quite sure how it can be set up or configured for that matter. At least I was sure that it can be achieved!</p>
<p>I did some trial and error experiments in my lab until I reached some good results that I thought I&#8217;d share with you through this blog post. So, with all that being said, I&#8217;d highly recommend trying this in your lab thoroughly before applying in production. To the best of my knowledge, everything you will see here is supported, however, you have to use with caution.</p>
<h2>A high level overview.</h2>
<p>I won&#8217;t go into the detailed benefits of vShield Edge/App and how they are two solid networking and security solutions. I just want to give you a glimpse on what you can achieve/expect from integrating them with vCloud Director:</p>
<ul style="margin-left: 38pt;">
<li>By adding the Load Balancing functionality of Edge, you can have simple (yet very powerful) load balancing for web applications in your cloud. The LB is currently limited to http but you can expect more protocols to show up in future releases (Hey, don&#8217;t qoute me on that <img src='http://www.hypervizor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I will show you in details how to configure this in vCD/vSE later in the post.</li>
<li>By adding the VPN functionality of Edge, you can do things like site-to-site VPN tunneling using IPsec. I will have a detailed blog post on this interesting subject soon.</li>
<li>Adding the vShield App functionalities will give you another great tools like traffic visibility that you won&#8217;t normally have in these sophisticated inter-VM-networking. Think of it like NetFlow but with new ways to reach very deep levels of Org/vApp networks. You can also do some application level firewalling or even apply them on the vCD External Networks level to enforce some global security policies across all of your tenants. (I will talk about that as well in details in future posts).</li>
</ul>
<h2>First thing first. Licensing.</h2>
<p>Before you can test anything here, you must have the appropriate licenses for vShield Manager. Remember, I&#8217;m referring here explicitly to the Edge and App (Endpoint is out of my scope here). You will need to get your licenses and apply them first in vCenter Server. This can be done like any other vSphere licenses. You have to note though that these licenses can be applied only after you associate your vCenter Server with the vCloud Director.</p>
<h2>Preparing vShield Manager.</h2>
<p>After applying the required licenses, you need to go to your vSM web portal and login with your user/pass (admin/default). Once you are there, click on <strong>Setting &amp; Reports</strong> on the left panel, and then press on the <strong>Register</strong> button on the right side to register your vSM as an extension in vCenter Server. (Screenshot below)</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/01/011111_0154_Integrating1.png" alt="" /></p>
<p>After registering the vSM extension in vCenter, you will find a new icon in the &#8220;Solutions and Applications&#8221; tab. In addition to that, and in fact what interest us here, you will find two new tabs called &#8220;vShield Edge&#8221; and &#8220;vShield App&#8221; as shown in the screenshot below.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/01/011111_0154_Integrating2.png" alt="" /></p>
<h2>Installing and configuring vShield App</h2>
<p>Although you can see the &#8220;vShield App&#8221; tab present in vCenter, you won&#8217;t be able to use anything there until you install the vShield Zones component in vSM. You do that but returning back to the vSM web portal (or now in the vCenter Solutions and Applications section), and selecting your ESX hosts that are present in the &#8220;Datacenter&#8221; list. On the right side, you will find the link to install the vShield App on the designated host. The setup is pretty straight forward, you just need to enter the IP settings and choose the appropriate datastore and network for storing/managing the appliance. (screenshot below).</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2011/01/011111_0154_Integrating3.png" alt="" /></p>
<h2>Now to the real fun!</h2>
<p>Okay, so now that we&#8217;ve taken care of all these pre-requisites to license and install the Edge/App components, it&#8217;s time to put them in action. I&#8217;ve tried to continue using screenshots for the procedures, but I found that really hard. I compiled instead this video (kind of quick and dirty) to make it easier and better to follow.</p>
<p><a href="http://hypervizor.com/videos/VCDwithVSM/vsm-vcd-integration.wmv"><img src="http://hypervizor.com/videos/VCDwithVSM/vidcover.jpg" alt="" /></a><br />
<B>You can right-click on the image to save the high-resolution video. You can also view the video on <a href="http://www.youtube.com/watch?v=WMB6wy0d_yo">You Tube</a> or <a href="http://vimeo.com/18648868">Vimeo</b></a>.</p>
<p>And this is a quick illustration showing the setup in the video. We have an Organization called &#8220;ITDev&#8221; with an organization network which we created under the name &#8220;OrgNet-ITDev-Routed_LB&#8221;. This OrgNet is routed to an external network with the subnet 172.30.0.0/23.</p>
<p><center><img src="http://hypervizor.com/videos/VCDwithVSM/vcd-with-vsm-edge-lb.gif" alt="" /></center></p>
<h2>Important notes</h2>
<p>These are some of the notes that I&#8217;ve taken throughout the process of testing this integration:</p>
<ul>
<li>It is very important to note that you should *<strong>NOT</strong>* mess with the Firewall and NAT tabs of the vSphere/vShield Edge panels. Anything you can do inside vCloud Director, keep it there. The moment you start to mix things with each others, you will end up with a huge mess, and probably a broken configuration. Remember, the only objective of this post is to empower your cloud with added features that are not currently there in the vCD GUI. We are not trying here to replace the vCD portal with the vSphere Client!</li>
<li>Make sure you have Abobe Flash Player installed and configured properly with your IE browser. I used here a remote lab to test and configure all that, and while in my initial phase, i had a quite hard time working with the vShield Edge screens. Nothing seemed to work and things used to freeze. After a lot of looking here and there i figured that Adobe was not installed on IE (i use Firefox to access the vCD). Once the Flash Player was installed and configured with IE, everything worked just fine.</li>
<li>I mentioned earlier that you need to associate you vCenter Server first with vCloud Director in order to be able to apply the vShield Licenses. Make sure also after that to apply the full licenses of Edge in vCenter as it might be still using the basic vSE licensed features.</li>
<li>DNS, DNS, DNS and D.N.S.</li>
</ul>
<p>That&#8217;s all folks. I will come back with more posts on this subject when I have the time to touch on the vShield App use cases, as well as the VPN features inside vCD.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2011%2F01%2Fintegrating-vmware-vcloud-director-with-vshield-edge-and-vshield-app%2F&amp;title=Integrating%20VMware%20vCloud%20Director%20with%20vShield%20Edge%20and%20vShield%20App" id="wpa2a_14"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/phcDPXjRdWI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2011/01/integrating-vmware-vcloud-director-with-vshield-edge-and-vshield-app/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
<enclosure url="http://hypervizor.com/videos/VCDwithVSM/vsm-vcd-integration.wmv" length="24111741" type="video/asf" />
		<feedburner:origLink>http://www.hypervizor.com/2011/01/integrating-vmware-vcloud-director-with-vshield-edge-and-vshield-app/</feedburner:origLink></item>
		<item>
		<title>Changing/Renewing your SSL certificates on vCloud Director Cells</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/9MKh7w1bim4/</link>
		<comments>http://www.hypervizor.com/2010/10/changingrenewing-your-ssl-certificates-on-vcloud-director-cells/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 15:40:04 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/2010/10/changingrenewing-your-ssl-certificates-on-vcloud-director-cells/</guid>
		<description><![CDATA[I was working on my vCloud Director lab the other day when I noticed that my SSL certificates expired. I was actually using the same certificates that i generated back in the old beta days. Although there is no way to renew this SSL certificates from the vCD GUI, the process is fairly easy using [...]]]></description>
				<content:encoded><![CDATA[<p>I was working on my vCloud Director lab the other day when I noticed that my SSL certificates expired. I was actually using the same certificates that i generated back in the old beta days.</p>
<p>Although there is no way to renew this SSL certificates from the vCD GUI, the process is fairly easy using the command line. Here is the steps I&#8217;ve taken to renew the certs on my lab:</p>
<p><img src="http://www.hypervizor.com/imgs/certrenew2.gif" alt="" /></p>
<p>1) First thing you need to stop the vCD cell service. The command for that, using root account, is &#8220;service vmware-vcd stop&#8221;.</p>
<p>2) Next, you need to run the configuration script once again. The command is &#8220;/opt/vmware/cloud-director/bin/configure&#8221;</p>
<p>3) Once the script starts, it will ask you for the SSL certificate. You have to identify the name of the file and then enter the required passwords.</p>
<p>4) You accept the question asking you if you want to start the vCD service again and you are done.</p>
<p>The easiest way to check on you new certificate renewal is to fire up your web browser and go to the vCD portal. Once there, you should have the security warning asking you to accept the new cert. In my case this is how the new cert looked like:</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2010/10/100910_1540_ChangingRen2.gif" alt="" /></p>
<p>It&#8217;s important to note here that you need to apply the same changes on all your cells if you are running a multi-cell vCD setup. You may have noticed also that this certificate changes will require a minor downtime, so you have to plan for that as well.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2010%2F10%2Fchangingrenewing-your-ssl-certificates-on-vcloud-director-cells%2F&amp;title=Changing%2FRenewing%20your%20SSL%20certificates%20on%20vCloud%20Director%20Cells" id="wpa2a_16"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/9MKh7w1bim4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2010/10/changingrenewing-your-ssl-certificates-on-vcloud-director-cells/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2010/10/changingrenewing-your-ssl-certificates-on-vcloud-director-cells/</feedburner:origLink></item>
		<item>
		<title>The mysterious required DNS field in the vCloud Director OrgNet</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/_I-yR_4vxR8/</link>
		<comments>http://www.hypervizor.com/2010/10/the-mysterious-required-dns-field-in-the-vcloud-director-orgnet/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 08:00:02 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1195</guid>
		<description><![CDATA[What a title! While playing with VMware vCloud Director during the beta phase, I came across some interesting points that I documented in my OneNote. One of these points that always confused me is the required DNS field when you create a new Organization Network. Have a look on the screenshot below. If you look [...]]]></description>
				<content:encoded><![CDATA[<p>What a title!</p>
<p>While playing with VMware vCloud Director during the beta phase, I came across some interesting points that I documented in my OneNote. One of these points that always confused me is the required DNS field when you create a new Organization Network. Have a look on the screenshot below.</p>
<p><img src="http://www.hypervizor.com/wp-content/uploads/2010/10/100710_2250_Themysterio1.png" alt="" /></p>
<p>If you look at it from a &#8220;Private Cloud&#8221; perspective, it makes perfect sense to have this field as a requirement. Why? because your cloud admin will be more or less involved in the infrastructure services. As I always like to say, the cloud admin doesn&#8217;t live in his own island isolated from anything else in the enterprise.</p>
<p>Now, if you look at the same thing but from a &#8220;Public Cloud&#8221; perspective, this can make you scratch your head. Why would the service provider be involved in the internal services of an organization like DNS? How can a SP even know the IP address of the DNS for an Org that is just getting it&#8217;s cloud up and running? Furthermore, what if the Organization want to change this IP for any reason in the future?</p>
<p>I researched our internal mailing lists on this point, and I did find that one of my colleagues brought this topic up. The response was simple, this is a small bug that will be fixed in a future update of vCD.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2010%2F10%2Fthe-mysterious-required-dns-field-in-the-vcloud-director-orgnet%2F&amp;title=The%20mysterious%20required%20DNS%20field%20in%20the%20vCloud%20Director%20OrgNet" id="wpa2a_18"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/_I-yR_4vxR8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2010/10/the-mysterious-required-dns-field-in-the-vcloud-director-orgnet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2010/10/the-mysterious-required-dns-field-in-the-vcloud-director-orgnet/</feedburner:origLink></item>
		<item>
		<title>Advanced Guide: VMware vCloud Director in a Box (works on 4GB Laptops)</title>
		<link>http://feedproxy.google.com/~r/Hypervizor/~3/tqEyBjf9AI4/</link>
		<comments>http://www.hypervizor.com/2010/10/advanced-guide-vmware-vcloud-director-in-a-box-works-on-4gb-laptops/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 11:30:40 +0000</pubDate>
		<dc:creator>Hany Michael</dc:creator>
				<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.hypervizor.com/?p=1177</guid>
		<description><![CDATA[I&#8217;ve been getting a good feedback since I published my first guide for running vCD on a Laptop. The only problem was the requirement for an 8GB to run these loads of VMs required by vCD. Since then, I&#8217;ve been asked by a lot of people (colleagues, readers and even a customer) if it&#8217;s possible [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been getting a good feedback since I published <a href="http://www.hypervizor.com/2010/09/video-guide-taking-vmware-vcloud-director-for-a-spin-and-on-the-go/">my first guide</a> for running vCD on a Laptop. The only problem was the requirement for an 8GB to run these loads of VMs required by vCD. Since then, I&#8217;ve been asked by a lot of people (colleagues, readers and even a customer) if it&#8217;s possible to have the same setup on a 4GB laptop, and the answer is: Yes, absolutely.</p>
<p>I was actually spoiled with my 8GB Laptop from VMware when I published my first guide, and I didn&#8217;t realize that many of us still use 4GB or even 2GB memory on their machines. With that said, I rethought the whole thing and came up with a slim (yet very powerful) setup to do a vCD lab on your laptops/desktops. So, without further ado let&#8217;s get started!</p>
<h2>Assumptions</h2>
<p>I&#8217;m assuming here that you are comfortable dealing with Linux. This is not an expert guide, but it&#8217;s not a beginner one either. I assume that you know how to install Linux and work with it from an intermediate level. I won&#8217;t be as thorough as i was in the first guide, and i won&#8217;t be publishing Videos or Screenshots. I will try to keep the balance between having a simple/short post yet without compromising the overall understanding of how things are done. If for any reason I failed to do that in any part, you can always drop a comment or send me an email to expand on it.</p>
<p><img class="aligncenter" title="Diagram" src="http://www.hypervizor.com/imgs/4ggdiag.gif" alt="" width="560" height="413" /></p>
<h3>CentOS For The Win!</h3>
<p>So, the first thing you will need is to get the CentOS 64bit iso and burn it on a DVD. After that, and depending on the base OS on your machine, you will need to have a separate partition for running CentOS as a bare metal operating system.</p>
<p>In my case, i have a Windows 7 64bit running on an 80GB SSD drive, and a secondary 500GB one running in the CD-ROM bay. In W7 you can shrink your current partition on the fly without messing with your filesystem. You just need to right-click on it, and then press on shrink. It&#8217;s recommended to defrag your OS first before doing that to keep things at best performance and also to guarantee the maximum space you can achieve after shrinking.</p>
<p><img class="alignnone" title="Disk Partitions on Laptop" src="http://www.hypervizor.com/imgs/4ggpartitions.gif" alt="" width="644" height="513" /></p>
<p>As you see in the screenshot above, i&#8217;ve shrink the SSD drive to free up 12GB of space on it. I will use this for storing the VM files and consequently have the best performance for them. Depending on your setup, you can instead use this partition for your base Linux OS. For me I thought the VMs will need the performance rather than the base CentOS, especially that the latter is running natively on the laptop hardware.</p>
<p>Next, I freed up 30GB from the 500GB drive to use for the CentOS base OS. The boot partition will be created automatically for you during the CentOS installation.</p>
<p>When you reach the Boot part in Linux installation, make sure to choose the Windows 7 as your default boot rather than Linux to avoid the hassle of accidently booting into Linux when you power on the Laptop for normal day-to-day use.</p>
<h3>Installing VMware Workstation 7.1 for Linux</h3>
<p>Now that you&#8217;ve installed Linux on your laptop, we will need to first install VMware Workstation 7.1. Fairly easy step, download and run the package to get the GUI installation wizard. After finishing this step the WS will create two virtual interfaces, one of which is the &#8220;Host-only&#8221; interface in which we are interested in. We&#8217;ll come to that point in a bit.</p>
<h3>Installing Oracle DB on CentOS</h3>
<p>Thanks to Duncan Epping for the tip, installing Oracle on Linux has never been easier. You just need to download Oracle Express, install the RPM and you are done. It&#8217;s just as simple as this. Just make sure you follow the instructions on the screen as there is a command you need to run as root.</p>
<h3>Preparing CentOS for running vCD</h3>
<p>As you know, vCD requires two Ethernet interfaces in the installation. Since you are running this system on a Laptop, you are actually limited to only one LAN interface (and probably the wireless won&#8217;t work or need a hell of configuration). We have two cool options here:</p>
<ul>
<li>Create a sub-interface in Linux. This option makes sense if your Laptop/Desktop is hooked up to a network all the time.</li>
<li>Use the Host-only virtual interface created by Workstation. I&#8217;m more in favor of this option as it allows me to run vCD while on the road. In fact, this is the whole idea of having this setup running on my laptop.</li>
</ul>
<p>For option number two, we will use the physical Ethernet interface on the laptop for the HTTP Proxy, and the Host-only virtual interface for the Remote console proxy (connected back to vCenter).</p>
<p>Next, we need to have a working DNS on our Linux. Bind is the perfect solution here, just google something like &#8220;configuring bind on centos&#8221; for a detailed guide. After you have it up and running, make sure to put the DNS entries for vCD, vCenter, vSM and ESX. It&#8217;s very important to have a working DNS service in your environment to avoid a lot of problems later on. If you don&#8217;t feel comfortable with Bind on Linux, you can install a DNS service on the vCenter VM later on, but i recommend having all your services on your base CentOS operating system to save memory and keep things clean and simple.</p>
<h3>Installing vCD on CentOS</h3>
<p>Now it&#8217;s time to install vCD on our base Linux system. You can check out my video guide for that, but a couple of notes here:</p>
<ul style="margin-left: 38pt;">
<li>Make sure that you choose the Host-only virtual interface for the Console Proxy.</li>
<li>In the DB configuration, put &#8220;xe&#8221; as the database name.</li>
</ul>
<h3>Creating a Workstation Team for Installing vCenter and ESX</h3>
<p>Did you notice that up this point we have not created one single VM? Well, now its the time. You have to install here two VMs, the first for the vCenter Server on Windows 2003 64bit, and the second for ESXi 4.1. Make sure you configure the networking on both VMs on the Host-only network and to set static IPs from that subnet. Needless to say that they must match the DNS entries you created earlier. The last thing needed here is to import the vSM into your ESXi as a nested VM and you are done.</p>
<p>Alright, so now that we have everything in place (with only 2 VMs in Workstation and a nested VM in ESX) we will need to fire up our browser in CentOS and point it to the vCD portal. Once there, you will need to finish the initial configuration (licensing and system id name), and then attached the vCenter Server + vSM to your vCD. Once this is done, you can power off your vSM and leave it as it is until you come later on to the point where you need to do your cloud networking (e.g. create network pools).</p>
<p><a href="http://www.hypervizor.com/imgs/4ggscreenshot.jpg"><img class="aligncenter" title="Screenshot" src="http://www.hypervizor.com/imgs/4ggth.jpg" alt="" width="500" height="313" /></a></p>
<p>Congrats! you now have a fully working vCD setup on your laptop with 4GB memory. In fact, you can theoretically have 2GB only and work fine if you keep all your VMs down just to show the vCD interface to your customers. That&#8217;s right, you don&#8217;t need vCenter or ESX in order to login to your vCD portal and browse through it. I found this very handy when sitting with a customer who just wanted to have the look and feel of this &#8220;vCloud thing&#8221; as per his words!</p>
<h3>Do you have 8GB Laptop? GO WILD!</h3>
<p>So now that we&#8217;ve seen how you can run all that on 4GB, what if you actually have 8GB memory? Here are some ideas:</p>
<ul>
<li>Configure NFS on your CentOS and use it as a shared storage!</li>
<li>Create and install another ESX VM and use the NFS as a shared storage.</li>
<li>Create and install a CentOS VM to run a second vCD Cell and test how a two-cell environment works!</li>
<li>Create and install a second vCenter Server VM and attache it to your vCD.</li>
</ul>
<p>Have fun!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.hypervizor.com%2F2010%2F10%2Fadvanced-guide-vmware-vcloud-director-in-a-box-works-on-4gb-laptops%2F&amp;title=Advanced%20Guide%3A%20VMware%20vCloud%20Director%20in%20a%20Box%20%28works%20on%204GB%20Laptops%29" id="wpa2a_20"><img src="http://www.hypervizor.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/Hypervizor/~4/tqEyBjf9AI4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.hypervizor.com/2010/10/advanced-guide-vmware-vcloud-director-in-a-box-works-on-4gb-laptops/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.hypervizor.com/2010/10/advanced-guide-vmware-vcloud-director-in-a-box-works-on-4gb-laptops/</feedburner:origLink></item>
	</channel>
</rss>
