<?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/"
	>

<channel>
	<title>StratoGen VMware Hosting Blog</title>
	<atom:link href="http://www.stratogen.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stratogen.net/blog</link>
	<description>VMware Hosting</description>
	<lastBuildDate>Fri, 24 May 2013 11:52:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>vCloud Director Edge Gateway</title>
		<link>http://www.stratogen.net/blog/vcloud-director-edge-gateway/</link>
		<comments>http://www.stratogen.net/blog/vcloud-director-edge-gateway/#comments</comments>
		<pubDate>Thu, 23 May 2013 15:36:49 +0000</pubDate>
		<dc:creator>Anthony Doncaster</dc:creator>
				<category><![CDATA[StratoGen]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=796</guid>
		<description><![CDATA[Edge Gateway 5.1 in vCloud Director 5.1 &#160;  Part 1: Networks, IP assignment, NAT and Firewall The Edge Gateway feature in Vcloud Director 5.1 is the evolution of the Routed Organisation Network in Vcloud Director 1.5. The Edge Gateway is implemented using vCloud Networking and Security (formerly vShield) and is fully integrated into vCloud Director. <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/vcloud-director-edge-gateway/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<h1 style="text-align: center;">Edge Gateway 5.1 in vCloud Director 5.1</h1>
<p>&nbsp;</p>
<h3> Part 1: Networks, IP assignment, NAT and Firewall</h3>
<p>The Edge Gateway feature in Vcloud Director 5.1 is the evolution of the Routed Organisation Network in Vcloud Director 1.5. The Edge Gateway is implemented using vCloud Networking and Security (formerly vShield) and is fully integrated into vCloud Director. I will be looking specifically at the vCloud implementation of the Edge Gateway and how to configure the various features for your virtual Data Centre. Features include:</p>
<p>DHCP server*<br />
Network Address Translation (NAT)*<br />
Firewall*<br />
Load Balancer**<br />
Static Routes<br />
VPN*</p>
<p>*enhanced from vCD 1.5<br />
** New feature in vCD 5.1</p>
<p>Notable enhancements from the vCD 1.5 implementation include the ability to have more than 2 interfaces on an Edge Gateway (up to 10, internal or external), a higher specified ‘full configuration’ and an HA configuration.</p>
<p>In this first post I will be looking at the types of networks available in vCloud Director, adding networks, assigning IP addresses to vApps and configuring NAT and firewall rules. In part 2 I will look at configuring the Load Balancer feature and VPN configuration.</p>
<h3>Deployment of an Edge Gateway</h3>
<p>As a vCloud user, it is necessary to get your vCloud Provider (such as StratoGen) to deploy the Edge Gateway into your organisation. You will need to provide some information such as how many external IP addresses you will require, what your internal network address ranges are and whether you will need the compact edition or the full edition.<br />
The compact edition has 1 x vCPU and 256MB RAM and the Full edition has 2 x vCPU and 1GB RAM.<br />
Bear in mind your provider may levy an additional charge for the increased resources used by the full edition.</p>
<h3>External Networks, Org VDC Networks and vApp networks</h3>
<p>Prior to deploying an Edge Gateway it is useful to have a bit of background on how networks are presented in vCloud Director. There are three main types: External, Organisation and vApp.</p>
<p><strong>External Networks</strong><br />
These are configured in vCloud Director by the service provider. In essence they present a port group from the underlying vShere infrastructure to vCloud Director. The service provider configures the IP range or ranges available on the port group in vCloud Director. The IP range may be a shared range that multiple customers can utilise or the service provider may present a dedicated range for a specific customer.<br />
The Edge gateway will need to connect to one or more external networks. Your service provider will provide details on what options are available and the number of public IPs you are entitled to.</p>
<p><strong>Org VDC networks</strong><br />
Org VDC networks are configured in your virtual data centre (VDC). As a customer you can create two types of Org VDC network: isolated or routed.<br />
Isolated networks are effectively internal networks that can only be accessed by vApps in your VDC. They can be shared between VDCs in the same organisation but cannot be used to access external networks. You still have to define a default gateway IP for an isolated network, and it still deploys an appliance, but the only configurable service on an isolated network is DHCP.<br />
Routed networks are internal networks that can be shared between VDCs in the same organisation, but the major difference is that they also connect to an Edge Gateway’s internal interface. vApps connected to a routed network use the Edge Gateway’s internal IP address as their default gateway.</p>
<p>The service provider is also able to add a third type of network to your VDC. It is a direct connection to an External network (as described above). This may be to give you access to either a shared or dedicated IP address pool. For example the provider may present an Org VDC Network that connects directly to a shared public IP range configured as an External network in vCloud Director.</p>
<p><strong>vApp Networks</strong><br />
vApp networks are configured within the vApp rather than at the Org VDC level. They can connect directly to an Org VDC network or via a routed connection to an Org VDC network. If a routed connection is created a compact Edge Gateway appliance is deployed for the vApp, which has a reduced feature set (DHCP, Static routing, NAT and Firewall) than an Organisation level Edge Gateway. We will cover vApp networks in another post.</p>
<p>Once you have decided on your network topology you can ask your service provider to deploy the Edge Gateway for you. For this article I will use a simple topology with 2 Internal networks and access to a single external network.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/diagram1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-892" alt="diagram" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/diagram1.png" width="522" height="376" /></a></p>
<p>So now my provider has deployed an Edge Gateway, they also need to sub-allocate IP ranges to the gateway for me to use for my services. These are the public IP addresses I will use for NAT rules and VPN connections. The Gateway will have at least 1 IP address already on the External Network, and that IP can be allocated for use in NAT rules or VPN connections. My provider has also allocated 2 extra public IP addresses for me to use. These will be allocated to me and cannot be used by any other device on the External network. In my case the provider has attached my Edge Gateway to a shared IP range so other customers may have IPs on the same Public IP space. The other option would have been to request a dedicated subnet.</p>
<p>I am going to configure my network as follows:</p>
<p>vApp1 has a single Windows server which will offer FTP services publicly. I want to be able to access it via VPN from my other vCloud platform (details in Part 2!). I will use DHCP to allocate the Server an IP address.<br />
vApp2 has 2 CentOS servers running apache. I want to use the load balancer feature to allow http access publicly (details in Part 2!) and also to allow SSH administration from the Internet. I will use IP pool address assignment for this vApp.</p>
<h3>Configuring the Org VDC Networks</h3>
<p>To create an Org VDC Network go to the Administration tab in your vCloud Director Organisation and choose the VDC you wish to create the network in. Click on the Org VDC Networks tab then the plus sign:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgvdc1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-862" alt="addorgvdc1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgvdc1.png" width="419" height="209" /></a></p>
<p>I want to create a routed network so I&#8217;ve selected that option and also selected my Edge Gateway:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgvdc2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-863" alt="addorgvdc2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgvdc2.png" width="427" height="372" /></a></p>
<p>Click next and you can then define the internal network. For my 2 internal network I have set the following settings:</p>
<p>For the Windows FTP server network:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet6.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-858" alt="Orgvdcnet6" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet6.png" width="420" height="351" /></a></p>
<p>For the CentOS apache servers network:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet5.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-861" alt="Orgvdcnet5" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet5.png" width="416" height="346" /></a></p>
<p>The DNS servers could be DNS servers provided by your vCloud service provider, public (open) DNS servers, or servers internal to your VDC &#8211; It will depend on your deployment. For testing I used StratoGen&#8217;s DNS servers.</p>
<p>When the Org VDC networks have finished deploying (in the background this means configuring one of the unused NICs on the Edge Gateway and configuring a new port-group in vSphere) they will appear in the OrgVDC Networks pane:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet4.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-864" alt="Orgvdcnet4" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet4.png" width="574" height="105" /></a></p>
<p>You can also see that the Edge Gateway has 3 used NICs, 1 External Network and 2 Organisation VDC Networks confiured:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet3.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-865" alt="Orgvdcnet3" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet3.png" width="576" height="92" /></a></p>
<p>Once both Org VDC networks have been created they can be made avilable to any vApps deployed in the VDC. In the vApp go to the Networking tab and lick the plus sign. We want to add an Organisation VDC network:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgnet.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-869" alt="addorgnet" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgnet.png" width="443" height="369" /></a></p>
<p>Select the Org VDC network you want to add to the vApp:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgnet2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-870" alt="addorgnet2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/addorgnet2.png" width="441" height="367" /></a><br />
Now the Virtual machines can be attached to the networks. For the Windows VM I am using DHCP so will configure the NIC on the VM as follows:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/vmnic1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-871" alt="vmnic1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/vmnic1.png" width="571" height="152" /></a></p>
<p>For the CentOS servers I am going to use IP Pool assignment. This is a vCloud Director feature that is similar to DHCP but has few important differences. When we created the Org VDC network we specified a range of IPs for our pool. You either assign IP addresses automatically as per the screenshot or specify addresses manually.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/vmnic2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-872" alt="vmnic2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/vmnic2.png" width="557" height="144" /></a></p>
<p>Once an address has been assigned it will be unavailable for other VMs on the same network. There are a couple of prerequisites for IP Pool address assignments: Guest Customization must be enabled which in turn requires that VMware tools are installed on the Virtual Machine. If you are running a Guest OS that doesn’t support VMware tools then consider using DHCP for automatic address assignment. The assigned IP address will be applied to the VM when it is powered on. You can check assigned IPs by right clicking on the Org VDC Network and choosing IP Allocation:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet7.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-873" alt="Orgvdcnet7" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet7-300x177.png" width="300" height="177" /></a></p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet8.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-874" alt="Orgvdcnet8" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/Orgvdcnet8-300x117.png" width="300" height="117" /></a></p>
<h3>Configuring DHCP</h3>
<p>We want to assign a DHCP address to our Windows server so we need to configure this first on our edge gateway. Right click on the edge Gateway and choose Edge Gateway Services. The DHCP tab is the leftmost tab and appears first. Currently there is no configuration there as you can see:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-875" alt="dhcp" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp.png" width="424" height="320" /></a></p>
<p>Click on add and enter an interface to apply the DHCP scope on – we want it on our WindowsFTPNet interface. I’ve chosen a range that doesn’t overlap with the IP Pool configured on the WindowsFTPNet Org VDC network. I’ve also decided to keep the lease times at the default.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp3.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-877" alt="dhcp3" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp3-300x207.png" width="300" height="207" /></a></p>
<p>Once that’s done click OK then tick the Enable box.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-876" alt="dhcp2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp2.png" width="421" height="319" /></a></p>
<p>Click OK and the Edge Gateway will initialise the DHCP server. I’m now going to power on my Windows vApp. Once this has powered on we can see that the network adapter has picked up the first IP in the DHCP scope. It has also picked up the correct default gateway and the DNS servers (trust me on that one!) I configured on my Org VDC network.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp4.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-878" alt="dhcp4" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dhcp4.png" width="299" height="351" /></a></p>
<p>So DHCP is working correctly but we don’t have Internet access as yet as we haven’t defined any NAT rules or firewall rules. I’m going to keep things simple by allowing outbound access to the Internet from all my VMs, but you may well want to be more stringent in your security configuration.</p>
<p>Before adding NAT rules I’m going to make sure my CentOS VMs have also been assigned the correct IP configuration. As these VMs were deployed from my provider’s catalog, they were both preinstalled with VMware tools and Guest customization was enabled already. If you were deploying a VM from scratch you would need to install these manually which you can do from the vCloud Director interface. The installation is automatic in Windows, but for Linux VMs it only mounts the VMware tools installer – you must complete the installation manually from the command line. You will need Perl installed, and for CentOS/RedHat Linux once the Installer is mounted run the following:</p>
<p>1. mkdir /cdrom<br />
2. mount /dev/cdrom /cdrom<br />
3. cd /tmp<br />
4. tar -xvf /cdrom/VMwareTools (tab to auto-complete)<br />
5. cd vmware (tab to auto-complete)<br />
6.  ./vmware-install.pl<br />
7.  umount /cdrom</p>
<p>Looking at the vCloud Director Interface it looks like it has assigned IPs successfully to the VMs:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/centosip1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-879" alt="centosip1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/centosip1.png" width="591" height="133" /></a></p>
<p>If we check one of the VMs from the console we can see this is the case by running ifconfig:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/centosip2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-880" alt="centosip2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/centosip2.png" width="452" height="195" /></a></p>
<p>So all our VMs have IPs assigned correctly in the networks they are attached to. Next we want to give them all the ability to access the Internet. This means configuring two further parts of the Edge Gateway: NAT rules and Firewall rules.</p>
<h3>Configuring NAT and Firewall rules</h3>
<p>In vCloud Director 5.1 you have more granular control over the NAT configuration in the Edge Gateway. Specifically you can configure Source NAT (SNAT) rules, which control traffic leaving the Edge Gateway’s external interface(s), and Destination NAT (DNAT) rules, which control traffic arriving at the Edge Gateway’s external interface(s).</p>
<h4>Adding SNAT rules</h4>
<p>To allow our VMs to access the outside world we are going to have to add a NAT rule for each internal Org VDC network. This will translate internal private IP addresses to a public address or addresses. For outbound access there’s no particular reason why you can’t use the same external IP address for all your internal networks. Depending on your configuration you may want to use a public IP for each internal network or even for individual VMs on that network. I will be using a single IP for all networks. Currently we have no NAT rules configured:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-881" alt="NAT1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT1.png" width="386" height="292" /></a></p>
<p>To create the SNAT rule we go to the NAT tab in Edge Gateway Services and click add. The SNAT rule is to be applied on the external interface that we will be using. I only have one configured but if you have multiple external networks you would apply the rule on the interface you want the traffic to egress from. The original (Internal) source IP/range is the Internal Org VDC range and the Translated (External) source IP/Range is the public IP or Ip range on the external interface you want your internal traffic to appear as on the Internet. Make sure the enabled box is ticked!</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-882" alt="NAT2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT2-300x192.png" width="300" height="192" /></a></p>
<p>Click OK and the rule will be added to the NAT rule table. As you can see I have added an additional rule for the CentOsOrgnetwork as well applied on the external interface and using the same public IP.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT3.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-883" alt="NAT3" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/NAT3.png" width="552" height="158" /></a></p>
<p>There is one thing preventing the VMs from accessing the outside world now – The Firewall!</p>
<h4>Configuring the Firewall</h4>
<p>By default the Edge Gateway denies all traffic and this is how you should always configure a production firewall. For testing purposes it does allow you to set the default action to allow, but please remember to change this before putting it into production!</p>
<p>The Firewall on the Edge Gateway offers granular options for allowing access to services on your vCloud infrastructure. We want to allow our internal Org VDC networks access to the Internet, so we will add a rule for each Org VDC network.<br />
In Edge Gateway services go to Firewall and click add. First give the rule a descriptive name. The source will be the internal network range. Source ports are set to any as we want all traffic to be allowed outbound. The destination is set to external – you could set this to any but external is more specific as we have multiple internal networks. Destination port and protocol are both set to any to allow my VMs full outbound access. Make sure the enabled box is ticked, then click OK.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-884" alt="firewall1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall1-256x300.png" width="256" height="300" /></a><br />
In a production environment and depending on what services you are running you will most probably want to be a lot stricter with your outbound traffic.<br />
Once we have clicked OK and the Edge Gateway has finished updating we can see our Windows box can get to the outside world.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-885" alt="firewall2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall2.png" width="451" height="166" /></a></p>
<p>As you can see from the screenshot below I have added another similar rule for the CentOS network.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall3.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-886" alt="firewall3" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall3.png" width="561" height="188" /></a></p>
<p>So all our VMs can access the Internet, but if we want to publish services on our VMs that can be accessed from the Internet we will need to add some extra rules. We need Destination NAT (DNAT) rules to forward traffic from our assigned Public IPs to our internal networks and also firewall rules to allow the traffic to pass.</p>
<p>First of all I want to allow Remote Desktop access to my windows VM and SSH access to my CentOS VMS.</p>
<h4>Adding DNAT rules</h4>
<p>As with SNAT rules, DNAT rules are applied on the external interface you are using for the NAT translation. We only have one external interface so that makes our choice pretty easy. I am going to add a rule that forwards traffic destined for tcp port 3389 (Remote Desktop Protocol) on the public IP address to port 3389 on the private IP address of the Windows server.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dnat1.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-887" alt="dnat1" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dnat1-300x283.png" width="300" height="283" /></a></p>
<p>Click OK. We now need to add a firewall rule to allow the traffic that has been forwarded to tcp port 3389 (please note the destination is the public IP &#8211; not the prviate IP).</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall4.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-888" alt="firewall4" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall4-259x300.png" width="259" height="300" /></a></p>
<p>In a production environment you would probably lock the source IP down to your location. Once this rule has been applied I can use RDP to manage my Windows server.<br />
It’s important to note that in the latest version of vCloud Director Firewall rules use match on original addresses i.e. the public IP that you specified in the corresponding DNAT rule rather than the internal address.<br />
As you can see from the following screenshot I have added DNAT rules for the CentOS servers to forward SSH traffic. For the second server I have changed the original port – this allows me to manage both servers on a single IP address.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dnat2.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-889" alt="dnat2" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/dnat2.png" width="509" height="182" /></a></p>
<p>I’ve also added the necessary firewall rules to the edge Gateway:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall5.png" rel="lightbox[796]"><img class="alignnone size-medium wp-image-890" alt="firewall5" src="http://www.stratogen.net/blog/wp-content/uploads/2013/05/firewall5.png" width="496" height="229" /></a></p>
<p>It&#8217;s important to note that firewall rules are applied in order (top to bottom), and if you need to alter that order you can do this easily by dragging and dropping the individual rules to where you want them in the list.</p>
<p>So now we have our 2 vApps accessible from the Internet for management purposes, and they are also able to access the outside world. In the next part of this blog I will look at setting up the Edge Gateway load balancer, and configuring VPNs as well as the accompanying firewall configuration.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/vcloud-director-edge-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter Server Disconnecting From vCloud Director</title>
		<link>http://www.stratogen.net/blog/vcenter-server-disconnecting-from-vcloud-director/</link>
		<comments>http://www.stratogen.net/blog/vcenter-server-disconnecting-from-vcloud-director/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 07:31:44 +0000</pubDate>
		<dc:creator>Simon Greaves</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[Technical How To]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=817</guid>
		<description><![CDATA[Following on from my post on vCloud Director constantly syncing inventory I wanted to address a second point that could cause the underlying connection issue. In the current revision of vCloud Director (5.1 and 5.1.1) there is an issue that may present itself as vCD disconnecting from vCenter at random times coupled with connection alerts <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/vcenter-server-disconnecting-from-vcloud-director/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Following on from my post on vCloud Director <a title="Constantly Syncing Inventory" href="http://www.stratogen.net/blog/constantly-syncing-inventory/">constantly syncing inventory</a> I wanted to address a second point that could cause the underlying connection issue.</p>
<p>In the current revision of vCloud Director (5.1 and 5.1.1) there is an issue that may present itself as vCD disconnecting from vCenter at random times coupled with connection alerts from vCloud Director such as the email alert shown below.</p>
<address>vCloud Director is trying to reconnect to the vCenter Server Server &#8220;<em>vcenter.domain.com</em>&#8220;.<br />
When vCloud Director reconnects, it will send another email alert.</address>
<p>Further information of the error can be seen in the log /opt/vmware/vcloud-director/logs/vcloud-container-info.log.<br />
Look for the following error.  <code>ORA-01013: user requested cancel of current operation.</code><br />
You can do this as follows.<br />
<code># less /opt/vmware/vcloud-director/logs/vcloud-container-info.log</code><br />
Then press / and type in <em>user requested cancel of current operation</em> to go to the location in the log where this entry is recorded.</p>
<p>As detailed in my previous post you can change the connection time to get around it to allow vCD time to reconnect to the vCenter Server. However there is another work around available that involves modifying the vCloud Director SQL database to remove some null entries that keep on creeping up in value and trigger this disconnect in the first place.</p>
<p>To do this I suggest you stop your vCloud Director cells first and make sure to backup the SQL server database. These instructions are for Oracle.</p>
<ol>
<ol>
<li>Quiesce the services of the cells using the <em>cell-management-tool</em> and then stop the services with service <em>vmware-vcd</em> stop as described <a title="Constantly Syncing Inventory" href="http://www.stratogen.net/blog/constantly-syncing-inventory/">here.</a></li>
<li><span style="line-height: 13px;">Backup the Oracle server.</span></li>
<li>Open an SSH connection to the Oracle server and type sqlplus then provide the vcloud username and password.  (Hint username is vcloud)</li>
<li>Run the following commands at the <code>SQL&gt;</code> prompt.</li>
</ol>
</ol>
<p><code>SQL&gt; select count(*) from task_inv where (status = 2 OR status = 3) AND completion_date is null;</code></p>
<p>This will return a numerical value, probably in the tens or hundreds of thousands. What we need to do is to run a series of commands to reduce this number down. It is this number that is causing vCloud Director to time out during the synchronization process.<br />
Run these commands to fix this.</p>
<p>A. Get list of all vc_ids in the setup.<br />
<code> SQL&gt; select distinct vc_id from task_inv;</code></p>
<p>B. For each vCenter in the setup.<br />
1. Get max managed object value for that vCenter. That is the <strong>vc_id</strong> obtained from the above query.<br />
<code> SQL&gt; select substr(moref, 6) from (select * from task_inv where vc_id = <strong>vc_id</strong> order by to_number(substr(moref, 6)) desc) where rownum = 1;</code></p>
<p>This will give result_1. Next we need to do some basic maths. We will keep &#8216;top&#8217; 1000 entries per VC and will delete rest of them.</p>
<p>2. result_1 minus 1000 = <strong>result_2</strong></p>
<p>3. Using the above <strong>result_2</strong>, run the following.</p>
<p><code> SQL&gt; delete from task_inv where (status = 2 OR status = 3) AND completion_date is null AND vc_id = <strong>vc_id</strong> AND to_number(substr(moref, 6)) &lt; <strong>result_2</strong>;</code></p>
<p>4. Run a <code>commit;</code> command.</p>
<p>5. Finally run the original query to see if the number has gone down.<br />
<code> SQL&gt; select count(*) from task_inv where (status = 2 OR status = 3) AND completion_date is null;</code></p>
<p>Don&#8217;t forget to restart the cell services on vCD.  <code>service vmware-vmd start</code> and tail the cell.log to watch the progress of restarting the cell service. <code>/opt/vmware/vcloud director/logs/cell.log -f</code></p>
<p>It will continue to creep up until VMware fix this in an update currently due as release version 5.1.2 at the end of April 2013.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/vcenter-server-disconnecting-from-vcloud-director/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Constantly Syncing Inventory</title>
		<link>http://www.stratogen.net/blog/constantly-syncing-inventory/</link>
		<comments>http://www.stratogen.net/blog/constantly-syncing-inventory/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 17:17:15 +0000</pubDate>
		<dc:creator>Simon Greaves</dc:creator>
				<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vCloud]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=725</guid>
		<description><![CDATA[When performing an upgrade of vCloud Director 1.5 to 5.1 we ran into this issue to do with synchronisation. Constantly Syncing Inventory A vCloud Director cell may fail to finish the synchronisation with a vCenter Server.  This is an issue where vCloud Director is constantly stating &#8216;syncing inventory&#8217; in the vCenters section of the system&#62;Manage &#38; <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/constantly-syncing-inventory/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>When performing an upgrade of vCloud Director 1.5 to 5.1 we ran into this issue to do with synchronisation.</p>
<h2>Constantly Syncing Inventory</h2>
<p>A vCloud Director cell may fail to finish the synchronisation with a vCenter Server.  This is an issue where vCloud Director is constantly stating &#8216;syncing inventory&#8217; in the vCenters section of the system&gt;Manage &amp; Monitor page.<br />
<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Syncing-Inventory-2.png" rel="lightbox[725]"><img class="alignnone size-large wp-image-739" alt="Syncing Inventory" src="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Syncing-Inventory-2-1024x338.png" width="600" height="198" /><br />
</a>You may find that a simple restart of the affected cell services may fix the issue.  If you are running a multi-cell environment you can do this by quiescing the currently active cell and then stopping and restarting the vCD services.</p>
<p>First disable the cell and pass the active jobs to the other cells.</p>
<p>Display the current state of the cell to view any active jobs.<br />
<code>#  /opt/vmware/vcloud-director/bin/cell-management-tool -u &lt;USERNAME&gt; cell --status</code></p>
<p>Then Quiesce the active jobs.<br />
<code>#  /opt/vmware/vcloud-director/bin/cell-management-tool -u &lt;USERNAME&gt; cell --quiesce true</code></p>
<p>Confirm the cell isn&#8217;t processing any active jobs.<br />
<code>#  /opt/vmware/vcloud-director/bin/cell-management-tool -u &lt;USERNAME&gt; cell --status</code></p>
<p>Now shut the cell down to prevent any other jobs from becoming active on the cell.<br />
<code>#  /opt/vmware/vcloud-director/bin/cell-management-tool -u &lt;USERNAME&gt; cell --shutdown</code></p>
<p>Then restart the services.<br />
<code># service vmware-vcd restart</code></p>
<p>If you are not running multiple cells you can just restart the service but it will cause a loss of service during the restart.  A typical restart takes around 2-5 minutes.  You can monitor the progess of the restart by tailing the cell.log file.<br />
<code># tail -f /opt/vmware/vcloud-director/logs/cell.log</code></p>
<p>Once it say&#8217;s 100%, it is done.</p>
<p>If restarting the services doesn&#8217;t help try rebooting the cell.  Use the same commands as above to pass active tasks over to the other cells first before rebooting.<br />
When the cell restarts check and see if the cell will reconnect and finish the sync.  If not check the log /opt/vmware/vcloud-director/logs/vcloud-container-info.log.  Look for the following error.  <code>ORA-01013: user requested cancel of current operation.</code></p>
<p>You can do this as follows.<br />
<code># less /opt/vmware/vcloud-director/logs/vcloud-container-info.log</code></p>
<p>Then press / and type in &#8220;<em>user requested cancel of current operation</em>&#8221; to go to the location in the log where this entry is recorded.</p>
<p>The reason for ORA 1013: error can be:</p>
<ul>
<li>caused by the user &#8211; actually canceling the operation</li>
<li>caused by a response to congruent errors</li>
<li>the result of timeouts</li>
</ul>
<p>When  vCloud Director sync is taking place, after processing the updates vCD performs database insertions.  Sometimes while persisting these updates vCloud Director will stop the sync and restart it, hence the constant sync.</p>
<p>Here is how to get around the issue.<br />
1. Take a snapshot of the cell.<br />
2. Quiesce the services of the cells using the <em>cell-management-tool</em> and then stop the services with service <em>vmware-vcd</em> stop as described above.<br />
<em id="__mceDel"><em id="__mceDel">3. Open vi and add this line to /opt/vmware/vcloud-director/etc/global.properties </em></em><em id="__mceDel"><em id="__mceDel"><br />
<em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><code>database.defaultQueryTimeout=300</code></em></em></em></em></em></em></p>
<p># vi /<em id="__mceDel">opt/vmware/vcloud-director/etc/global.properties</em></p>
<p>4. Start the vCloud Director services again.<br />
<code># service vmware-vcd start</code></p>
<p>If you do the above for all cells then the setting should be applied.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/constantly-syncing-inventory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hidden VMware Snapshots</title>
		<link>http://www.stratogen.net/blog/hidden-vmware-snapshots/</link>
		<comments>http://www.stratogen.net/blog/hidden-vmware-snapshots/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 16:41:09 +0000</pubDate>
		<dc:creator>Simon Greaves</dc:creator>
				<category><![CDATA[Technical How To]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[Snapshots]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=499</guid>
		<description><![CDATA[You may find from time to time that a snapshot removal fails and that the delete all option is not working.  What you are left with is a virtual machine running off of the snapshot disks whereas vCenter may think that the virtual machine has no snapshots. What does this mean and how can I <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/hidden-vmware-snapshots/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>You may find from time to time that a snapshot removal fails and that the delete all option is not working.  What you are left with is a virtual machine running off of the snapshot disks whereas vCenter may think that the virtual machine has no snapshots.<br />
What does this mean and how can I avoid it?  Well first let me explain how the VMware snapshot process works and what should happen.</p>
<h3>How Snapshots Work</h3>
<p>A snapshot of a virtual machine is a point in time image of the current state and data.  The state is the virtual machines current power state, and the data is made up of all the files that make up the virtual machine including memory, disk, network cards, USB devices and so on.</p>
<p>A snapshot can be created simply through the use of the vSphere Client and the vSphere Web Client by right clicking on a virtual machine and selecting Snapshot&gt;Create Snapshot.  You are then presented with the following options.</p>
<p><strong>Name</strong> &#8211; Name for the snapshot.<br />
<strong>Description</strong> &#8211; Description of the snapshot.<br />
<strong>Snapshot the virtual machine&#8217;s memory</strong> &#8211; All the memory in active use on the virtual machine is written to a memory dump file (vmsn file) that is included in the snapshot.<br />
<strong>Quiesce guest file system (Needs VMware Tools installed)</strong> &#8211; The quiescing process tells the operating system to write transactions out of the memory buffers and in-memory cache to the disk so that the virtual machine can have a consistent state that can be recovered from.<br />
<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Take-Virtual-Machine-Snapshot-1.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-501" alt="Virtual Machine Snapshot" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Take-Virtual-Machine-Snapshot-1.jpg" width="326" height="272" /></a></p>
<p>When the snapshot is created an additional disk is added to the virtual machine called a child disk or a delta disk which is labelled as <code>&lt;vm-name&gt;-&lt;number&gt;.vmdk</code> and  <code>&lt;vm-name&gt;-&lt;number&gt;-delta.vmdk</code>.<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Datastore-Browser-Local_Storage_02.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-520" alt="Virtual Machine Files" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Datastore-Browser-Local_Storage_02.jpg" width="612" height="214" /><br />
</a>The <code>&lt;vm-name&gt;-&lt;number&gt;-delta.vmdk</code> file is a hidden file that will not show up in the datastore browser. You can however view this by connecting to the ESXi host either through SSH or through the vMA (vSphere Management Assistant). Here is an example of the same datastore location through a remote SSH connection.<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/192.168.2.10-PuTTY-1.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-530" alt="Remote SSH connection to host" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/192.168.2.10-PuTTY-1.jpg" width="731" height="284" /><br />
</a>Snapshot child disks are sparse disks that use a copy-on-write mechanism which means that only changed data is written to the child disks which allows for space saving by not replicating existing data.  The data is only written to the disk following a write.  This means that the child delta disks can save quite a bit of space.</p>
<p>In the illustration below the hashed blocks represent changed data blocks and the white blocks represent empty space due to the sparse layout of the disks.<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Copy-on-Write-Disk-Layout.png" rel="lightbox[499]"><img class="alignnone  wp-image-683" alt="Copy on Write Disk Layout" src="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Copy-on-Write-Disk-Layout.png" width="491" height="306" /><br />
</a>Some additional files are created with the snapshot; the virtual machine snapshot database <code>&lt;vm-name&gt;.vmsd</code> and the virtual machine memory state file <code>&lt;vm-name&gt;.vmsn</code>.  The virtual machine snapshot database name file <code>&lt;vm-name&gt;.vmsd</code> contains the snapshot information and is where the snapshot manager gets its information from. It is a text readable file that can prove useful when trying to troubleshoot snapshot issues.</p>
<p>Here is an output of the snapshot .vmsd file associated with the example virtual machine.</p>
<p><code>.encoding = "UTF-8"<br />
snapshot.lastUID = "1"<br />
snapshot.current = "1"<br />
snapshot0.uid = "1"<br />
snapshot0.filename = "Demo-VM01-Snapshot1.vmsn"<br />
snapshot0.displayName = "Demo-Snapshot01"<br />
snapshot0.description = "Example Snapshot"<br />
snapshot0.type = "1"<br />
snapshot0.createTimeHigh = "316405"<br />
snapshot0.createTimeLow = "-1275531695"<br />
snapshot0.numDisks = "1"<br />
snapshot0.disk0.fileName = "Demo-VM01.vmdk"<br />
snapshot0.disk0.node = "scsi0:0"<br />
snapshot.numSnapshots = "1"</code></p>
<p>The snapshot options are controlled through the VMware API using the following options.</p>
<p><strong>CreateSnapshot </strong>- Creates the snapshot. This is labelled as &#8216;<em>Take Snapshot</em>&#8216; in the vSphere Client.<br />
<strong>RemoveSnapshot  </strong>- Remove the snapshot and delete the associated <code>&lt;vm-name&gt;-&lt;number&gt;.vmdk and &lt;vm-name&gt;-&lt;number&gt;-delta.vmdk</code> disks.  This is labelled as &#8216;<em>Delete&#8217;</em> in Snapshot Manager in the vSphere Client.<br />
<strong>RevertToSnapshot</strong> &#8211; This option takes the running state of the virtual machine back to the state of the last snapshot and changes made since are lost.  You can save the current state of the virtual machine by taking another snapshot should you need to revert back to the currently active state of the virtual machine.  This is labelled as &#8216;<em>Go to</em>&#8216; in Snapshot Manager in the vSphere Client.<br />
<strong>RemoveAllSnapshots</strong> &#8211; This option removes all the snapshots by writing the active state of the child disk into the parent disk.  Pre-vSphere 4 Update 2 f there are multiple snapshots and thus multiple child disks, each child disk will write it&#8217;s contents into its parent disk all the way up the chain until the child disks have written all their changes into their parent disks.  At this point all the child disks are deleted.</p>
<p>If you think about what that means for a second, if you have lots of large snapshots then you will also need to ensure there is enough free space to accommodate these snapshots during the RemovalAllSnapshot process.</p>
<p>As an example lets say that your virtual machine has 4 snapshots on it which are left on there whilst carrying out some work on the server and these snapshots grow in size as follows.</p>
<p>Original disk &#8211; 100GB<br />
Snapshot one &#8211; 10GB<br />
Snapshot two &#8211; 20GB<br />
Snapshot three &#8211; 10GB<br />
Snapshot four &#8211; 20GB</p>
<p>When the RemoveAllSnapshots API is called the four snapshots would roll up, so four would roll into three, then three into two, then two into one and finally one into the original disk.  What was originally a 100GB virtual machine disk is suddenly a machine with a potential size requirement of 240GB!</p>
<p>Thankfully that is no longer the case with vSphere 4 Update 2 version or later.  The changes made were that the snapshots would roll up starting with the closest disk, so snapshot one would roll into the original disk, then two into the original disk, then three and finally four.  This means that not only is space saved during the RemoveAllSnapshots but also data is only written once rather than repeatedly during each snapshot roll up.<br />
This is labelled as &#8216;<em>Delete All</em>&#8216; in Snapshot Manager in the vSphere Client.<br />
<strong>Consolidate</strong> &#8211; The consolidate option was added in vSphere 5 and is there to allow you to write back the child disks that may have become disassociated from the Snapshot Manager due to a failed RemoveSnapshot or RemoveAllSnapshots command.  This failure can be caused by a time out during the write back of the child disks to the parent disks.</p>
<p>A virtual machine may show up in the vSphere Client as requiring consolidation with a <em>Needs Consolidation</em> alert on the summary tab of the virtual machine.<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/VCD-VCENTER-vSphere-Client.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-537" alt="Virtual machine disk consolidation needed" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/VCD-VCENTER-vSphere-Client.jpg" width="726" height="84" /><br />
</a>There is also a <em>Needs Consolidation</em> column in the virtual machines view from any higher level in vCenter, such as the cluster level.<br />
Click the image for a larger view.<br />
<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Needs-Consolidation-Column.png" rel="lightbox[499]"><img class="alignnone size-full wp-image-662" alt="Needs Consolidation Column" src="http://www.stratogen.net/blog/wp-content/uploads/2013/02/Needs-Consolidation-Column.png" width="1091" height="95" /></a></p>
<h3>Orphaned Snapshots</h3>
<p>What may happen is that the Snapshot Manager may think that the consolidation process is complete and so you do not get an error related to the virtual machine requiring consolidation in the vSphere Client but when you check the .vmx file or select the option to edit settings and view the location of the virtual machine disk files you may see that the disk is actually called &lt;vm-name&gt;-&lt;number&gt;.vmdk.  If this is the case look in the datastore browser and you will see the files <code>&lt;vm-name&gt;-&lt;number&gt;.vmdk.<br />
</code><code><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Datastore-Browser-Local_Storage_02.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-520" alt="Virtual Machine Files" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/Datastore-Browser-Local_Storage_02.jpg" width="612" height="214" /><br />
</a></code>You can also open an SSH connection to the host  to view the  <code>&lt;vm-name&gt;-&lt;number&gt;.vmdk </code> and <code>&lt;vm-name&gt;-&lt;number&gt;-delta.vmdk</code> files by listing out the contents of the directory location of the virtual machine.  You can do this with the following commands.<br />
<em id="__mceDel"><em id="__mceDel"><code>#cd /vmfs/volumes/&lt;datastorename&gt;/&lt;VirtualMachineName&gt;<br />
</code></em></em><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><code>#ls -lah<br />
</code></em></em></em><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><em id="__mceDel"><code><a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/192.168.2.10-PuTTY-1.jpg" rel="lightbox[499]"><img class="alignnone size-full wp-image-530" alt="Remote SSH connection to host" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/192.168.2.10-PuTTY-1.jpg" width="731" height="284" /></a></code></em></em></em></em></p>
<p>Here you will see all the disk files including the hidden flat disks.  <code>&lt;vm-name&gt;-&lt;number&gt;-flat.vmdk</code>. The flat disks are the actual virtual machine disk files, the &#8216;plain&#8217; .vmdk files are a configuration file pointing to the flat disk file.<br />
If you see that the VM is running from a snapshot delta you have several options.</p>
<p><strong>Option 1 &#8211; Clone the virtual machine</strong>.  A nice simple fix.  To ensure a consistent state of the virtual machine you will need to shut the machine down first before starting the clone, otherwise the cloned VM will be in the state the the original virtual machine was in during the initial snapshot taken at the start of the clone process.  Please note this snapshot state is a crash consistent snapshot; one without the option to quiesce the disk or snapshot the memory so any items on the virtual machine not committed to disk will be lost.<br />
<strong>Option 2</strong> &#8211; <strong>Take and delete a snapshot in the vSphere Client</strong>.  What will happen with this option is that the snapshot removal will also perform the consolidate action and rewrite the additional delta child disks back to the original parent disk.  Should you try this option and the snapshot removal doesn&#8217;t fix it either try shutting the virtual machine down first or selecting the option to Quiesce guest file system whilst taking the snapshot.<br />
<strong>Option 3 - </strong><strong>Take and delete a snapshot using an SSH connection to the host.</strong>  You may find that the snapshot removal still doesn&#8217;t work using the vSphere Client.  If so try the same process from the command line.  Use these steps as a guide.</p>
<p><em><strong>Step 1 &#8211; List out the VMID of the virtual machines on the host</strong></em><br />
<code># vim-cmd vmsvc/getallvms</code></p>
<p>Alternatively use grep to list out just the virtual machine name you are looking for.  In my example I use<br />
<code># vim-cmd vmsvc/getallvms | grep Demo*</code></p>
<p>Here is the output.<br />
<code>22     Demo-VM01    [EQL03-SHARED05] Demo-VM01/Demo-VM01.vmx<br />
windows7Server64Guest       vmx-08</code></p>
<p><em><strong>Step 2 &#8211; Verify if the snapshot exists</strong></em><br />
<code># vim-cmd vmsvc/snapshot.get [VMID]</code></p>
<p>Here is the output.<br />
<code># vim-cmd vmsvc/snapshot.get 22<br />
Get Snapshot:<br />
|-ROOT<br />
--Snapshot Name : Demo-Snapshot01<br />
--Snapshot Id : 1<br />
--Snapshot Desciption :<br />
--Snapshot Created On : 2/1/2013 12:11:49<br />
--Snapshot State : powered off</code></p>
<p><em><strong>Step 3 &#8211; Create a new snapshot</strong></em><br />
<code># vim-cmd vmsvc/snapshot.create [VmId] [snapshotName] [snapshotDescription] [includeMemory] [quiesced]</code></p>
<p>Here is the output.<br />
<code># vim-cmd vmsvc/snapshot.create 22 Demo-Snapshot02 "Snapshot Demo 2 Two" 0 0<br />
Create Snapshot:</code></p>
<p><strong><em>Step 4 &#8211; Remove all the snapshots  (Labelled as Delete all in Snapshot Manager)</em></strong><br />
<code># vim-cmd vmsvc/snapshot.removeall [VMID]</code></p>
<p>Here is the output.<br />
<code># vim-cmd vmsvc/snapshot.removeall 22<br />
Remove All Snapshots:</code></p>
<p>Run a directory list command <code>ls -lah</code> to confirm that the snapshots have all been removed.</p>
<p>You can also take and remove snapshots using the vSphere CLI or vSphere Management Assistant  (vMA) and PowerCLI.  The vSphere CLI and vMA uses the same commands as above, you just need to specify the remote server that you want to perform the checks against.</p>
<p>For example run this to take a snapshot of a virtual machine running on an ESXi host through vCenter Server.<br />
<code>&gt; vmware-cmd -h &lt;vCenter Server&gt; -U &lt;user_name&gt; -P &lt;password&gt; createsnapshot &lt;name&gt; &lt;description&gt; quiesce [0|1] memory [0|1]</code></p>
<p>PowerCLI can use the following commands to take a snapshot.<br />
&gt; New-Snapshot [-Name] &lt;Snapshot_Name&gt; [-Description &lt;Description_Of_Snapshot&gt;] [-Memory] [-Quiesce] [-VM] &lt;Virtual_Machine_Name&gt; [-Server &lt;vCenter_Server&gt;]</p>
<h3>Checking for virtual machine disk locks</h3>
<p>Should any <code>&lt;vm-name&gt;-&lt;number&gt;.vmdk</code> delta disks remain the next step is to see if any virtual machine disks have locks on them.  For this you can use the vmkfstools command set and have a look at the current mode of the relevant .vmdk file.<br />
A virtual machine disk can be in one of four modes.</p>
<p><code>mode 0</code> = no lock.<br />
<code>mode 1</code> = is an exclusive lock.  This will be the case if the virtual machine is powered on and in use.  A powered on virtual machine will also have an up to date modification date on the .vmdk file.<br />
<code>mode 2</code> = is a read-only lock.  This will be the case of the <code>&lt;vm-name&gt;-flat.vmdk</code>  of a running virtual machine with snapshots.<br />
<code>mode 3</code> = is a multi-writer lock.  This will be the mode of the vmdk if it is used for Microsoft clusters disks or fault tolerance virtual machines.</p>
<p>Ensure you are in the relevant virtual machine directory and use the following actions to perform these checks.<br />
<em><br />
<strong>Step 1 &#8211; Check the mode state of the virtual machine flat disk file  (<code>&lt;vm-name&gt;-flat.vmdk</code>)</strong><br />
<code></code></em> # vmkfstools -D &lt;vm-name&gt;-&lt;number&gt;.vmdk</p>
<p>Here is the output of the demo VM with a snapshot in place.<br />
<code># vmkfstools -D Demo-VM01-flat.vmdk</code></p>
<p>Lock [type 10c00001 offset 159152128 v 123, hb offset 3244032<br />
gen 25, <strong>mode 2</strong>, owner 00000000-00000000-0000-000000000000 mtime 1190286 nHld 1 nOvf 0]<br />
RO Owner[0] HB Offset 3244032 50b60d57-e9cb48dc-9d82-984be10fc230<br />
Addr &lt;4, 346, 95&gt;, gen 106, links 1, type reg, flags 0, uid 0, gid 0, mode 600<br />
len 42949672960, nb 0 tbz 0, cow 0, newSinceEpoch 0, zla 3, bs 1048576</p>
<p>As you can see the base disk is in read only mode because all changes are currently being written to the snapshot delta disk.<br />
If I run the same command on the snapshot delta disk I get the following.</p>
<p><code># vmkfstools -D Demo-VM01-000001-delta.vmdk</code></p>
<p>Lock [type 10c00001 offset 262713344 v 152, hb offset 3244032<br />
gen 25, <strong>mode 1</strong>, <em>owner</em> 50b60d57-e9cb48dc-9d82-984be10fc230 mtime 1190281 nHld 0 nOvf 0]<br />
Addr &lt;4, 598, 134&gt;, gen 147, links 1, type reg, flags 0, uid 0, gid 0, mode 600<br />
len 86016, nb 1 tbz 0, cow 0, newSinceEpoch 0, zla 1, bs 1048576</p>
<p>This disk is in exclusive lock mode because the virtual machine is switched on and is being used to write the changes to.   You can see which host has the lock on this virtual machine disk by looking at the MAC address given after the word, <em>owner</em>.</p>
<p><em><strong>Step 2 &#8211; Shut the virtual machine down to see if the lock gets released</strong><br />
</em>Here is the output following a shutdown of the virtual machine.</p>
<p><code># vmkfstools -D Demo-VM01-flat.vmdk</code></p>
<p>Lock [type 10c00001 offset 159152128 v 124, hb offset 3244032<br />
gen 25,<strong> mode 0</strong>, owner 00000000-00000000-0000-000000000000 mtime 1190723 nHld 0 nOvf 0]<br />
Addr &lt;4, 346, 95&gt;, gen 106, links 1, type reg, flags 0, uid 0, gid 0, mode 600<br />
len 42949672960, nb 0 tbz 0, cow 0, newSinceEpoch 0, zla 3, bs 1048576</p>
<p>As you can see the mode is 0 on the demonstration virtual machine meaning that the machine disk is not locked by another device.  Once the mode is 0 you should be able to take a snapshot and remove a snapshot successfully.</p>
<p><em><strong>Step 3 &#8211; Forcefully remove the lock</strong><br />
</em>If you find that the mode is anything other than 0 then another device is locking the disk.  This may be another host or depending on your backup software may be your backup server.  If the file is still locked you should see the MAC address of the owner.  If you find that it is your backup server that corresponds to the MAC address restarting the backup server should release the lock.  If it is another host then you will need to unregister the virtual machine from the current host and re-register it on the host with the corresponding MAC address.  Once you have registered it on the appropriate host try and power it on.  If it still fails check if the virtual machine still has a World ID assigned to it on the host identified as the owner of the lock.</p>
<p><code># esxcli vm process list</code></p>
<p>Demo-VM01<br />
World ID: 3657905<br />
Process ID: 0<br />
VMX Cartel ID: 3670192<br />
UUID: 42 36 06 d4 0f 1b 35 61-17 aa f9 4b 8d 6c e1 78<br />
Display Name: Demo-VM01<br />
Config File: /vmfs/volumes/4fe306c8-b1c504a6-a734-984be10fb3e4/Demo-VM01/Demo-VM01.vmx</p>
<p>The world ID number (3657905) is the Virtual Machine Monitor (VMM) for vCPU 0.  Run the following command to force the virtual machine to stop by killing the process.</p>
<p><code># esxcli vm process kill --type soft --world-id 3657905</code></p>
<p>Should you find that you are not able to see the virtual machine name when running this command this is because the virtual machine is not running on this host.<br />
If this is the case or you are not able to kill the process you can restart the management agent or reboot the host to release the lock.</p>
<p>It is worth noting that you can use the <code>k</code> command in <code>esxtop</code> to kill a running virtual machine process. SSH to the host and perform the following.</p>
<p>Step 1 &#8211; Run esxtop by typing esxtop<br />
Step 2 -Press <strong>c</strong> to switch to the CPU resource utilization screen (This is the default view)<br />
Step 3 -Press <strong>Shift+f</strong> to display the list of fields<br />
Step 4 -Press <strong>c</strong> to add the column for the Leader World ID<br />
Step 5 -Identify the target virtual machine by its Name and Leader World ID (LWID)<br />
Step 6 -Press <strong>k<br />
</strong>Step 7 -At the <strong>World to kill</strong> prompt, type in the Leader World ID from step 5 and press <strong>Enter<br />
</strong>Step 8  -Wait up to 30 seconds and validate that the process is no longer listed</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/hidden-vmware-snapshots/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2012 &#8211; StratoGen&#8217;s Year in Review</title>
		<link>http://www.stratogen.net/blog/2012-stratogens-year-in-review/</link>
		<comments>http://www.stratogen.net/blog/2012-stratogens-year-in-review/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 15:06:49 +0000</pubDate>
		<dc:creator>Karl Robinson</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Industry Comment]]></category>
		<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[Vmware Hosting]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=484</guid>
		<description><![CDATA[2012 was a very busy year for us here at StratoGen, so I thought I would take some time to reflect on some of the bigger things that we achieved over the last 12 months. January 2012 &#8211; USA vCloud Platform launched in Denver Colorado &#8211; due to increasing demand for USA based vCloud hosting, <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/2012-stratogens-year-in-review/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>2012 was a very busy year for us here at StratoGen, so I thought I would take some time to reflect on some of the bigger things that we achieved over the last 12 months.<a href="http://www.stratogen.net/blog/wp-content/uploads/2013/01/calendar-2012-2013.jpg" rel="lightbox[484]"><img class="alignright size-full wp-image-490" title="C" src="http://www.stratogen.net/blog/wp-content/uploads/2013/01/calendar-2012-2013.jpg" alt="" width="380" height="400" /></a></p>
<p><strong>January 2012</strong> &#8211; <strong><a title="StratoGen USA VMware Hosting Launch" href="http://www.stratogen.net/media-centre/pressreleases/pr-us-launch.html">USA vCloud Platform launched</a></strong> in Denver Colorado &#8211; due to increasing demand for USA based vCloud hosting, StratoGen decided to launch our service across the pond</p>
<p><strong>June 2012</strong> &#8211; <strong>StratoGen relocated to new offices</strong> at <a title="StratoGen Office" href="http://www.stratogen.net/contact-us/office-location.html">37 Frederick Place in Brighton</a>.  Due to continued successful growth more office space was required to house our UK based sales &amp; support teams, so a new home was found.</p>
<p><strong>July 2012</strong> &#8211; <strong>StratoGen&#8217;s New York office was established</strong> at <a title="StratoGen New York Office" href="http://www.stratogen.net/contact-us/office-location.html" target="_blank">380 Lexington Avenue</a> to provide local support for our rapidly growing US customer base.</p>
<p><strong>August 2012 &#8211; StratoGen attended <a title="StratoGen at VMworld 2012" href="http://www.stratogen.net/blog/?p=452">VMworld San Francisco</a></strong> where we met with key customers, learned about key product developments, had the opportunity for an intimate audience with outgoing CEO Paul Maritz, and even got some sound bites on a <a title="StratoGen talks VMware vCloud Hosting" href="http://blogs.vmware.com/vcloud/2012/10/vcloud-service-providers-at-vmworld-2012.html?src=vcld-2012-4-twitter-vCloudSPs-in-403">video posted on the VMware vCloud Blog</a>!</p>
<p><strong>October 2012</strong> &#8211; <a title="StratoGen New Jersey Datacentre" href="http://www.stratogen.net/media-centre/pressreleases/pr-newyorkdc.html"><strong>Stratogen&#8217;s New Jersey Datacentre launched</strong></a> &#8211; due to increasing demand for our US based vCloud Powered VMware Hosting, we brought online our East Coast facility at the impressive IO New Jersey modular datacentre, which survived the havoc wreaked by Frankenstorm, unlike many Manhattan based facilities including some that we evaluated!</p>
<p><strong>November 2012 -</strong> <strong>StratoGen Upgrades all vCloud Datacentres to vSphere 5.1 &amp; vCloud Director 5.1 </strong>becoming one of the first vCloud Powered providers to offer the great new features of 5.1 including Snapshot capability, Storage Profiles and enhanced networking with the vCloud Networking &amp; Security suite</p>
<p><strong>November 2012 &#8211; <a title="StratoGen VMware Hosting Malaysia" href="http://www.stratogen.net/media-centre/pressreleases/pr-asialaunch.html">StratoGen Malaysia Datacentre launched</a></strong> in Kuala Lumpur making StratoGen one of the few VMware vCloud Powered hosting companies with true global coverage.</p>
<p>Looking forward to 2013, we&#8217;re excited to be <a href="http://t.co/wSlz6iDU">growing the team</a> in our US office, and we&#8217;re working hard to grow our well established based of ISV and Managed Service Provider customers.</p>
<p>There&#8217;s no question that cloud based services will continue to grow in 2013, as more workloads move to the cloud, and more software vendors look to make the shift from traditional on premise client-server deployments to Software As A Service based offerings.  VMware themselves are doing a lot of work in this area with ISV&#8217;s to &#8216;vApp&#8217; their applications to simplify migration onto vCloud VMware hosting environments &#8211; ultimately deploying an application needs to become as simple as selecting it from a catalog as far as the end user is concerned.</p>
<p>We&#8217;d like to thank all of our existing customers for their continued support of StratoGen in 2013, and look forward to working with many more companies over the coming months to help them with their journey to the cloud.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/2012-stratogens-year-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StratoGen Malaysia is Go!</title>
		<link>http://www.stratogen.net/blog/stratogen-malaysia-is-go/</link>
		<comments>http://www.stratogen.net/blog/stratogen-malaysia-is-go/#comments</comments>
		<pubDate>Fri, 30 Nov 2012 12:16:40 +0000</pubDate>
		<dc:creator>Karl Robinson</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[Vmware Hosting]]></category>
		<category><![CDATA[IaaS]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=470</guid>
		<description><![CDATA[So you&#8217;ve probably seen the press release already &#8211; we&#8217;ve launched our vCloud platform in Malaysia.  Customer demand in the region is booming , and an Asian presence was the next logical step for StratoGen to augment our global reach.  StratoGen VMware hosting is now available in EMEA, USA and Asia, making us one of <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/stratogen-malaysia-is-go/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/11/Jaring1.png" rel="lightbox[470]"><img class="alignright  wp-image-473" title="StratoGen Malaysis vCloud VMware Hosting" src="http://www.stratogen.net/blog/wp-content/uploads/2012/11/Jaring1.png" alt="" width="392" height="223" /></a>So you&#8217;ve probably seen the <a title="StratoGen VMware Hosting Asia Datacenter" href="http://www.mmdnewswire.com/vmware-hosting-stratogen-cloud-datacenter-asia-123168.html">press release</a> already &#8211; we&#8217;ve launched our vCloud platform in Malaysia.  Customer demand in the region is booming , and an Asian presence was the next logical step for StratoGen to augment our global reach.  StratoGen VMware hosting is now available in EMEA, USA and Asia, making us one of the few VMware vCloud Powered partners with true global reach.</p>
<p>This new facility is ideal for anyone experiencing network latency issues between USA or EMEA to the Asia Pac region.  It is also beneficial for Malaysian businesses who may have access to governement development funds, who need to host their infrastructure in country in order to qualify for these grants.</p>
<p>Our Malaysian vCloud platform is based in the <a href="http://www.stratogen.net/about-us/kualalumpur.html">Jaring datacenter</a> in Technology Park Kuala Lumpur.   The platform is running the latest VMware vSphere 5.1 with vCloud Director 5.1, offering cutting edge cloud management features including VM Snapshots, Server Load Balancing and advanced vShield firewall tecghnology, all managed via the same vCloud Director login.</p>
<p>As with all StratoGen facilities, Jaring Kuala Lumpur is ISO27001 certified, ensuring the utlimate in security for customer data hosted in the facility.</p>
<p>The first customers are already up and running in the facility.  Any customers wishing to trial our Malaysian cloud can do so by visiting <a title="StratoGen VMware Hosting Malaysia" href="http://www.stratogen.net/trial ">www.stratogen.net/trial</a> and selecting the Asia region from the drop down menu.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/stratogen-malaysia-is-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMworld 2012 &#8211; What did we learn?</title>
		<link>http://www.stratogen.net/blog/vmworld-2012-what-did-we-learn/</link>
		<comments>http://www.stratogen.net/blog/vmworld-2012-what-did-we-learn/#comments</comments>
		<pubDate>Mon, 03 Sep 2012 17:13:40 +0000</pubDate>
		<dc:creator>Karl Robinson</dc:creator>
				<category><![CDATA[StratoGen]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=452</guid>
		<description><![CDATA[A little late with the follow up post, but yes we did make it to San Francisco and we did learn a few of the things we were hoping to! vCloud Director 5.1 &#8211; we&#8217;re going to write a post all about this as we&#8217;re almost done with our upgrade, but in summary here&#8217;s the <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/vmworld-2012-what-did-we-learn/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>A little late with the follow up post, but yes we did make it to San Francisco and we did learn a few of the things we were hoping to!<a href="http://www.stratogen.net/blog/wp-content/uploads/2012/11/VMworld.jpg" rel="lightbox[452]"><img class="alignright  wp-image-454" title="VMworld 2012 - Karl &amp; Max outside Moscone Center" src="http://www.stratogen.net/blog/wp-content/uploads/2012/11/VMworld.jpg" alt="" width="434" height="325" /></a></p>
<p><strong>vCloud Director 5.1</strong> &#8211; we&#8217;re going to write a post all about this as we&#8217;re almost done with our upgrade, but in summary here&#8217;s the stuff that made it through that we love:</p>
<ul>
<li>Tiered Storage &#8211; ability to mount different volumes from different storage pools</li>
<li>Snapshot &#8211; easy to create snapshot of a VM and revert to it</li>
<li>vShield Edge &#8211; the new &#8216;Edge Gateway&#8217; looks great &#8211; up to 10 NICs, VPNs, load balancing &#8211; a proper firewall, just what we wanted!</li>
</ul>
<p><strong>Site Recovery Manager</strong> &#8211; not really integrated with vCloud Director at all, so the rumours we heard were unfounded.  Still a great product though.</p>
<p><strong>Project Octopus</strong> &#8211; Octopus has now fallen under the Horizon banner and has been named &#8216;Horizon Data&#8217;.  It will sit alongside Horizon App Manager and Horizon Desktop.  The suite is shaping up nicely but we still don&#8217;t know when we can get our hands on it &#8211; come on VMware!</p>
<p><strong>VMware IaaS &#8211; </strong>AKA Project Zephyr, the VMware branded paid proof of concept offering has now been launched, and VMware are pushing this out as a way for organisations to have a play with vCloud Director without purchasing it or committing to a service provider.  This has ruffled a few feathers in the Service Provider community, but here at StratoGen we&#8217;re not too bothered about it.  The unofficial line from VMware is that Zephyr was borne out of frustration with service providers not embracing the Test Drive program and putting up decent trials of their own.  If only more of our counterparts had a full automated no obligation<a title="StratoGen VMware Hosting Free Trial" href="http://www.stratogen.net/trial"> VMware Hosting Free Trial</a>! We&#8217;ve already spoken with prospective clients who have tried the VMware offering and become frustrated with the lack of support and lack of functionality (eg no API!), so StratoGen&#8217;s fully functioning free trial is a far better option!</p>
<p><strong>Have Bon Jovi Still got it?</strong> &#8211; Well Jon Bon Jovi and the Kings of Suburbia payed a great set to the VMworld Party, BUT &#8211; no Living on a Prayer!  We patiently waited thinking it would be his final encore, but we left disappointed.  You can&#8217;t have Bon Jovi without Living on Prayer!  Very disappointing.</p>
<p>In addition to the learning there was also plenty of socialising and networking &#8211; we got to meet outgoing CEO Paul Maritz at a cosy &#8216;vCloud Partner Appreciation Reception&#8217; and I even managed to feature in a <a title="StratoGen at VMworld 2012" href="http://blogs.vmware.com/vcloud/2012/10/vcloud-service-providers-at-vmworld-2012.html?src=vcld-2012-4-twitter-vCloudSPs-in-403">short video</a> about why we love partnering with VMware.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/vmworld-2012-what-did-we-learn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We&#8217;re off to VMworld &#8211; What do we hope to learn?</title>
		<link>http://www.stratogen.net/blog/were-off-to-vmworld-what-do-we-hope-to-learn/</link>
		<comments>http://www.stratogen.net/blog/were-off-to-vmworld-what-do-we-hope-to-learn/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 12:05:31 +0000</pubDate>
		<dc:creator>Karl Robinson</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Industry Comment]]></category>
		<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[Vmware Hosting]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=440</guid>
		<description><![CDATA[So we&#8217;re off to San Francisco next week to attend the VMworld conference at the Moscone Center to hear all about the latest developments from VMware. There seem to be a lot of exciting developments in the pipeline, and there are a few things we hope to be enlightened on while we&#8217;re there. vCloud Director <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/were-off-to-vmworld-what-do-we-hope-to-learn/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/GoldenGateBridge.jpg" rel="lightbox[440]"><img class="alignright  wp-image-445" title="GoldenGateBridge" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/GoldenGateBridge-300x225.jpg" alt="" width="230" height="172" /></a>So we&#8217;re off to San Francisco next week to attend the <a href="http://www.vmworld.com/index.jspa">VMworld conference</a> at the Moscone Center to hear all about the latest developments from VMware.</p>
<p>There seem to be a lot of exciting developments in the pipeline, and there are a few things we hope to be enlightened on while we&#8217;re there.</p>
<ul>
<li><strong>vCloud Director next major release </strong>
<ul>
<li>When is it coming?</li>
<li>What features can we expect in GA?  We&#8217;re hoping to see:
<ul>
<li>Storage Tiering</li>
<li>Snapshot capability</li>
<li>More end user control of vShield Edge (load balanding configuration etc)</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li><strong>Site Recovery Manager</strong> – there have been rumours of integration between SRM and vCloud Director – we’re intrigued to find out more&#8230;</li>
</ul>
<ul>
<li><strong>Project Octopus</strong> – much anticipated and discussed at last year’s VMworld – we want it, when can we have it?  Hopefully we’ll get an update and an idea of launch dates…</li>
</ul>
<ul>
<li><strong>VMware IaaS</strong> – there have been a few rumours flying around about VMware launching their own IaaS cloud (<a href="http://www.crn.com/news/cloud/240004995/vmware-poised-for-public-cloud-splash-but-partners-still-reeling.htm" target="_blank">http://www.crn.com/news/cloud/240004995/vmware-poised-for-public-cloud-splash-but-partners-still-reeling.htm</a>) giving some partners cause for concern – we want to know more!</li>
</ul>
<ul>
<li><strong>Have Bon Jovi still got it? </strong>You may ask ‘Did they ever have it?’ – They’re headlining the VMworld Party, so we’re going to find out!</li>
</ul>
<p>Hopefully we’ll get the answers to these questions and more – we’ll post what we are allowed to next week!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/were-off-to-vmworld-what-do-we-hope-to-learn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Upload your own Virtual Machines to the StratoGen vCloud Platform</title>
		<link>http://www.stratogen.net/blog/how-to-upload-your-own-virtual-machines-to-the-stratogen-vcloud-platform/</link>
		<comments>http://www.stratogen.net/blog/how-to-upload-your-own-virtual-machines-to-the-stratogen-vcloud-platform/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 10:59:51 +0000</pubDate>
		<dc:creator>Karl Robinson</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Technical How To]]></category>
		<category><![CDATA[Vmware Hosting]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[IaaS]]></category>
		<category><![CDATA[vCloud]]></category>
		<category><![CDATA[vCloud Director]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=383</guid>
		<description><![CDATA[One of the most common questions our customers ask is &#8216;How do I upload my own VM images to your platform?&#8217; &#8211; here&#8217;s a step by step guide. Step 1 &#62; Have your exported Virtual Machine files ready! Remember, the StratoGen vCloud Platform will only allow you to upload files in the .OVF format. If <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/how-to-upload-your-own-virtual-machines-to-the-stratogen-vcloud-platform/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>One of the most common questions our customers ask is &#8216;How do I upload my own VM images to your platform?&#8217; &#8211; here&#8217;s a step by step guide.</p>
<p><strong>Step 1 &gt; Have your exported Virtual Machine files ready!</strong></p>
<p>Remember, the StratoGen vCloud Platform will only allow you to upload files in the .OVF format. If you exported your virtual machine in the .OVA format, unfortunately you will need to redo the export process, ensuring you select OVF (Multiple Files option)</p>
<p><strong>Step 2 &gt; Log in to your StratoGen vCloud Director account</strong></p>
<p>Using a supported browser, connect to your URL, as provided by your StratoGen representative at the time of sign up.  Enter your username and password to login to your account.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2011/02/vCloud-Login-Page.png" rel="lightbox[383]"><img class="wp-image-200 alignnone" title="vCloud Login Page" src="http://www.stratogen.net/blog/wp-content/uploads/2011/02/vCloud-Login-Page.png" alt="" width="800" height="500" /></a></p>
<p><strong>Step 3 &gt; Select the ‘Catalogs’ tab</strong></p>
<p>The initial homepage for your cloud is displayed. Now click on the ‘Catalogs’ tab.</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Catalogs2.png" rel="lightbox[383]"><img class="wp-image-402 alignnone" title="Catalogs" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Catalogs2-1024x681.png" alt="" width="800" height="500" /></a><strong></strong></p>
<p><strong>Step 4&gt; Create a new Organization Catalog</strong></p>
<p>To add your OVFs the files into a catalog, you’ll first need to create one. Click on the green‘+’ to add a new catalog:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/New-vCloud-Catalogue1.jpg" rel="lightbox[383]"><img class="alignnone  wp-image-426" title="New vCloud Catalogue" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/New-vCloud-Catalogue1-1024x720.jpg" alt="New vCloud Catalogue" width="800" height="500" /></a></p>
<p>Give the catalog a name, and step through the Wizard.</p>
<p><strong>Step 5 &gt; Upload OVF Files</strong></p>
<p>One you’ve created your catalog, open it up, click on the upload button and then browse to the location that you exported the VMware Image file to, which in my case was the desktop:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/pic3.png" rel="lightbox[383]"><img class="wp-image-408 alignnone" title="Upload VMware Image OVF File" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/pic3-1024x557.png" alt="Upload VMware Image OVF File" width="800" height="500" /></a></p>
<p>Select ONLY the .ovf file – the export process will have created a couple of other files but you don’t need to worry about these – the import process will pick them up:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/pic4.png" rel="lightbox[383]"><img class="alignnone  wp-image-430" title="Upload OVF" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/pic4-1024x623.png" alt="Upload OVF" width="800" height="500" /></a></p>
<p>Click the ‘upload’ button in the catalogue wizard, and then wait for the import to the catalog to complete:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Upload-VMware-Image-4.jpg" rel="lightbox[383]"><img class="alignnone  wp-image-431" title="Upload VMware Image 4" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Upload-VMware-Image-4-1024x717.jpg" alt="Upload VMware Image 4" width="800" height="500" /></a></p>
<p>The time taken to upload the Image will depend on the size, and the speed of your upload connection.</p>
<p><strong>Step 6 &gt; Deploy Virtual Machine from uploaded image</strong></p>
<p>Once the upload has completed we are then able to deploy the .ovf into your vCloud Virtual Datacentre. In my demo account, I already have a couple of vApps set up, so I’m going to add the uploaded VM to one of my existing vApps.</p>
<p>To do this, open up the vApp, and then click on the ‘Add Virtual Machine’ button. The catalog wizard should pop up, defaulting to the catalog that you just created, and you should see your virtual machine in it. Select the VM, then click the ‘Add’ button and then click ‘Next’:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Deploy-VMware-Image-1.jpg" rel="lightbox[383]"><img class="alignnone  wp-image-432" title="Deploy VMware Image 1" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Deploy-VMware-Image-1-1024x719.jpg" alt="Deploy VMware Image 1" width="800" height="500" /></a></p>
<p>In the next step we need to give the VM a network connection – choose either the Direct Internet Connection for external connectivity, or import into an existing Internal Network structure – if applicable. Once the network has been added, click next through to the end of the wizard, and the VM Image will begin deploying. If I go back to my vApp diagram I can see the uploaded image is now deployed in my vApp alongside the other servers which were there previously:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Deployed-VMware-Image.jpg" rel="lightbox[383]"><img class="alignnone  wp-image-433" title="Deployed VMware Image" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Deployed-VMware-Image-1024x720.jpg" alt="Deployed VMware Image" width="800" height="500" /></a></p>
<p>That’s it! I can now power up the machine, and my VMware Image has been moved from my local cloud onto the StratoGen VMware Hosting platform.</p>
<p><strong>Troubleshooting File Uploads</strong></p>
<p>If you experience issues trying to upload .OVF files, they will most likely be caused by browser incompatibilities or Java related issues.</p>
<p><strong>Browser Compatibility List (Correct for vCloud Director 1.5.1)</strong></p>
<p>This table outlines support for browsers on Microsoft Windows operating systems:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Microsoft-Windows-Browser-Compatibility.jpg" rel="lightbox[383]"><img class="alignnone size-full wp-image-434" title="Microsoft Windows Browser Compatibility" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Microsoft-Windows-Browser-Compatibility.jpg" alt="" width="644" height="565" /></a></p>
<p>This table outlines support for browsers on Linux operating systems:</p>
<p><a href="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Linux-Browser-Compatibility.jpg" rel="lightbox[383]"><img class="alignnone size-full wp-image-435" title="Linux Browser Compatibility" src="http://www.stratogen.net/blog/wp-content/uploads/2012/08/Linux-Browser-Compatibility.jpg" alt="" width="595" height="325" /></a></p>
<p><strong>Java Version 7 Issues</strong></p>
<p>We have seen various issues with browsers using Java version 7. Typical problems include the ‘browse’ button not working when trying to load the file selector. If you experience a similar issue we recommend that you install and use Java JRE version 6 instead*. It is best to install the 32Bit and 64Bit versions. You can download the latest Java 6 from this URL:</p>
<p><a title="Download Java" href="http://www.oracle.com/technetwork/java/javase/downloads/jre-6u32-downloads-1594646.html">http://www.oracle.com/technetwork/java/javase/downloads/jre-6u32-downloads-1594646.html</a></p>
<p>*Please check that this won’t impact any existing applications that you already have installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/how-to-upload-your-own-virtual-machines-to-the-stratogen-vcloud-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poor Virtual Machine Performance with Multiple CPUs</title>
		<link>http://www.stratogen.net/blog/poor-virtual-machine-performance-with-multiple-cpus/</link>
		<comments>http://www.stratogen.net/blog/poor-virtual-machine-performance-with-multiple-cpus/#comments</comments>
		<pubDate>Wed, 02 May 2012 16:55:44 +0000</pubDate>
		<dc:creator>Simon Greaves</dc:creator>
				<category><![CDATA[StratoGen]]></category>
		<category><![CDATA[Technical How To]]></category>
		<category><![CDATA[Vmware Hosting]]></category>

		<guid isPermaLink="false">http://www.stratogen.net/blog/?p=363</guid>
		<description><![CDATA[In a non-virtualised environment adding additional CPUs is a useful way to increase the performance of a server if it is running a multi-threaded application.  However it can be different in a virtualised environment.  You may experience poor performance when running multiple vCPUs in a virtual machine. This is because the virtual machine has to wait for <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.stratogen.net/blog/poor-virtual-machine-performance-with-multiple-cpus/" class="more-link"><span>Read More ...</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>In a non-virtualised environment adding additional CPUs is a useful way to increase the performance of a server if it is running a multi-threaded application.  However it can be different in a virtualised environment.  You may experience poor performance when running multiple vCPUs in a virtual machine.</p>
<p>This is because the virtual machine has to wait for the amount of allocated vCPUs (logical CPUs) to become available so that the CPU instructions can be scheduled on multiple cores on the physical host.  The higher the number of vCPUs, the more cores that must be available for each execution.</p>
<p>When you migrate a virtual machine into vCloud Director from an existing physical server you may find that the server previously had many cores that may no longer be required.  If an application such as Microsoft SQL is using 8 cores on a physical server it is best practice to reduce the number of CPUs associated with the virtual machine to a lower number such as 2 vCPUs.  Each application will have different CPU demands and so it is best to use performance monitoring tools to determine how much of a bottleneck CPU is for your application.  You can do this in Microsoft Windows with Performance Monitor.</p>
<p>Once you have determined the appropriate amount of vCPUs that are required for your virtual machine reduce the amount of vCPUs using the steps below.</p>
<p><strong>Note</strong>: The virtual machine must be powered off to perform these steps.</p>
<ol>
<li>Right-click on the virtual machine and click <strong>Properties</strong>.</li>
<li>Click <strong>Hardware </strong>tab.</li>
<li>Use the <strong>Number of CPUs</strong> drop-down to lower the vCPU count by 1.</li>
<li>Click <strong>OK</strong>.</li>
<li>If your virtual machine still experiences performance issues, and if its kernel or HAL can handle switching to a single vCPU, lower the vCPU count to 1.<br />
<a href="http://www.stratogen.net/blog/wp-content/uploads/2012/05/BlogDemoVM1.png" rel="lightbox[363]"><img class="alignnone  wp-image-365" title="BlogDemoVM" src="http://www.stratogen.net/blog/wp-content/uploads/2012/05/BlogDemoVM1.png" alt="" width="590" height="419" /></a><strong><br />
</strong><strong></strong><br />
<strong>Warning</strong>: If your virtual machine&#8217;s kernel or HAL cannot handle switching to a single vCPU, unexpected behaviour may occur.  This is typical of Windows Server Operating Systems so don&#8217;t lower multi-cored virtual machines below 2 vCPUs.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.stratogen.net/blog/poor-virtual-machine-performance-with-multiple-cpus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
