<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tom Fojta&#039;s Blog</title>
	<atom:link href="http://fojta.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fojta.wordpress.com</link>
	<description>About virtualization, cloud computing and beyond</description>
	<lastBuildDate>Tue, 18 Jun 2013 05:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='fojta.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tom Fojta&#039;s Blog</title>
		<link>http://fojta.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://fojta.wordpress.com/osd.xml" title="Tom Fojta&#039;s Blog" />
	<atom:link rel='hub' href='http://fojta.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Integration of vCloud Automation Center with vCloud Director</title>
		<link>http://fojta.wordpress.com/2013/06/03/integration-of-vcloud-automation-center-with-vcloud-director/</link>
		<comments>http://fojta.wordpress.com/2013/06/03/integration-of-vcloud-automation-center-with-vcloud-director/#comments</comments>
		<pubDate>Mon, 03 Jun 2013 07:23:58 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[vCloud Automation Center]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=841</guid>
		<description><![CDATA[Introduction They used to be fierce competitors but now are good buddies. Who? vCloud Automation Center (vCAC) and vCloud Director. vCAC version 5.2 has just been released and it is the second release of what was before known as DynamicOps Cloud Automation Center but since the VMware acquisition of DynamicOps in July 2012 has been [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=841&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h1>Introduction</h1>
<p>They used to be fierce competitors but now are good buddies. Who? vCloud Automation Center (vCAC) and vCloud Director. vCAC version 5.2 has just been released and it is the second release of what was before known as DynamicOps Cloud Automation Center but since the VMware acquisition of DynamicOps in July 2012 has been rebranded under the vCloud brand.</p>
<p>Why would you integrate these two products if they were competing with each other in the past and are perceived to do the same things?</p>
<p>This marchitecture slide below was used by Pat Gelsinger during his EMC World keynote and perfectly shows the relationship of the two.</p>
<p><a href="http://fojta.files.wordpress.com/2013/06/emc_world.jpg"><img class="alignnone size-large wp-image-842" alt="EMC_World" src="http://fojta.files.wordpress.com/2013/06/emc_world.jpg?w=625&#038;h=351" width="625" height="351" /></a></p>
<p>vCAC is part of the Cloud Service Provisioning pillar and is a tool that can operate above heterogeneous set of infrastructure resources be it vSphere, other hypervisors, public or private clouds and physical servers. vCAC sits (among others) on top of vCloud Director which can be either private or public cloud and provides policy based (that&#8217;s the piece that controls What, Who, Where, Why, How much, How long, &#8230;) provisioning with nice, simple and extensible GUI.</p>
<p>The previous December 2012 vCAC 5.1 release had very little integration with vCloud Director, required vSphere access and therefore did not work with public clouds. That is not the case anymore and vCloud Director is treated as first class cloud citizen together with Amazon EC2.</p>
<h1>Configuration</h1>
<p>Here follows brief description how to set up a vCloud Director based cloud as an endpoint and how to create a provisioning blue print.</p>
<ol>
<li>Create vCloud Director endpoint. vCAC Administrator &gt; Endpoints &gt; New Endpoint &gt; Cloud &gt; vApp (vCloud Director). In the public cloud scenario we would use Organization Administrator credentials, in private cloud we could use vCloud Administrator credentials.<br />
<a href="http://fojta.files.wordpress.com/2013/06/vcloud-endpoint.png"><img class="alignnone size-large wp-image-844" alt="vCloud Endpoint" src="http://fojta.files.wordpress.com/2013/06/vcloud-endpoint.png?w=625&#038;h=355" width="625" height="355" /></a></li>
<li>Perform Data Collection of the newly created endpoint. One of the Distributed Execution Manager (DEM) Workers will by using vCloud API connect to the cloud and collect available inventory.<br />
<a href="http://fojta.files.wordpress.com/2013/06/endpoint-data-collection1.png"><img class="alignnone size-large wp-image-846" alt="Endpoint Data Collection" src="http://fojta.files.wordpress.com/2013/06/endpoint-data-collection1.png?w=625&#038;h=294" width="625" height="294" /></a></li>
<li>Once the data collection is finished we can create a new enterprise group which is basically a logical separation of the infrastructure resources. vCAC Administrator &gt; Enterprise Group &gt; New Enterprise Group. Name the group, add the account of the enterprise administrator and select the vCloud resources (OrgVDCs) that will belong here.<br />
<a href="http://fojta.files.wordpress.com/2013/06/enterprise-group.png"><img class="alignnone size-large wp-image-847" alt="Enterprise Group" src="http://fojta.files.wordpress.com/2013/06/enterprise-group.png?w=625&#038;h=370" width="625" height="370" /></a></li>
<li>Now we can log in as the Enterprise Administrator and start managing the group. We have to create a provisioning group which is basically a set of users that will be able to provision VMs. Enterprise Administrator &gt; Provisioning Group &gt; New Provisioning Group. I called my provisioning group TestDev</li>
<li>Now we can create reservation of resources for the provisioning group.  Enterprise Administrator &gt; Reservations &gt; New Reservation &gt; Cloud &gt; vApp (vCloud Director)<br />
<a href="http://fojta.files.wordpress.com/2013/06/reservation.png"><img class="alignnone size-full wp-image-848" alt="Reservation" src="http://fojta.files.wordpress.com/2013/06/reservation.png?w=625"   /><br />
</a>I have assigned 2606-Public OrgVDC to the TestDev provisioning group. In the Resources subtab we can select storage tiers and networks that will be available to this reservation and optionally limit memory and storage. Network profile (set of IP addresses) can be assigned to the networks as well.<br />
<a href="http://fojta.files.wordpress.com/2013/06/reservation-resources.png"><img class="alignnone size-large wp-image-849" alt="Reservation Resources" src="http://fojta.files.wordpress.com/2013/06/reservation-resources.png?w=625&#038;h=351" width="625" height="351" /></a></li>
<li>The Who and Where is ready. Now we need to prepare the What. We will create (global) blueprint which will define the VMs that the users can provision. vCloud vApp blueprint consists of component blueprint which defines the actual VMs and a vApp blueprint that specifies policies for the whole vApp.<br />
So starting with the component blueprint: Enterprise Administrator &gt; Global Blueprints &gt; New Blueprint &gt; Cloud &gt; vApp Component (vCloud Director). In the Blueprint Information tab we assign provisioning groups that can use the blueprint, prefix for the naming of the VMs, optionally approval policy and costs.<br />
<a href="http://fojta.files.wordpress.com/2013/06/component-blueprint.png"><img class="alignnone size-large wp-image-850" alt="Component Blueprint" src="http://fojta.files.wordpress.com/2013/06/component-blueprint.png?w=625&#038;h=344" width="625" height="344" /></a><span style="line-height:1.714285714;font-size:1rem;">In the Build Information tab we specify the VM template and maximums for its configuration.</span> <a href="http://fojta.files.wordpress.com/2013/06/component-blueprint-build-information.png"><img class="alignnone size-large wp-image-851" alt="Component Blueprint Build Information" src="http://fojta.files.wordpress.com/2013/06/component-blueprint-build-information.png?w=625&#038;h=390" width="625" height="390" /></a></li>
<li>Now we can create vApp blueprint: Enterprise Administrator &gt; Global Blueprints &gt; New Blueprint &gt; Cloud &gt; vApp (vCloud Director)<br />
<a href="http://fojta.files.wordpress.com/2013/06/vapp-blueprint.png"><img class="alignnone size-large wp-image-852" alt="vApp Blueprint" src="http://fojta.files.wordpress.com/2013/06/vapp-blueprint.png?w=625&#038;h=388" width="625" height="388" /></a>In the Build Information tab we link the template to the component blueprint.<br />
<a href="http://fojta.files.wordpress.com/2013/06/vapp-blueprint-build-information.png"><img class="alignnone size-large wp-image-853" alt="vApp Blueprint Build Information" src="http://fojta.files.wordpress.com/2013/06/vapp-blueprint-build-information.png?w=625&#038;h=283" width="625" height="283" /></a></li>
<li>Now we can log in as a user from the Provisioning Group, Go to Self-Service and Request a machine from the blueprint.<br />
<a href="http://fojta.files.wordpress.com/2013/06/request-vm.png"><img class="alignnone size-large wp-image-854" alt="Request VM" src="http://fojta.files.wordpress.com/2013/06/request-vm.png?w=625&#038;h=363" width="625" height="363" /></a></li>
<li>After while the machine is ready to be consumed.<br />
<a href="http://fojta.files.wordpress.com/2013/06/provisioned-vm.png"><img class="alignnone size-large wp-image-855" alt="Provisioned VM" src="http://fojta.files.wordpress.com/2013/06/provisioned-vm.png?w=625&#038;h=381" width="625" height="381" /></a></li>
</ol>
<h1>User Mapping</h1>
<p>vCAC provisions and manages the vCloud Director vApps with the administrator account configured in the Cloud Endpoint. However a vApp is created it changes its ownership to the user who requested it. If the vCloud Organization does not contain user with an identical username as the vCAC VM requestor it will try to import the user from LDAP. This can obviously work only if LDAP is configured for the vCloud Organization which is realistic only in private vCloud Director deployments. In public vClouds you will therefore have to make sure that the user (either local or SAML imported) exists in the organization prior to vCAC provisioning.</p>
<h1>Licensing</h1>
<p>There is one difference when licensing private or public clouds. For private clouds it is possible to use CPU socket based licensing of vCloud Suite Enterprise. That obviously does not work with public clouds and therefore per VM licensing is needed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/841/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=841&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/06/03/integration-of-vcloud-automation-center-with-vcloud-director/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/emc_world.jpg?w=625" medium="image">
			<media:title type="html">EMC_World</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/vcloud-endpoint.png?w=625" medium="image">
			<media:title type="html">vCloud Endpoint</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/endpoint-data-collection1.png?w=625" medium="image">
			<media:title type="html">Endpoint Data Collection</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/enterprise-group.png?w=625" medium="image">
			<media:title type="html">Enterprise Group</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/reservation.png" medium="image">
			<media:title type="html">Reservation</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/reservation-resources.png?w=625" medium="image">
			<media:title type="html">Reservation Resources</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/component-blueprint.png?w=625" medium="image">
			<media:title type="html">Component Blueprint</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/component-blueprint-build-information.png?w=625" medium="image">
			<media:title type="html">Component Blueprint Build Information</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/vapp-blueprint.png?w=625" medium="image">
			<media:title type="html">vApp Blueprint</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/vapp-blueprint-build-information.png?w=625" medium="image">
			<media:title type="html">vApp Blueprint Build Information</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/request-vm.png?w=625" medium="image">
			<media:title type="html">Request VM</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/06/provisioned-vm.png?w=625" medium="image">
			<media:title type="html">Provisioned VM</media:title>
		</media:content>
	</item>
		<item>
		<title>vCloud Connector 2.0 and SSL Certificate Replacement</title>
		<link>http://fojta.wordpress.com/2013/05/22/vcloud-connector-2-0-and-ssl-certificate-replacement/</link>
		<comments>http://fojta.wordpress.com/2013/05/22/vcloud-connector-2-0-and-ssl-certificate-replacement/#comments</comments>
		<pubDate>Wed, 22 May 2013 09:25:35 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[vCloud Connector]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=823</guid>
		<description><![CDATA[In my previous post about vCloud Connector I went through the various data flows and also explained that it is necessary to have SSL enabled both on the vCC Server and vCC nodes. It is possible to use self-signed certificates or also it is possible to upload via vCC Server/Node VAMI GUI (Virtual Appliance Management [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=823&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In my previous post about <a title="vCloud Connector 2.0 Observations" href="http://fojta.wordpress.com/2013/03/10/vcloud-connector-2-0-observations/" target="_blank">vCloud Connector</a> I went through the various data flows and also explained that it is necessary to have SSL enabled both on the vCC Server and vCC nodes. It is possible to use self-signed certificates or also it is possible to upload via vCC Server/Node VAMI GUI (Virtual Appliance Management Interface) publicly trusted and signed certificates. However when you want to use certificates provided by your own Enterprise Certificate Authority the process is not so straight forward and requires using command line.</p>
<p>The problem statement is following: I have my own Enterprise Certificate Authority which is not publicly trusted and I have issued certificates for my vCC Server and all Nodes without any intermediate certificate. How do I import them?</p>
<p>The vCC VAMI GUI supoprts only import of certificate chain that consist of root&gt;intermediate&gt;certificate. As I do not have intermediate certificate I have to use JAVA keytool command. There are two keystores: cacerts for trusted root certificates and tcserver.jks for the other certificates. My Enterprise CA root certificate must be imported into the former one and the vCC Server/Node certificates to the latter.</p>
<p>Here is the exact procedure:</p>
<h3>vCloud Connector Server</h3>
<p>1. Log in into the vCC Server console as root and delete the self signed <em>hcserver</em> certificate from tcserver.jks keystore. Note the keystore password (<em>changeme</em>) is hardcoded &#8211; do not try to change it.</p>
<p><em>/usr/java/latest/bin/keytool -delete -alias hcserver -keystore /usr/local/tcserver/vfabric-tc-server-standard/server/conf/tcserver.jks -storepass changeme</em></p>
<p>2. Create new <em>hcserver </em>certificate, where CN (first and last name) is the vCC Server FQDN. Use the same password for the certificate as the keystore password (just hit RETURN when asked).</p>
<p><em>/usr/java/latest/bin/keytool -genkey -validity 3650 -keyalg RSA -keysize 2048 -alias hcserver -keystore /usr/local/tcserver/vfabric-tc-server-standard/server/conf/tcserver.jks -storepass changeme</em></p>
<p><em>What is your first and last name?<br />
</em><em style="line-height:1.714285714;font-size:1rem;"> [Unknown]:  vccserver.fojta.com<br />
</em><em>What is the name of your organizational unit?<br />
</em><em>  [Unknown]:vCloud Connector Server<br />
</em><em>What is the name of your organization?<br />
</em><em>  [Unknown]:  fojta.com<br />
</em><em>What is the name of your City or Locality?<br />
</em><em>  [Unknown]:  Prague<br />
</em><em>What is the name of your State or Province?<br />
</em><em>  [Unknown]:<br />
</em><em>What is the two-letter country code for this unit?<br />
</em><em>  [Unknown]:  CZ<br />
</em><em>Is CN=vccserver.fojta.com, OU= vCloud Connector Server, O=fojta.com, L=Prague, ST=Unknown, C=CZ correct?<br />
</em><em>  [no]:  yes<br />
</em><em> </em><em>Enter key password for &lt;hcserver&gt;<br />
</em><em>        (RETURN if same as keystore password):</em></p>
<p>3. Now we have to create the Certificate Signing Request. We can do it either from command line or from the VAMI GUI (Server&gt;SSL&gt;Generate and download CSR)</p>
<p><em>/usr/java/latest/bin/keytool -certreq -alias hcserver -file hcserver.csr -keystore /usr/local/tcserver/vfabric-tc-server-standard/server/conf/tcserver.jks -storepass changeme</em></p>
<p>4. Sign the certificate signing request (<em>hcserver.csr</em>) with your Enterprise CA. I have used the Subordinate Certification Authority certificate template. Upload the signed certificate to the vCC server as file <em>hcserver.cer</em>.</p>
<p>5. Before importing <em>hcserver.cer</em> certificate we need to import the CA root certificate otherwise it would not be able to build trusted chain. Obtain the CA root certificate (in my case named <em>fojta-dc-CA.cer</em> and import to <em>cacerts</em> keystore with following command). The alias must be unique. Note the certificate password (<em>changeit)</em> is hardcoded, do not try to change it (no pun intended).</p>
<p><em>/usr/java/latest/bin/keytool -import -alias fojta-dc-CA -file fojta-dc-CA.cer -keystore /usr/java/default/lib/security/cacerts -storepass changeit</em></p>
<p>6. Now we can import the hcserver certificate</p>
<p><em>/usr/java/latest/bin/keytool -import -alias hcserver -file hcserver.cer -trustcacerts -keystore /usr/local/tcserver/vfabric-tc-server-standard/server/conf/tcserver.jks -storepass changeme</em></p>
<p>7. Verify that the import was successful.</p>
<p><em>/usr/java/latest/bin/keytool -list -keystore /usr/local/tcserver/vfabric-tc-server-standard/server/conf/tcserver.jks -storepass changeme<br />
</em><em style="line-height:1.714285714;font-size:1rem;"></em></p>
<p><em style="line-height:1.714285714;font-size:1rem;">Keystore type: JKS<br />
</em><em>Keystore provider: SUN</em><em><br />
</em><em><br />
Your keystore contains 1 entry<br />
</em><em></em><em><br />
hcserver, May 10, 2013, PrivateKeyEntry,<br />
</em><em>Certificate fingerprint (SHA1): FC:A3:29:96:0D:CD:E2:04:3D:0F:E9:B6:8B:A0:6F:B8:C8:BF:3E:61</em></p>
<h3>vCloud Connector Node</h3>
<p>The process is identical to the vCloud Connector Server certificate replacement with just minor changes. The certificate alias is not <em>hcserver</em> but <em>hcagent</em> and the <em>tcserver.jks</em> keystore location is different. Therefore just briefly:</p>
<p>1. Delete selfsigned <em>hcagent</em> certificate<br />
<em>/usr/java/latest/bin/keytool -delete -alias hcagent -keystore /usr/local/tcserver/vfabric-tc-server-standard/agent/conf/tcserver.jks -storepass changeme</em></p>
<p>2. Create new <em>hcagent</em> certificate<br />
<em></em></p>
<p><em>/home/admin # /usr/java/latest/bin/keytool -genkey -validity 3650 -keyalg RSA -keysize 2048 -alias hcagent -keystore /usr/local/tcserver/vfabric-tc-server-standard/agent/conf/tcserver.jks -storepass changeme</em></p>
<p>What is your first and last name?<br />
[Unknown]:  vccnode.fojta.com<br />
What is the name of your organizational unit?<br />
[Unknown]:vCloud Connector Node<br />
What is the name of your organization?<br />
[Unknown]:  fojta.com<br />
What is the name of your City or Locality?<br />
[Unknown]:  Prague<br />
What is the name of your State or Province?<br />
[Unknown]:<br />
What is the two-letter country code for this unit?<br />
[Unknown]:  CZ<br />
Is CN=vccnode.fojta.com, OU=vCloud Connector Node, O=fojta.com, L=Prague, ST=Unknown, C=CZ correct?<br />
[no]:  yes</p>
<p>Enter key password for &lt;hcagent&gt;<br />
(RETURN if same as keystore password):</p>
<p>3. Create CSR or download from VAMI GUI: Node&gt;SSL&gt;Generate and download CSR</p>
<p><em>/usr/java/latest/bin/keytool -certreq -alias hcagent -file hcagent.csr -keystore /usr/local/tcserver/vfabric-tc-server-standard/agent/conf/tcserver.jks -storepass changeme</em></p>
<p>4. Sign <em>hcagent.csr</em> with your CA =&gt; <em>hcagent.cer</em></p>
<p>5. Import CA root certificate (<em>fojta-dc-CA.cer</em>)</p>
<p><em>/usr/java/latest/bin/keytool -import -alias fojta-dc-CA -file fojta-dc-CA.cer -keystore /usr/java/default/lib/security/cacerts -storepass changeit</em></p>
<p>6. Import <em>hcagent</em> certificate</p>
<p><em>/usr/java/latest/bin/keytool -import -alias hcagent -file hcagent.cer -trustcacerts -keystore /usr/local/tcserver/vfabric-tc-server-standard/agent/conf/tcserver.jks -storepass changeme</em></p>
<p><span style="line-height:1.714285714;font-size:1rem;">7. Verify</span></p>
<p><em><span style="line-height:1.714285714;font-size:1rem;">/usr/java/latest/bin/keytool -list -keystore /usr/local/tcserver/vfabric-tc-server-standard/agent/conf/tcserver.jks -storepass changeme</span></em></p>
<p>Keystore type: JKS<br />
Keystore provider: SUN</p>
<p>Your keystore contains 1 entry</p>
<p>hcagent, May 10, 2013, PrivateKeyEntry<br />
Certificate fingerprint (SHA1): 9E:63:B1:BC:91:FE:7D:84:FC:8C:66:24:B9:1B:B9:73:80:5D:AC:87</p>
<h3>Enabling SSL</h3>
<p>Now we should be able both on vCC Server and all vCC Nodes to enable SSL (in Server/Node tab, SSL subtab click Enable SSL button). When returning the the SSL tab it seems vCC is not able to get the current SSL status correctly. vCC Server displays an error and vCC Node nothing &#8211; not really sure why is this happening, just ignore it.</p>
<p><a href="http://fojta.files.wordpress.com/2013/05/enable-ssl.png"><img class="alignnone size-full wp-image-824" alt="Enable SSL" src="http://fojta.files.wordpress.com/2013/05/enable-ssl.png?w=625"   /></a></p>
<p>Now we should be able in the Nodes tab on the vCC Server edit the Node configuration and uncheck Ignore SSL Certificate. If the certificate replacement was successful, the Node Status shoud be Up.</p>
<p><a href="http://fojta.files.wordpress.com/2013/05/ignore-ssl-certificate.png"><img class="alignnone size-full wp-image-825" alt="Ignore SSL Certificate" src="http://fojta.files.wordpress.com/2013/05/ignore-ssl-certificate.png?w=625"   /></a></p>
<p>For more details rather refer to the<a title="Prepare vCloud Connector for Production Use" href="http://pubs.vmware.com/hybridcloud-20/index.jsp#com.vmware.vcc.install.doc_1/GUID-875C7996-5468-4D18-A5D4-F66CB6623476.html" target="_blank"> online vCloud Connector documentation</a> as it contains more information than the PDF docs.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=823&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/05/22/vcloud-connector-2-0-and-ssl-certificate-replacement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/05/enable-ssl.png" medium="image">
			<media:title type="html">Enable SSL</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/05/ignore-ssl-certificate.png" medium="image">
			<media:title type="html">Ignore SSL Certificate</media:title>
		</media:content>
	</item>
		<item>
		<title>Allocation Pool Organization VDC Changes in vCloud Director 5.1.2</title>
		<link>http://fojta.wordpress.com/2013/04/30/allocation-pool-organization-vdc-changes-in-vcloud-director-5-1-2/</link>
		<comments>http://fojta.wordpress.com/2013/04/30/allocation-pool-organization-vdc-changes-in-vcloud-director-5-1-2/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 09:10:10 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Elastic VDC]]></category>
		<category><![CDATA[resource management]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=811</guid>
		<description><![CDATA[This is a follow up article to the original one Allocation Pool Organization vDC Changes in vCloud Director 5.1 to reflect what has changed regarding the subject in the recently released vCloud Director 5.1.2. One of the new features of vCloud Director v 5.1 was elastic Allocation pool VDC. Elastic means that the VDC can span multiple [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=811&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is a follow up article to the original one <a title="Allocation Pool Organization vDC Changes in vCloud Director 5.1" href="http://fojta.wordpress.com/2012/09/30/allocation-pool-organization-vdc-changes-in-vcloud-director-5-1/" target="_blank">Allocation Pool Organization vDC Changes in vCloud Director 5.1</a> to reflect what has changed regarding the subject in the recently released vCloud Director 5.1.2.</p>
<p>One of the new features of vCloud Director v 5.1 was elastic Allocation pool VDC. Elastic means that the VDC can span multiple clusters which simplifies providers capacity management.</p>
<p>The feature required some changes how now elastic VDC maps to vSphere Resource Pools. And these changes were disruptive for some customers upgrading from vCloud Director 1.5. Therefore both vCloud Director 5.1.1 and 5.1.2 tweaked the feature to make those customer happy.</p>
<p>For deep dive how Org VDC allocation types relate to vSphere resource management go to Massimo Re Ferre post here: <a title="vCloud Director 5.1(.1) Changes in Resource Entitlements (Updated)" href="http://it20.info/2012/10/vcloud-director-5-1-1-changes-in-resource-entitlements/" target="_blank">vCloud Director 5.1(.1) Changes in Resource Entitlements (Updated)</a>.</p>
<p>I will just concentrate on the Allocation Pool VDC differencies.</p>
<h3>vCloud Director 5.1.0</h3>
<p>Allocation pool VDC require new parameter: vCPU speed, which is used to define how much CPU reservation and limit is applied to Org VDC resource pools that can span multiple clusters. Each such resource pool gets reservation and limit based on sum of all vCPUs of deployed vApps in that particular resource pool.</p>
<p><em>Example: If vCPU parameter is set to 1GHz and I have deployed 3 VMs each with 2 vCPUs and one is placed into one resource pool and the rest to the other, the first resource pool will get 4 GHz limit and the second 8 GHz (reservation is set as a percentage of the limit).</em></p>
<p>This means that you cannot overallocate Org VDC in terms of vCPUs (max #of vCPUs x vCPU speed = Org VDC CPU allocation) in very similar way the memory could not be overallocated in vCloud Director 1.5.</p>
<h3>vCloud Director 5.1.1</h3>
<p>As mentioned above some customers complained that the vCloud Director tenants are now constrained in how many vCPUs they can deploy into their Org VDC. Providers tried to fight this with setting very small vCPU speeds, but the problem is that if you have only a few VMs deployed the resource pool limit was very low compared to the allocated Org VDC CPU GHz.</p>
<p>vCloud Director 5.1.1 came with a quick fix. The CPU limit of Allocation pool resource pools was no longer based on number of vCPUs deployed in the resource pool as in 5.1.0, but was the whole Org VDC CPU allocation instead. This means that even the first (and only) deployed vCPU can utilize the full Org CPU Allocation (obviously limited by the physical speed of the core). The downside is that if the Org VDC spans multiple resource pools, the tenant will get more CPU resources then he is entitled to. However as long the provider designed all his Provider VDCs to be backed by only one cluster/resource pool and set low vCPU speed the behavior was very similar to vCloud Director 1.5.</p>
<h3>vCloud Director 5.1.2</h3>
<p>The problem with the previous approach was that if you upgraded to 5.1.1 you could not revert to 5.1.0 with the truly elastic VDCs if you wanted. That has changed now with 5.1.2.</p>
<p>There is a new &#8220;<em>Make Allocation pool Org VDCs elastic</em>&#8221; configuration option in System Settings &gt; General &gt; Miscellaneous which gives you the possibility to choose the Allocation Pool behavior.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/settings.png"><img class="alignnone size-full wp-image-812" alt="Allocation Pool Elasticity" src="http://fojta.files.wordpress.com/2013/04/settings.png?w=625"   /></a></p>
<p>When upgrading from vCloud Director 5.1.0 that used Allocation Pool Org VDC spanning multiple clusters this option will be enabled, otherwise it will always be disabled by default.</p>
<p>If it is disabled then the Allocation Pool Org VDCs behave exactly as in vCloud Director 1.5. That means no vCPU speed setting, no spanning of multiple clusters and easy vCPU overallocation.</p>
<p>If the option is enabled then the Allocation Pool Org VDCs behave exactly as in vCloud Director 5.1.1!  So beware &#8211; it does not revert to 5.1.0 way of setting the resource pool CPU limit, but uses the 5.1.1 way which results in possibility that tenant will use more CPU resources than is his Org VDC CPU allocation.</p>
<p>Personally I have hoped that the elastic behavior would be exactly as in 5.1.0 which is not the case, but could happen in the future releases.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/811/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/811/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=811&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/30/allocation-pool-organization-vdc-changes-in-vcloud-director-5-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/settings.png" medium="image">
			<media:title type="html">Allocation Pool Elasticity</media:title>
		</media:content>
	</item>
		<item>
		<title>vCloud Director 5.1 Features and their vSphere Dependency</title>
		<link>http://fojta.wordpress.com/2013/04/23/vcloud-director-5-1-features-vsphere/</link>
		<comments>http://fojta.wordpress.com/2013/04/23/vcloud-director-5-1-features-vsphere/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 13:10:17 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=798</guid>
		<description><![CDATA[I see more and more customers are migrating from vCloud Director 1.5 to vCloud Director 5.1. One question they have is: &#8220;Do we have to migrate to vSphere 5.1 at the same time&#8221;? The answer is definite no. vCloud Director 5.1 supports vCenter 5.0 and ESXi 5.0 and even ESX(i) 4.0U2 if managed by vCenter [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=798&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I see more and more customers are migrating from vCloud Director 1.5 to vCloud Director 5.1. One question they have is: &#8220;Do we have to migrate to vSphere 5.1 at the same time&#8221;? The answer is definite no. vCloud Director 5.1 supports vCenter 5.0 and ESXi 5.0 and even ESX(i) 4.0U2 if managed by vCenter 5.</p>
<p>I always recommend to upgrade vCloud Director in two phases.</p>
<h3>Phase 1 (vCloud Director Upgrade)</h3>
<ul>
<li><span style="line-height:14px;">vCloud Director Cell operating system (RHEL). RHEL 5 is still supported but if customer wants to use RHEL 6 he will need to deploy a new cell as RHEL 5 to RHEL 6 upgrade is not possible.</span></li>
<li>vCloud Director runtime upgrade</li>
<li>vCloud Director database schema upgrade</li>
<li>vShield Manager upgrade</li>
<li>vShield Edges upgrade</li>
</ul>
<h3>Phase 2 (vSphere Upgrade)</h3>
<ul>
<li><span style="line-height:1.714285714;font-size:1rem;">Installation of SSO</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">Installation of Inventory Service</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">Installation/upgrade of Web Client</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">vCenter Server upgrade</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">ESX hosts upgrade </span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">distributed virtual switches upgrade</span></li>
</ul>
<p><span style="line-height:1.714285714;font-size:1rem;">As the phases can be spread out in time this brings the main topic of the article &#8211; which new vCloud Director 5.1 features depend on vSphere 5.1 and will not be available during the time between Phase 1 and Phase 2? I have compiled a table which lists the new vCloud Director features and if that feature will be available with vSphere 5.0 (vCenter 5.0 + ESX 5.0. Note: I don&#8217;t dare to consider ESX 4).</span></p>
<table width="604" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="166"><b>Feature</b></td>
<td valign="top" width="170">
<p align="center"><b>vSphere 5.0</b></p>
</td>
<td valign="top" width="268"><b>Note</b></td>
</tr>
<tr>
<td valign="top" width="166">VM Snapshots</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268"></td>
</tr>
<tr>
<td valign="top" width="166">Storage Profiles</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268"></td>
</tr>
<tr>
<td valign="top" width="166">Elastic VDC</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268">Allocation pool Org VDC type can span multiple clusters. Online migrations and merging of Provider VDCs.</td>
</tr>
<tr>
<td valign="top" width="166">Provider Single Sign On</td>
<td valign="top" width="170"></td>
<td valign="top" width="268">vCenter SSO required</td>
</tr>
<tr>
<td valign="top" width="166">Customer Single Sign On</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268">SSPI, SAML2</td>
</tr>
<tr>
<td valign="top" width="166">VXLAN Networks</td>
<td valign="top" width="170"></td>
<td valign="top" width="268">vSphere 5.1 vmkernel module is required</td>
</tr>
<tr>
<td valign="top" width="166">Storage clusters (SDRS)</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268">VM placement engine leverages SDRS. Migration of linked clones supported. <span style="color:#ff0000;">Difference in shadow VM handling¹</span></td>
</tr>
<tr>
<td valign="top" width="166">New Edge Gateway Features</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268">Performance, HA, Load balancing, DNS relay, Rate limits, Multiple interfaces, IP allocations, SNAT and DNAT rules</td>
</tr>
<tr>
<td valign="top" width="166">Virtual Hardware 9</td>
<td valign="top" width="170"></td>
<td valign="top" width="268">Requires vSphere 5.1 (64 vCPUs)</td>
</tr>
<tr>
<td valign="top" width="166">Additional Guest OS Support</td>
<td valign="top" width="170">
<p align="center">possibly</p>
</td>
<td valign="top" width="268">Depends on ESX version (Windows 8/2012 requires ESXi 5.0 U1), but Virtual Hardware 9 is recommended (<a title="Supported guest operating systems in vCloud Director 5.1 (2034491)" href="http://kb.vmware.com/kb/2034491" target="_blank">KB 2034491</a>)</td>
</tr>
<tr>
<td valign="top" width="166">NFS VAAI Fast Provisioning</td>
<td valign="top" width="170"></td>
<td valign="top" width="268">Requires vSphere 5.1 (hardware accelerated linked clones)</td>
</tr>
<tr>
<td valign="top" width="166">Clustered database support</td>
<td valign="top" width="170">
<p align="center">●</p>
</td>
<td valign="top" width="268"></td>
</tr>
</tbody>
</table>
<p><span style="color:#ff0000;">¹) With vSphere 5.0 vCloud Director does not use SDRS recommendation for linked clone placement (Fast Provisioning). vCloud Director picks individual datastore and optionally deploys shadow VM. With vSphere 5.1 vCloud Director fully leverages SDRS recommendations, shadow VMs are deployed by vSphere SDRS.</span></p>
<p><a title="vCloud Director 5.1 Features" href="http://fojta.files.wordpress.com/2013/04/vcd_features1.png" target="_blank">Table in PNG format</a>.</p>
<p><span style="text-decoration:underline;">Disclaimer:</span> I don&#8217;t claim this table is complete and that it is an official VMware document. If you think something is missing, please comment and I will edit the table.</p>
<p><span style="color:#ff0000;">Edit 27 April 2013: Explained difference in linked clone placement.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/798/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/798/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=798&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/23/vcloud-director-5-1-features-vsphere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>
	</item>
		<item>
		<title>vCloud Connector: Public Cloud Transfers with no Private vSphere Environment</title>
		<link>http://fojta.wordpress.com/2013/04/20/vcloud-connector-public-cloud-transfers-with-no-private-vsphere-environment/</link>
		<comments>http://fojta.wordpress.com/2013/04/20/vcloud-connector-public-cloud-transfers-with-no-private-vsphere-environment/#comments</comments>
		<pubDate>Sat, 20 Apr 2013 07:59:59 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[hybrid cloud]]></category>
		<category><![CDATA[Public Cloud]]></category>
		<category><![CDATA[vCenter Server Appliance]]></category>
		<category><![CDATA[vCloud Connector]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=779</guid>
		<description><![CDATA[I have already blogged quite extensively about vCloud Connector &#8211; a tool for transfers of VMs, vApps and catalogs between public and private vSphere or vCloud Director based clouds. This post is dedicated to one particular use case, let&#8217;s call it &#8216;Developer Use Case&#8216;. Here the user is not VI Admin, but a developer that [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=779&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have already <a title="vCloud Connector 2.0 Observations" href="http://fojta.wordpress.com/2013/03/10/vcloud-connector-2-0-observations/" target="_blank">blogged </a>quite extensively about vCloud Connector &#8211; a tool for transfers of VMs, vApps and catalogs between public and private vSphere or vCloud Director based clouds. This post is dedicated to one particular use case, let&#8217;s call it &#8216;<strong>Developer Use Case</strong>&#8216;. Here the user is not VI Admin, but a developer that wants to deploy his apps to public clouds. He has no access to private vSphere environment and obviously to vCenter Server.</p>
<p>vCloud Connector (vCC) consists of vCloud Connector Server, vCloud Connector Nodes and vCloud Connector Client. In the past the vCloud Connector was accessible either through vCenter Server plugin or through web interface at <a href="http://vcloud.vmware.com/connector" rel="nofollow">http://vcloud.vmware.com/connector</a>. However as of April 2nd 2013 <a title="vCloud Connector Web Interface – EOL" href="http://www.viktorious.nl/2013/04/02/vcloud-connector-web-interface-eol/" target="_blank">VMware discontinued the web interface access</a> which means that vCenter Server plugin is currently the only option to use vCloud Connector.</p>
<p>The web portal was great for the Developer Use Case. The developer did not need to have access to vSphere, vCenter, vSphere client or even a Windows machine and could use vCloud Connector from his Mac or Linux browser.</p>
<p>What now follows in this article is basically a description how the Developer Use Case can still be fulfilled even after April 2nd. The idea is to use vCenter Server Appliance and deploy it to the cloud together with vCloud Connector Server. This vCenter Server Appliance will not manage any ESX hosts and will be basically used only for the instantiation of the vCloud Connector Client interface. The thick (.NET) vSphere Client is still needed (as at the moment there is no vCC plugin for vSphere Web Client), this also means a Windows OS, so the developer will need either physical Windows desktop, or a virtual one on his PC or running also in the cloud and accessible via RDP.</p>
<h2>How to deploy vCenter Server to the public vCloud Director cloud</h2>
<ol>
<li><span style="line-height:1.714285714;font-size:1rem;">From VMware website download vCenter Server Appliance. I have used the version 5.1.0b which comes as one large OVA file.</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">As we cannot import OVA file to vCloud Director we first need to unzip the file to get the OVF format. This can be done easily by adding .zip extension to the downloaded file and using WinZip or similar utility.</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">Import the OVF file into your organization catalog.</span></li>
<li><span style="line-height:1.714285714;font-size:1rem;">As I also had vCC Server and vCC Node in the catalog I deployed them together into one vApp.<br />
<a href="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp.png"><img class="alignnone size-full wp-image-780" alt="vCloud Connector vApp" src="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp.png?w=625&#038;h=455" width="625" height="455" /></a><br />
</span></li>
<li>After accepting EULA, selecting Storage Profile and setting hostnames it is important to put the VMs on one internet routable network and manually assign IP addresses from the static pool of the organization VDC network. We cannot just rely on Guest Customization as the IP address assignment is part of the vApp property which is applied when the vApp is deployed. So in my case I used (the default) 192.168.1.0/24 subnet for the org VDC network, where IP 192.168.1.1 was used for the internal interface of the Edge Gateway and IPs 192.168.1.2-192.168.1.4 were used for vCenter Server, vCloud Connector Server and vCloud Connector Node.<a href="http://fojta.files.wordpress.com/2013/04/ip-assignment-static-manual.png"><img class="alignnone size-full wp-image-781" alt="IP Assignment Static - Manual" src="http://fojta.files.wordpress.com/2013/04/ip-assignment-static-manual.png?w=625&#038;h=455" width="625" height="455" /></a></li>
<li>On the next page we are presented with the vApp properties. Here we have to again manually assign the correct IP addresses as specified in the previous step. As I am deploying 3 imported vApps at once it looks quite confusing as the properties of each are merged into one screen. The default gateway address is the Edge Gateway internal interface and subnet is 255.255.255.0.<a href="http://fojta.files.wordpress.com/2013/04/imported-vapp-network-properties.png"><img class="alignnone size-full wp-image-782" alt="Imported vApp Network Properties" src="http://fojta.files.wordpress.com/2013/04/imported-vapp-network-properties.png?w=625&#038;h=456" width="625" height="456" /></a></li>
<li>After the deployment is finished we will get vCloud Connector vApp which looks like this:<a href="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp-networking-diagram.png"><img class="alignnone size-full wp-image-783" alt="vCloud Connector vApp Networking Diagram" src="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp-networking-diagram.png?w=625&#038;h=470" width="625" height="470" /></a></li>
<li>We will need to access all three VMs from the internet to configure their Virtual Appliance Management Interface (VAMI) which runs on TCP port 5480. If you have 3 external IP addresses you can set up destination NAT (DNAT) rules for each VM on the Edge Gateway. vCC Node and vCC Server will also need to access internet therefore source NAT (SNAT) rule must be created for them. We could actually get away with just one external IP address: we could use port forwarding for the VAMI interface of each VM runnning on port 5480 (or we could even configure them over console from another VM with supported browsed deployed in the cloud). Please refer to my other post linked at the beginning of the article for the advanced networking information. In my lab I have luxury of 3 external IP addresses represented by 10.0.2.151-10.0.2.153 range.<br />
<a href="http://fojta.files.wordpress.com/2013/04/nat-rules.png"><img class="alignnone size-full wp-image-784" alt="NAT rules" src="http://fojta.files.wordpress.com/2013/04/nat-rules.png?w=625&#038;h=206" width="625" height="206" /></a></li>
<li>Next we need to create firewall rules. As I already mentioned we need TCP port 5480 for VAMI interface. We also need TCP port 443 for vSphere Client connectivity to vCenter and TCP port 443 for incoming and outgoing traffic for vCloud Connector Node.<br />
<a href="http://fojta.files.wordpress.com/2013/04/firewall-rules1.png"><img class="alignnone size-full wp-image-795" alt="Firewall Rules" src="http://fojta.files.wordpress.com/2013/04/firewall-rules1.png?w=625&#038;h=257" width="625" height="257" /></a></li>
<li>Now we can start the vApp and start configuring the VMs. I will skip the vCC Server and Node configuration and will focus on the vCenter Appliance part.</li>
<li>The inital configuration of vCenter Appliance is done via browser pointing to the 5480 port. In my case I am accessing the external NATed IP: <a href="https://10.0.2.151:5480" rel="nofollow">https://10.0.2.151:5480</a>. Default login is &#8216;root&#8217; and password &#8216;vmware&#8217;.</li>
<li>After accepting EULA on the Configure Options screen I set custom configuration<br />
<a href="http://fojta.files.wordpress.com/2013/04/vcenter-configure-options.png"><img class="alignnone size-full wp-image-786" alt="vCenter Configure Options" src="http://fojta.files.wordpress.com/2013/04/vcenter-configure-options.png?w=625&#038;h=437" width="625" height="437" /></a></li>
<li>The I chose embedded database and embedded SSO and did not enable Active Directory.</li>
<li>After the vCenter Server service (together with database and SSO) is started (which takes a while) do not forget to change the default password and optionally disable not needed services.<br />
<a href="http://fojta.files.wordpress.com/2013/04/vcenter-services.png"><img class="alignnone size-full wp-image-787" alt="vCenter Services" src="http://fojta.files.wordpress.com/2013/04/vcenter-services.png?w=625&#038;h=423" width="625" height="423" /></a></li>
<li>Now we can register vCC Server with this newly deployed vCenter Server. As they are on the same org VDC network I am using vCenter internal IP address (192.168.1.2).<br />
<a href="http://fojta.files.wordpress.com/2013/04/vcc-server-vcenter-server-registration.png"><img class="alignnone size-full wp-image-788" alt="vCC Server vCenter Server registration" src="http://fojta.files.wordpress.com/2013/04/vcc-server-vcenter-server-registration.png?w=625&#038;h=274" width="625" height="274" /></a></li>
<li>That&#8217;s it. Now we can download vSphere Client and connect to the external IP address of vCenter Server and access the vCloud Connector Plugin in the Solutions and Applications section of the vCenter home page.<br />
<a href="http://fojta.files.wordpress.com/2013/04/vcc-plugin.png"><img class="alignnone size-full wp-image-789" alt="vCC Plugin" src="http://fojta.files.wordpress.com/2013/04/vcc-plugin.png?w=625&#038;h=458" width="625" height="458" /></a></li>
</ol>
<h2>Licensing</h2>
<p>There is one catch. Unlike the standard edition of vCloud Connector, vCenter Server is a licensed product. We can use the evaluation version for 60 days but what happens then? It turns out that even with expired license of vCenter Server you can still access the vCloud Connector plugin. So from technical standpoint it is possible to use vCenter Server without a license with vCloud Connector. Not sure what are the legal implications though (IANAL).</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/expired-vcenter-server-license.png"><img class="alignnone size-full wp-image-790" alt="Expired vCenter Server License" src="http://fojta.files.wordpress.com/2013/04/expired-vcenter-server-license.png?w=625"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/779/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=779&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/20/vcloud-connector-public-cloud-transfers-with-no-private-vsphere-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp.png" medium="image">
			<media:title type="html">vCloud Connector vApp</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/ip-assignment-static-manual.png" medium="image">
			<media:title type="html">IP Assignment Static - Manual</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/imported-vapp-network-properties.png" medium="image">
			<media:title type="html">Imported vApp Network Properties</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcloud-connector-vapp-networking-diagram.png" medium="image">
			<media:title type="html">vCloud Connector vApp Networking Diagram</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/nat-rules.png" medium="image">
			<media:title type="html">NAT rules</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/firewall-rules1.png" medium="image">
			<media:title type="html">Firewall Rules</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcenter-configure-options.png" medium="image">
			<media:title type="html">vCenter Configure Options</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcenter-services.png" medium="image">
			<media:title type="html">vCenter Services</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcc-server-vcenter-server-registration.png" medium="image">
			<media:title type="html">vCC Server vCenter Server registration</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/vcc-plugin.png" medium="image">
			<media:title type="html">vCC Plugin</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/expired-vcenter-server-license.png" medium="image">
			<media:title type="html">Expired vCenter Server License</media:title>
		</media:content>
	</item>
		<item>
		<title>Hypervisor Overhead &#8211; Reservable vs Raw Compute Resources</title>
		<link>http://fojta.wordpress.com/2013/04/19/hypervisor-overhead-reservable-vs-raw-compute-resources/</link>
		<comments>http://fojta.wordpress.com/2013/04/19/hypervisor-overhead-reservable-vs-raw-compute-resources/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 11:26:20 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[resource management]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=767</guid>
		<description><![CDATA[While working on capacity planning for one of my clients I encountered one not very well documented fact about vSphere cluster reservable resources. Common practice when calculating available compute resources (CPU and RAM) takes physical values of CPU and RAM of one host, multiplies them with the number of hosts in the cluster and subtracts [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=767&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>While working on capacity planning for one of my clients I encountered one not very well documented fact about vSphere cluster reservable resources. Common practice when calculating available compute resources (CPU and RAM) takes physical values of CPU and RAM of one host, multiplies them with the number of hosts in the cluster and subtracts the HA fail over capacity. However this is not correct as it does not take into account resources that vmkernel processes are reserving for themselves and that cannot be reserved by user workloads &#8211; which is important in service provider cloud environment where tenants pay for they allocated and reserved resources. Resources that cannot be reserved cannot be sold and mean lower ROI.</p>
<p>Real life example: 8 host cluster where each host has two 8 core @ 2.899 GHz CPUs and 384 GB RAM. Theoretically this should result in 371072 MHz CPU capacity and 3072 GB RAM however Resource Allocation tab of the cluster in vSphere client shows that only 330424 MHz and 2988 GB RAM is the total cluster capacity.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/cluster-capacity.gif"><img class="alignnone size-full wp-image-775" alt="Cluster capacity" src="http://fojta.files.wordpress.com/2013/04/cluster-capacity.gif?w=625"   /></a></p>
<p>There is a KB article <a title="Cluster level memory capacity on Resource Allocation tab is less than the sum of the memory available for virtual machines for ESX hosts in the cluster (1033443)" href="http://kb.vmware.com/kb/1033443" target="_blank">1033443</a> describing the behavior with a title almost as long as the whole article: <em>Cluster level memory capacity on Resource Allocation tab is less than the sum of the memory available for virtual machines for ESX hosts in the cluster</em>, that unfortunately does not explain why and how much resources are missing.</p>
<p>As already hinted above, vmkernel processes are reserving some resources for themselves. If you select in vSphere Client a single host and go to Configuration &gt; System Resource Allocation you will see value for System Resource Reservation &#8211; by default 301 MHz for CPU and 0 MB RAM.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/system-resource-allocation.png"><img class="alignnone size-full wp-image-769" alt="System Resource Allocation" src="http://fojta.files.wordpress.com/2013/04/system-resource-allocation.png?w=625&#038;h=403" width="625" height="403" /></a></p>
<p>However this view does not show the whole story &#8211; if you change from Simple to Advanced view (top right) you will be presented with a tree of resource pools each with their own reservations.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/system-resource-allocation-advanced.png"><img class="alignnone size-full wp-image-770" alt="System Resource Allocation - Advanced" src="http://fojta.files.wordpress.com/2013/04/system-resource-allocation-advanced.png?w=625"   /></a></p>
<p>There is a host resource pool at the root of the tree which has all the theoretical physical resource available as reservation which also equals its limit. However then there are 4 children resource pools at the same level:</p>
<ul>
<li><span style="line-height:1.714285714;font-size:1rem;">idle, which is always empty</span></li>
<li>system (this is the one we could edit on the previous page) containing low level kernel, driver and similar sub-resource pools for each process</li>
<li>vim, which contains sub-resource pools for host management processes (hostd, vpxa, DCUI, &#8230;) which used to run in Console OS in the ESX 4 classic times.</li>
<li>user, which is available for the VMs deployed on the host</li>
</ul>
<p>All these 2nd level resource pools and all their children resource pools have expandable reservations, which means that if one of the children will request more resources that are available in the resource pool the resource pool will try to get more resources from its parent. And the top parent is the host resource pool. The system processes and management (VIM) processes are started immediately when the host boots up before VM workloads are placed on the host therefore take the part of the available host resources for themselves.</p>
<p>You can easily see that some processes like hostd or vpxa reserve relatively significant amount of resources. The relativity depends on the size of the host &#8211; in my small lab environment 36% of CPU and 20% of RAM resources were not available to be reserved for VMs. In big environments as was in the example above, the CPU overhead is about 11% but memory only 3%.</p>
<p>It should be also noted that with more and more intelligent hypervisor (VXLAN VTEP, vApp firewalling, antivirus inspection, vSAN, etc.) the overhead will go up and capacity planning should include it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/767/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/767/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=767&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/19/hypervisor-overhead-reservable-vs-raw-compute-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/cluster-capacity.gif" medium="image">
			<media:title type="html">Cluster capacity</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/system-resource-allocation.png" medium="image">
			<media:title type="html">System Resource Allocation</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/system-resource-allocation-advanced.png" medium="image">
			<media:title type="html">System Resource Allocation - Advanced</media:title>
		</media:content>
	</item>
		<item>
		<title>VCAP-Cloud Infrastructure Administration Exam Experience</title>
		<link>http://fojta.wordpress.com/2013/04/14/vcap-cloud-infrastructure-administration-exam-experience/</link>
		<comments>http://fojta.wordpress.com/2013/04/14/vcap-cloud-infrastructure-administration-exam-experience/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 16:27:33 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[VCAP-CIA]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=759</guid>
		<description><![CDATA[VMware has just now released the second vCloud VCAP (which stands for VMware Certified Advanced Professional) Exam - Cloud Infrastructure Administration (VCAP-CIA). I have blogged about the other one - Cloud Infrastructure Design (VCAP-CID) 7 months ago so I thought it would be good to write about my experience from the beta exam I took 2 months [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=759&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>VMware has just now released the second vCloud VCAP (which stands for VMware Certified Advanced Professional) Exam -<a title="VCAP-Cloud Infrastructure Administration" href="http://mylearn.vmware.com/mgrReg/plan.cfm?plan=37629&amp;ui=www_cert" target="_blank"> Cloud Infrastructure Administration (VCAP-CIA)</a>. I have blogged about the other one - <a title="VCAP-Cloud Infrastructure Design Exam Experience" href="http://fojta.wordpress.com/2012/09/22/vcap-cloud-infrastructure-design-exam-experience/" target="_blank">Cloud Infrastructure Design (VCAP-CID)</a> 7 months ago so I thought it would be good to write about my experience from the beta exam I took 2 months ago as well.</p>
<p>If you are familiar with the vSphere equivalent exam VCAP Datacenter Administration (VCAP-DCA) then you will find it very similar. It is 100% hands on exam with a series of tasks that have to be done on live vSphere/vCloud/Chargeback infrastructure. You start at a control desktop and then from there you get to the lab environment using any client of your choice (SSH, RDP, web browser, vSphere Client).</p>
<p>It is important to note that the lab environment is based on vCloud Director 5.1 (contrary to VCAP-CID where all the questions were based on vCloud Director 1.5). The questions follow the exam blueprint (as usually) quite well so I would recommend to review the blueprint before the exam. As I do vCloud for living it is hard for me to recommend training or studying resources &#8211; I thing very good hands on experience with vCloud Director, vShield Manager, Chargeback and RHEL is necessary to be successful. Only hard prerequisite is to be VCP and it does not matter if VCP-DCV (the former vSphere VCP-DV), VCP-DT (View) or VCP-Cloud. If you are not VCP-Cloud passing VCAP-CIA (or VCAP-CID) will give you VCP-Cloud certification by default.</p>
<p>The 29 questions are supposed to be solved in sequence as they are sometimes related and it is not possible to easily jump from one to another. You have to go forward or backward one question at a time. Some questions might be skipped though. Standard VMware documentation in PDF form is accessible during exam however VMware KB is not.</p>
<p>I had major problem with latency which showed its ugly head when typing &#8220;vmware1!&#8221; password which was universally used. The last character &#8216;!&#8217; requires two keystroke pressed at the same time which did not work most of the time. That was pretty annoying during tasks that took a few minutes and failed because of wrong password. At the end I used copy &#8211; paste for the password &#8211; knowing this upfront it would save me quite a lot of time. Besides confusing wording of another question I had no real issues with the lab environment.</p>
<p>I have to say I really enjoyed the exam tasks and was impressed how the lab was set up. It is obvious it required some effort from the exam makers and I applaud this. I commented on my issues and as it was a beta it the final release might be different.</p>
<p>I am now eager for the result in order to take the next step to VCDX-Cloud.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/759/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/759/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=759&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/14/vcap-cloud-infrastructure-administration-exam-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>
	</item>
		<item>
		<title>vCloud Director and Single-Sign-On (SAML)</title>
		<link>http://fojta.wordpress.com/2013/04/07/vcloud-director-and-single-sign-on-saml/</link>
		<comments>http://fojta.wordpress.com/2013/04/07/vcloud-director-and-single-sign-on-saml/#comments</comments>
		<pubDate>Sat, 06 Apr 2013 23:37:03 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[SAML]]></category>
		<category><![CDATA[SSO]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=748</guid>
		<description><![CDATA[In December last year i wrote a blog post about vCloud Director and SSPI Authentication. In the post I stated that besides using SSPI &#8211; which is Microsoft proprietary interface on top of Active Directory, the tenants can use Security Assertion Markup Language (SAML) standard to integrate with their identity provider. VMware has tested SAML2 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=748&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In December last year i wrote a blog post about<a title="vCloud Director and SSPI Authentication" href="http://fojta.wordpress.com/2012/12/04/vcloud-director-and-sspi-authentication/" target="_blank"> vCloud Director and SSPI Authentication</a>. In the post I stated that besides using SSPI &#8211; which is Microsoft proprietary interface on top of Active Directory, the tenants can use Security Assertion Markup Language (SAML) standard to integrate with their identity provider. VMware has tested SAML2 integration with OpenAM (described in detail in vCloud Architecture Toolkit Implementation Examples) and Active Directory Federation Services (ADFS). However just recently there appeared another supported identity provider &#8211; our own VMware Horizon Workspace. The following whitepaper describes the integration in detail: <a title="Using VMware Horizon Workspace to Enable SSO in VMware vCloud Director 5.1" href="http://www.vmware.com/resources/techresources/10358" target="_blank">Using VMware Horizon Workspace to Enable SSO in VMware vCloud Director 5.1</a>.</p>
<p>In this post I will provide short step-by-step description of all the necessary steps that you as the vCloud Organization Administrator must take. The assumption is that you have on premise Horizon Workspace integrated with company Active Directory and want to use it for connecting private or public vCloud Director organizations.</p>
<ol type="1">
<li>Download Horizon Identity provider metadata XML file from: <a href="https://%3chorizon_workspace_URL%3e/SAAS/API/1.0/GET/metadata/idp.xml">https://&lt;horizon_workspace_URL&gt;/SAAS/API/1.0/GET/metadata/idp.xml</a></li>
<li>In the target cloud go to Administration &gt; Settings &gt; Federation menu and check Use SAML Identity Provider and upload the idp.xml file</li>
<li>Still on the same page regenerate the certificate and click apply</li>
<li>Download the certificate from the url: <a href="https://%3cvcloud_URL%3e/cloud/org/%3corgname%3e/saml/metadata/alias/vcd">https://&lt;vcloud_URL&gt;/cloud/org/&lt;orgname&gt;/saml/metadata/alias/vcd</a></li>
<li>Log out from the cloud</li>
<li>Log back in, you will need to change the URL to go directly to the local authentication: <a href="https://%3cvcloud_URL%3e/cloud/org/%3corgname%3e/login.jsp">https://&lt;vcloud_URL&gt;/cloud/org/&lt;orgname&gt;/login.jsp</a></li>
<li>In the Administration &gt; Members &gt; Users (or Groups) import Users (or Groups) by clicking the icon with arrow. Change the Source to SAML and type the user names or group names.</li>
<li>Back in Horizon Workspace admin interface create a new Web Application in the catalog</li>
<li>Fill in the following data:
<ul>
<li>Authentication Profile: SAML 2.0 POST profile</li>
<li>Login Redirection URL: <a href="https://&lt;vcloud_URL&gt;/cloud/org/&lt;orgname&gt;/" rel="nofollow">https://&lt;vcloud_URL&gt;/cloud/org/&lt;orgname&gt;/</a></li>
<li>Check: Include Destination</li>
<li>Check: Sign Response</li>
<li>Check: Sign the Assertion</li>
<li>Configure via Metadata XML</li>
<li>Paste the certificate from point 4 into the Meta-data XML box</li>
<li>Add Attribute Mapping as seen in the screenshot<em id="__mceDel" style="line-height:1.714285714;font-size:1rem;"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><br />
<a href="http://fojta.files.wordpress.com/2013/04/attribute-mapping.png"><img class="alignnone size-full wp-image-751" alt="Attribute Mapping" src="http://fojta.files.wordpress.com/2013/04/attribute-mapping.png?w=625&#038;h=192" width="625" height="192" /></a><br />
</em></em></em></em></em></em></em></li>
<li>Save the page</li>
</ul>
</li>
<li>Edit the newly created Web Application and assign Entitlements (either specific users or a group). These should be the same users as in step 7.</li>
<li><span style="line-height:1.714285714;font-size:1rem;">Now log into the Horizon as the entitled user and click the application icon. You should now get direct access into the vCloud Director.</span></li>
</ol>
<p><a href="http://fojta.files.wordpress.com/2013/04/horizon-workspace.png"><img class="alignnone size-full wp-image-752" alt="Horizon Workspace" src="http://fojta.files.wordpress.com/2013/04/horizon-workspace.png?w=625&#038;h=376" width="625" height="376" /></a></p>
<p>&nbsp;</p>
<p><span style="color:#ff0000;">Edit 2 July 2013: In order to get SAML Groups working following is needed.</span></p>
<p>In step 9 create also group mapping. The group name must be hardcoded, but that should not be such a problem as a different web application in Horizon Workspace can be created for each group/role mapping. I have created hardcoded mapping to group name OrgAdministrators.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/attribute-mapping2.png"><img class="alignnone size-full wp-image-838" alt="Attribute Mapping with Group" src="http://fojta.files.wordpress.com/2013/04/attribute-mapping2.png?w=625"   /></a></p>
<p>&nbsp;</p>
<p>Then in step 7 the group can be imported and the correct role assigned.</p>
<p><a href="http://fojta.files.wordpress.com/2013/04/saml-group-import.png"><img class="alignnone size-full wp-image-839" alt="SAML Group Import" src="http://fojta.files.wordpress.com/2013/04/saml-group-import.png?w=625&#038;h=631" width="625" height="631" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/748/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/748/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=748&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/04/07/vcloud-director-and-single-sign-on-saml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/attribute-mapping.png" medium="image">
			<media:title type="html">Attribute Mapping</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/horizon-workspace.png" medium="image">
			<media:title type="html">Horizon Workspace</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/attribute-mapping2.png" medium="image">
			<media:title type="html">Attribute Mapping with Group</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/04/saml-group-import.png" medium="image">
			<media:title type="html">SAML Group Import</media:title>
		</media:content>
	</item>
		<item>
		<title>vCloud Connector 2.0 Observations</title>
		<link>http://fojta.wordpress.com/2013/03/10/vcloud-connector-2-0-observations/</link>
		<comments>http://fojta.wordpress.com/2013/03/10/vcloud-connector-2-0-observations/#comments</comments>
		<pubDate>Sun, 10 Mar 2013 12:54:10 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[hybrid cloud]]></category>
		<category><![CDATA[vCloud Connector]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=732</guid>
		<description><![CDATA[I have been playing with vCloud Connector 2.0 which is already a third release of the tool that enables VM (vApp) transfers between various VMware clouds based on vSphere or vCloud Director. Here follows a bunch of notes that I came up with that might help others. Note I expect that the reader is familiar [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=732&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have been playing with vCloud Connector 2.0 which is already a third release of the tool that enables VM (vApp) transfers between various VMware clouds based on vSphere or vCloud Director. Here follows a bunch of notes that I came up with that might help others. Note I expect that the reader is familiar with basic functionality and architecture of vCC.</p>
<h2>Compatibility</h2>
<p>vCloud Connector 2.0 (vCC) is backward compatible with vCloud Director 1.5, however some advanced feature like Content Sync will work in such deployments with limitations (modified templates are not removed, but added instead with timestamp in the name) or will not work at all (Stretch Deploy). vCloud Connector 1.5 does not work with vCloud Director 5.1.</p>
<h2>Architecture and Network Flows</h2>
<p>The architecture is similar to vCC 1.5, but the ports have changed (port 8443 not needed anymore). Here is the picture from the Installing and Configuring vCC 2.0 guide and let me dive deeper into some of the network flows (black circled numbers).</p>
<p><a href="http://fojta.files.wordpress.com/2013/03/vcc-data-flows.png"><img class="alignnone size-full wp-image-733" alt="vCC Data Flows" src="http://fojta.files.wordpress.com/2013/03/vcc-data-flows.png?w=625&#038;h=459" width="625" height="459" /></a></p>
<h3><strong>Flow 1</strong></h3>
<p>Although vCC Server has a web interface (VAMI) available at port 5480, the interface can be used only for appliance configuration and setting up connectivity to vCC Nodes. Internet Explorer is recommended to use here as Firefox or Chrome did not display some VAMI interface parts properly. The vCC Advanced Edition license key is entered here and SSL certificates related to the vCC Client &#8211; vCC Server communications can be enabled or generated and uploaded here as well. VAMI interface always uses https (on port 5480) with self signed certificate by default that cannot be replaced via the GUI, but if required it can be replaced in the following file on the appliance:</p>
<p><em>/opt/vmware/etc/lighttpd/server.pem</em></p>
<p><span style="line-height:1.714285714;font-size:1rem;">vCC end-users will use either vSphere client (the .NET version, as web client is not supported yet) or vcloud.vmware.com portal for actual management of the vApp transfers and other vCC features.</span></p>
<p>Although the picture shows port 80, if SSL is enabled, 443 will be used instead. If the replaced certificates do not use intermediate CA, the web interface cannot be used for their import and java keytool command must be used instead from appliance CLI as described in the installation guide. For some reason I was not able to create the private key with the GUI, but java keytool did the job.</p>
<h3><strong>Flow 2</strong></h3>
<p>vCC Server needs to be able to reach all vCC Nodes so the arrow should be also between vCC Server and the vCC Node in the destination cloud. Again the communication can go over port 80 or 443 depending on SSL configuration &#8211; this time on the vCC Nodes. The same caveat as with Server applies when replacing the certificates.</p>
<p>Note: Enabling SSL is recommended here as discussed below.</p>
<h3>Flows 3 and 6/7</h3>
<p>Prior attaching vCC Nodes to vCC Server, the Nodes need to be configured to connect to a cloud (vCenter or vCloud Director). SSL (port 443) is always used, but if you do not want to enable the Ignore SSL Cert checkbox, vCenter or vCloud need to have CA signed certificates. If you are using enterprise CA, you have to import the CA root certificate to a different keystore than the one available in the GUI as described in <a title="Installing CA Root Certificate in Trusted Keystore for vCloud Connector" href="http://kb.vmware.com/kb/2045007" target="_blank">KB 2045007</a>.</p>
<h3>Flow 5</h3>
<p>For the inter node communication, one node is designated as the Controller. The Controller initiates the connection. Which node is picked as the Controller depends on the Public checkbox setting in the vCC Node registration at vCC Server.</p>
<div id="attachment_734" class="wp-caption alignnone" style="width: 529px"><a href="http://fojta.files.wordpress.com/2013/03/public.png"><img class="size-full wp-image-734" alt="Public vCC Node" src="http://fojta.files.wordpress.com/2013/03/public.png?w=625"   /></a><p class="wp-caption-text">Public vCC Node</p></div>
<p>It is expected that the non Public vCC node is unreachable from outside and therefore has to be the initiator of the communication between nodes and is therefore the Controller. So the Controller Node works either in push or pull mode. If the other Node has SSL enabled (see Flow 2), https port 443 is used for the transfer between nodes. If the other Node does not have SSL enabled the transfer will fail.</p>
<h3>Shared Node</h3>
<p>This is a new feature for vCloud Director deployments when the provider can deploy shared (multitenant) node and connect it to provider&#8217;s cloud. The tenants then do not have to deploy their own nodes inside their organization VDCs with all the troubles of securing connectivity and appropriate transfer storage.</p>
<p>In highly secure public clouds it gets tricky where and how to deploy the shared node. It cannot be load balanced, but provider can deploy multiple shared nodes and give their IP addresses only to specific groups of tenants. The node should be as close as possible to the vCloud API somewhere in DMZ accessible from the internet but if Web Application Firewall is used it should still be in-between the node and API as it could be used as an attack vector to other organizations. The node does not keep any vCloud credentials for communication with vCloud API. Those are transferred by vCC Server so again SSL should be enabled (see Flow 2).</p>
<h2>Content Sync</h2>
<p>This is a new feature, great for maintenance of catalogs in various clouds or might be also used by the provider for management of public catalog directly from vSphere where a vSphere folder is automatically synced with a vCloud Director catalog. Note however that vCC Advanced Edition license is needed which currently cannot be obtain with provider VSPP license, but only through vCloud Suite bundles.</p>
<p>The default polling interval for synchronization is 6 hours. It can be changed but the change is unsupported. Following file can be edited on the vCC Server:</p>
<p><em>/usr/local/tcserver/vfabric-tc-server-standard/server/webapps/agent/WEB-INF/spring/appServlet/task.xml</em></p>
<p>Look for <em>&lt;property name=&#8221;jobExecutionIntervalInMinutes&#8221; value=&#8221;360&#8243; /&gt;.</em></p>
<p>Although the documentation states that ports 8443 and 8080 are used for Content Sync, my understanding is that they are used only internally on the vCC Server.</p>
<h2>Stretch Deploy</h2>
<p>This is again a new but licensed feature which enables migration of VMs between clouds without needing to change their IPs or MAC addresses thanks to a VPN connection (not VXLAN as often confused) which is established between the original and destination cloud. The SSL VPN is established between Edges on the vApp networks so this is quite different from the Site-to-Site IPSec VPN between Edge Gateways even though it shows up in vShield Manager in the IPSec VPN section. Its configuration is not exposed in the vCloud Director GUI at all.</p>
<div id="attachment_737" class="wp-caption alignnone" style="width: 635px"><a href="http://fojta.files.wordpress.com/2013/03/ssl-vpn.png"><img class="size-full wp-image-737" alt="Stretch Deploy Site-to-Site SSL VPN" src="http://fojta.files.wordpress.com/2013/03/ssl-vpn.png?w=625&#038;h=177" width="625" height="177" /></a><p class="wp-caption-text">Stretch Deploy Site-to-Site SSL VPN</p></div>
<p>There is quite a long list of prerequisites to get this working and some of them are out of tenant&#8217;s controls as they relate to the provider&#8217;s vCloud Director architecture &#8211; e.g. vSphere and vCloud Network and Security versions and type of distributed virtual switch used. Stretch Deploy will not work with Cisco Nexus 1000V switch. The tenant most likely will not know which switch the provider is using until he will experience following error:</p>
<p><em>Unable to update network &#8220;Stretched_VM_network&#8221;.</em><br />
<em>java.util.concurrent.ExecutionException: com.vmware.vcloud.fabric.nsm.error.VsmException: VSM response error (100): A specified parameter was not correct. </em><br />
<em>selectionSet.dvsUuid</em></p>
<p>The source and transferred destination VMs need to be connected to vSphere Distributed Switch 5.1 as the unclaimed traffic needs to be sent over the SSL tunnel and this is not currently supported with other virtual switches.</p>
<p>The Stretch Deploy process is relatively complicated with many actions that are happening in the background. This is all abstracted from the user as he can start the process easily from vCC GUI. However if you want to end the stretch deploy by removing the remote VM, or bring it home back this must be done manually.</p>
<div id="attachment_738" class="wp-caption alignnone" style="width: 596px"><a href="http://fojta.files.wordpress.com/2013/03/strech-deploy-actions.png"><img class="size-full wp-image-738" alt="Stretch Deploy activities as seen by the vCenter (note both source and destination clouds were managed by the same vCenter)" src="http://fojta.files.wordpress.com/2013/03/strech-deploy-actions.png?w=625"   /></a><p class="wp-caption-text">Stretch Deploy activities as seen by the vCenter (note both source and destination clouds were managed by the same vCenter)</p></div>
<h3>Delete Stretch Deployed VM</h3>
<ul>
<li><span style="line-height:14px;">stop the remote vApp, this will terminate the VPN connection and destroy the vApp Edge</span></li>
<li>delete the remote vApp</li>
<li>delete the IPSec configuration in the vSphere cloud Edge in vShield Manager</li>
<li>delete vCenter custom attributes of the VM which was stretched deployed (<em>DatacenterExtendedEntityId, DatacenterExtensionRole</em>)</li>
</ul>
<h3>Bring Home the Stretch Deployed VM</h3>
<p>This must be done by running a script from the vCC Node managing the private cloud. So an access to the Node is needed, the script needs to be untared and quite a lot of information must be typed in when executed and their correctness is not verified until they are all typed in. This is definitely not task for an average user and I expect this part might be improved in later releases.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/732/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/732/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=732&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/03/10/vcloud-connector-2-0-observations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/03/vcc-data-flows.png" medium="image">
			<media:title type="html">vCC Data Flows</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/03/public.png" medium="image">
			<media:title type="html">Public vCC Node</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/03/ssl-vpn.png" medium="image">
			<media:title type="html">Stretch Deploy Site-to-Site SSL VPN</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/03/strech-deploy-actions.png" medium="image">
			<media:title type="html">Stretch Deploy activities as seen by the vCenter (note both source and destination clouds were managed by the same vCenter)</media:title>
		</media:content>
	</item>
		<item>
		<title>Graceful Shutdown of vCloud Director Cell</title>
		<link>http://fojta.wordpress.com/2013/02/27/graceful-shutdown-of-vcloud-director-cell/</link>
		<comments>http://fojta.wordpress.com/2013/02/27/graceful-shutdown-of-vcloud-director-cell/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 22:33:23 +0000</pubDate>
		<dc:creator>Tomas Fojta</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://fojta.wordpress.com/?p=721</guid>
		<description><![CDATA[I have been challenged by one of my customers how to properly shutdown vCloud Director cell without any disruption of the service if multiple cells are used. Although we have KB article 2034994 about this particular subject it omits some important details. When vCenter is connected to vCloud Director a VC Proxy service is started on [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=721&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have been challenged by one of my customers how to properly shutdown vCloud Director cell without any disruption of the service if multiple cells are used. Although we have KB article <a title="KB 2034994" href="http://kb.vmware.com/kb/2034994" target="_blank">2034994</a> about this particular subject it omits some important details.</p>
<p>When vCenter is connected to vCloud Director a VC Proxy service is started on one of the cells. The service is responsible for monitoring of active vCenter tasks and inventory updates which are then shared with other cells. Unless there is a network partition between the cells there is always one vCenter proxy service for one vCenter. Multiple VC Proxies can run on one cell. You can see which cell is running the VC Proxy service at the vCenter screen in the vCloud Director Admin interface.</p>
<p><a href="http://fojta.files.wordpress.com/2013/02/vcenter-proxy.png"><img class="alignnone size-full wp-image-725" alt="vCenter Proxy" src="http://fojta.files.wordpress.com/2013/02/vcenter-proxy.png?w=625&#038;h=219" width="625" height="219" /></a></p>
<p>The screenshot shows two vCenters connected to vCloud Director with one having its vCenter proxy on vcloud1 cell and the second on vcloud2 cell.</p>
<p>If the VC Proxy service is not running most of the activities in the vCloud Director that require vCenter will not work properly. For example simple creation of a vApp with one VM will fail with message:</p>
<p><em>Folder vApp_system_34 (8ce90b57-da8b-4714-914b-5073457155b0) does not exist in our inventory, but vCenter Server claims that it does.</em></p>
<p>This is because the inventory listener on the VC Proxy was not running and vCloud Director could not verify successful creation of vApp folder in vCenter. When a cell with VC Proxy service dies the service fails over to a surviving cell. However that failover takes 5 minutes which is govern by vcloud:vcloud.heartbeat.failoverTimeoutMsecs property (stored in vCloud Director database). I am not aware if it is supported to change this value.</p>
<p>Anyway in order to shutdown a cell gracefully we need to move the VC Proxy service to another cell. This can be done by simple reconnect of vCenter and the move is very quick without any disruption of the running tasks.</p>
<div id="attachment_726" class="wp-caption alignnone" style="width: 635px"><a href="http://fojta.files.wordpress.com/2013/02/reconnect-vcenter.png"><img class="size-full wp-image-726" alt="Reconnect vCenter" src="http://fojta.files.wordpress.com/2013/02/reconnect-vcenter.png?w=625&#038;h=237" width="625" height="237" /></a><p class="wp-caption-text">Reconnect vCenter</p></div>
<p>I have observed that if possible different cell then the original and the least loaded (in terms of number of VC Proxy services) is chosen. This is also good for manually distributing the load if there are multiple vCenters and multiple cells (good practice is to have at least N+1 cells, where N is number of vCenters).</p>
<p>So what should be the correct graceful cell shutdown procedure?</p>
<ol>
<li><span style="line-height:1.714285714;font-size:1rem;">Make sure the cell is not running any VC Proxy service. No checkmark should be in the vCenter column of the Cloud Cells inventory in the vCloud Director Admin interface.</span><a style="line-height:1.714285714;font-size:1rem;" href="http://fojta.files.wordpress.com/2013/02/cloud-cells.png"><img class="alignnone size-full wp-image-727" alt="Cloud Cells" src="http://fojta.files.wordpress.com/2013/02/cloud-cells.png?w=625&#038;h=286" width="625" height="286" /></a>If yes, then reconnect vCenters that have VC Proxy running on the cell.</li>
<li>Quiesce the cell with the cell-management-tool:
<p><em>$VCLOUD_HOME/bin/cell-management-tool -u &lt;user&gt; cell &#8211;quiesce true</p>
<p></em></p>
<p style="display:inline!important;">where &lt;user&gt; is vCloud administrator username</p>
</li>
<li>Monitor the number of outstanding active tasks on the cell and wait until it reaches 0.<em><em>
<p>$VCLOUD_HOME/bin/cell-management-tool -u &lt;user&gt; cell &#8211;status<br />
</em></em><em>Job count = 0</em><br />
<em>Is Active = false</p>
<p></em></li>
<li>Shutdown the cell. This can be done also with cell-management-tool. What I noticed is that it takes multiple attempts (usually two), as the first time only the watchdog service is terminated.<em>
<p># $VCLOUD_HOME/bin/cell-management-tool -u &lt;user&gt; cell &#8211;shutdown</em></p>
<p><em># service vmware-vcd status</em></p>
<p><em>vmware-vcd-watchdog is not running</em><br />
<em>vmware-vcd-cell is running</em></p>
<p><em># $VCLOUD_HOME/bin/cell-management-tool -u &lt;user&gt; cell &#8211;shutdown</em><br />
<em># service vmware-vcd status</em></p>
<p><em>vmware-vcd-watchdog is not running</em><br />
<em>vmware-vcd-cell is not running</em></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fojta.wordpress.com/721/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fojta.wordpress.com/721/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fojta.wordpress.com&#038;blog=10010150&#038;post=721&#038;subd=fojta&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fojta.wordpress.com/2013/02/27/graceful-shutdown-of-vcloud-director-cell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6615ffa9282dabcd2d9ecd8888a7f49b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fojta</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/02/vcenter-proxy.png" medium="image">
			<media:title type="html">vCenter Proxy</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/02/reconnect-vcenter.png" medium="image">
			<media:title type="html">Reconnect vCenter</media:title>
		</media:content>

		<media:content url="http://fojta.files.wordpress.com/2013/02/cloud-cells.png" medium="image">
			<media:title type="html">Cloud Cells</media:title>
		</media:content>
	</item>
	</channel>
</rss>
