<?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>Lostdomain.org &#187; vmware</title>
	<atom:link href="http://lostdomain.org/category/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostdomain.org</link>
	<description>To find yourself, think for yourself</description>
	<lastBuildDate>Wed, 04 Apr 2012 13:30:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>vCloud Integration Manager</title>
		<link>http://lostdomain.org/2012/02/08/vcloud-intergration-manager/</link>
		<comments>http://lostdomain.org/2012/02/08/vcloud-intergration-manager/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 00:19:13 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[vcloud]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://lostdomain.org/?p=2891</guid>
		<description><![CDATA[VMware just announced a new addition to their vCloud product family; vCloud Integration Manager. vCloud Integration Manager was developed to provide a simple and standardized way for service providers to provision vCloud Director, vShield and vSphere in order to more quickly get new customers up and running on a cloud service. Until now, service providers [...]<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2012/02/08/vcloud-intergration-manager/' addthis:title='vCloud Integration Manager' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[VMware just announced a new addition to their vCloud product family; vCloud Integration Manager.<br /><br />

vCloud Integration Manager was developed to provide a simple and standardized way for service providers to provision vCloud Director, vShield and vSphere in order to more quickly get new customers up and running on a cloud service. Until now, service providers either had to do these tasks manually, or redirect valuable software development resources to writing undifferentiated &#8220;glue code&#8221; and/or automation scripts.<br /><br />

Integration Manager reduces operational costs by automatically stepping through the configuration process for vCloud Director to set up Virtual Data Centers, virtual networks, administrator accounts and other cloud resources that the customer has ordered. By completing this in a matter of minutes, it decreases time to revenue (the time between receiving an order for service and fulfilling it, and therefore being able to bill for service).<br /><br />

Integration Manager includes a full set of REST APIs and a web GUI. The GUI provides an administrator interface to define the service building blocks that make up a full cloud service for a customer. Administrators can also configure reseller accounts, and provision and de-provision customers.<br /><br />

<a href="http://blogs.vmware.com/rethinkit/2012/02/vcloud-integration-manager-and-more-clouds-in-more-countries.html" target="_blank">Read the full press release here</a>.<br /><br />

<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2012/02/08/vcloud-intergration-manager/' addthis:title='vCloud Integration Manager' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://lostdomain.org/2012/02/08/vcloud-intergration-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vCenter plugin URLs</title>
		<link>http://lostdomain.org/2011/10/28/vcenter-plugin-urls/</link>
		<comments>http://lostdomain.org/2011/10/28/vcenter-plugin-urls/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 21:33:33 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://lostdomain.org/?p=2873</guid>
		<description><![CDATA[When installing various VMware products that link into vCenter (vShield, vCloud Connector, vChargeback, I could go on..), you often have minimal control over what URL is actually used to browse to the plugin and you usually can&#8217;t change it later on. This can screw up your SSL certificate plans. After a little digging, I found [...]<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/10/28/vcenter-plugin-urls/' addthis:title='vCenter plugin URLs' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>When installing various VMware products that link into vCenter (vShield, vCloud Connector, vChargeback, I could go on..), you often have minimal control over what URL is actually used to browse to the plugin and you usually can&#8217;t change it later on. This can screw up your SSL certificate plans.</p>

<p>After a little digging, I found these tables in the SQL database:</p>

<p>- VPX_EXT_CLIENT<br />
- VPX_EXT_SERVER</p>

<p>Both have a field called &#8216;URL&#8217; which has the URL (doh) to the plugin. </p>

<p>Two things; this is not supported by VMware and could break something. I hasn&#8217;t on my setup, but it might on yours. Backups are your friend.</p>

<p>You need to stop the vCenter service before you edit the value and start it back up after you&#8217;re done.</p><div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/10/28/vcenter-plugin-urls/' addthis:title='vCenter plugin URLs' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://lostdomain.org/2011/10/28/vcenter-plugin-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing vCloud Agent from ESX(i) host</title>
		<link>http://lostdomain.org/2011/09/04/removing-vcloud-agent-from-esxi-host/</link>
		<comments>http://lostdomain.org/2011/09/04/removing-vcloud-agent-from-esxi-host/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 16:16:30 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[vcloud]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://lostdomain.org/?p=2797</guid>
		<description><![CDATA[When you&#8217;re like me, you just go ahead and install stuff without taking the time to read if the software you&#8217;re installing can be upgraded later. Dive head first. Often with beta software, an upgrade path to a release build is lacking or problematic. Same goes for vCloud Director 1.5 beta to the release build [...]<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/09/04/removing-vcloud-agent-from-esxi-host/' addthis:title='Removing vCloud Agent from ESX(i) host' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re like me, you just go ahead and install stuff without taking the time to read if the software you&#8217;re installing can be upgraded later. Dive head first. <img src='http://lostdomain.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>


<p>Often with beta software, an upgrade path to a release build is lacking or problematic. Same goes for vCloud Director 1.5 beta to the release build of 1.5. When I upgraded to the release build, I did so without &#8216;Unpreparing&#8217; the ESXi hosts that were being used by vCloud Director. That causes some problems when you want to link a new vCloud Director to these ESXi hosts, as the vCloud Agent is still on the hosts. You have to remove that agent manually before you can link them with the new vCloud Director again. Here&#8217;s how:</p>

<strong>ESXi 5.0</strong>
<pre>esxcli software vib remove -n vcloud-agent</pre>
<strong>ESXi/ESX 4.x</strong>
<pre>/opt/vmware/uninstallers/vslad-uninstall.sh</pre>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/09/04/removing-vcloud-agent-from-esxi-host/' addthis:title='Removing vCloud Agent from ESX(i) host' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://lostdomain.org/2011/09/04/removing-vcloud-agent-from-esxi-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vCloud Director SSL certificates</title>
		<link>http://lostdomain.org/2011/08/24/vmware-vcloud-director-ssl-certificates/</link>
		<comments>http://lostdomain.org/2011/08/24/vmware-vcloud-director-ssl-certificates/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 20:00:48 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[vcloud]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://lostdomain.org/?p=159</guid>
		<description><![CDATA[vCloud Director uses a java keystore to read its SSL certificates from. This makes it a bit more complicated to use an existing certificate and private key set. Took me a while to figure out, so I&#8217;m sharing. In this example I created /opt/vmware/keystore for the certificate files. The ssl-key.pem and ssl-cert.pem are the existing [...]<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/08/24/vmware-vcloud-director-ssl-certificates/' addthis:title='VMware vCloud Director SSL certificates' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[vCloud Director uses a java keystore to read its SSL certificates from. This makes it a bit more complicated to use an existing certificate and private key set. Took me a while to figure out, so I&#8217;m sharing.

In this example I created /opt/vmware/keystore for the certificate files. The ssl-key.pem and ssl-cert.pem are the existing certificate files. Furthermore, I used &#8216;passed&#8217; as the keystore and alias password. (needed for the vCD configuration)

Firstly, we need to convert the key and certificate to a DER format:
<pre>[root@vcd.lostdomain.org keystore]# export PATH=$PATH:/opt/vmware/vcloud-director/jre/bin
[root@vcd.lostdomain.org keystore]# openssl pkcs8 -topk8 -nocrypt -in ssl-key.pem -inform PEM -out ssl-key.der -outform DER
[root@vcd.lostdomain.org keystore]# openssl x509 -in ssl-cert.pem -inform PEM -out ssl-cert.der -outform DER</pre>


Credits go out to http://www.agentbob.info/agentbob/79-AB.html for the next part, the following combines the key and certificate into a new keystore:

<pre>[root@vcd.lostdomain.org keystore]# wget http://lostdomain.org/etc/ImportKey.class
[root@vcd.lostdomain.org keystore]# java ImportKey proserve-key.der proserve-cert.der
Using keystore-file : /root/keystore.ImportKey
One certificate, no chain.
Key and certificate stored.
Alias:importkey  Password:importkey</pre>

We&#8217;ve now created a new keystore with an existing private key and certificate. Check to verify!

<pre>[root@vcd.lostdomain.org ~]# keytool -storetype JCEKS -storepass importkey -keystore keystore.ImportKey -list

Keystore type: JCEKS
Keystore provider: SunJCE

Your keystore contains 1 entry

importkey, Aug 24, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): C0:5E:7B:B8:AB:30:89:5B:4A:7D:5F:2F:F4:00:CD:F4</pre>

Ok, now we copy the importkey alias to the required aliases for vCD:

<pre>[root@vcd.lostdomain.org ~]# keytool -keyclone -storetype JCEKS -storepass importkey -alias importkey -dest consoleproxy -keystore keystore.ImportKey
Enter key password for
(RETURN if same as for )
Re-enter new password:
[root@vcd.lostdomain.org ~]# keytool -keyclone -storetype JCEKS -storepass importkey -alias importkey -dest http -keystore keystore.ImportKey
Enter key password for
(RETURN if same as for )
Re-enter new password:</pre>

Get rid of the &#8216;importkey&#8217; alias and change the keystore password:

<pre>[root@vcd.lostdomain.org ~]# keytool -delete -storetype JCEKS -storepass importkey -alias importkey -keystore keystore.ImportKey
[root@vcd.lostdomain.org ~]# keytool -storepasswd -new passwd -keystore keystore.ImportKey</pre>

Now check to verify the aliases inside the keystore:

<pre>[root@vcd.lostdomain.org ~]# keytool -storetype JCEKS -storepass importkey -keystore keystore.ImportKey -list   

Keystore type: JCEKS
Keystore provider: SunJCE

Your keystore contains 2 entries

consoleproxy, Aug 24, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): C0:5E:7B:B8:AB:30:89:5B:4A:7D:5F:2F:F4:00:CD:F4
http, Aug 24, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): C0:5E:7B:B8:AB:30:89:5B:4A:7D:5F:2F:F4:00:CD:F4</pre>

Ok, so now we have a keystore file with our key and certificate in it. Now to update vCD:

<pre>[root@vcd.lostdomain.org ~]# /etc/init.d/vmware-vcd stop
Stopping vmware-vcd-watchdog:                              [  OK  ]
Stopping vmware-vcd-cell:                             [  OK  ]
[root@vcd.lostdomain.org ~]# mv keystore.ImportKey certificates.ks
[root@vcd.lostdomain.org ~]# /opt/vmware/vcloud-director/bin/configure
Welcome to the vCloud Director configuration utility.

..snip..

Please enter the path to the Java keystore containing your SSL certificates and
private keys: /opt/vmware/keystore/certificates.ks
Please enter the password for the keystore:

..snap..

Would you like to start the vCloud Director service now? If you choose not
to start it now, you can manually start it at any time using this command:
service vmware-vcd start

Start it now? [y/n] y

Starting vmware-vcd-watchdog:                              [  OK  ]
Starting vmware-vcd-cell                                   [  OK  ]

The vCD service will be started automatically on boot.  To disable this,
use the following command: chkconfig --del vmware-vcd

[root@vcd.lostdomain.org ~]#</pre>

And peaches.<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2011/08/24/vmware-vcloud-director-ssl-certificates/' addthis:title='VMware vCloud Director SSL certificates' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://lostdomain.org/2011/08/24/vmware-vcloud-director-ssl-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snapshot hell: Recover a locked vmdk</title>
		<link>http://lostdomain.org/2009/05/14/recover-locked-vmdk/</link>
		<comments>http://lostdomain.org/2009/05/14/recover-locked-vmdk/#comments</comments>
		<pubDate>Thu, 14 May 2009 18:50:15 +0000</pubDate>
		<dc:creator>Martijn</dc:creator>
				<category><![CDATA[vmware]]></category>
		<category><![CDATA[snapshot]]></category>

		<guid isPermaLink="false">http://lostdomain.org/?p=87</guid>
		<description><![CDATA[I&#8217;ve had my share of battles with corrupt vmdk files, after the process of removing a snapshot crashed. Finally, I found a way to recover them through a VCB utility. Here&#8217;s the log that usually presents itself: May 12 01:43:13.593: vmx&#124; DISKLIB-DSCPTR: Failed to open extents for descriptor file in normal mode May 12 01:43:13.593: [...]<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2009/05/14/recover-locked-vmdk/' addthis:title='Snapshot hell: Recover a locked vmdk' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[I&#8217;ve had my share of battles with corrupt vmdk files, after the process of removing a snapshot crashed. Finally, I found a way to recover them through a VCB utility. Here&#8217;s the log that usually presents itself:

<blockquote>May 12 01:43:13.593: vmx| DISKLIB-DSCPTR: Failed to open extents for descriptor file in normal mode
May 12 01:43:13.593: vmx| DISKLIB-LINK  : &#8220;/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk&#8221; : failed to open (Device or resource busy).  
May 12 01:43:13.593: vmx| DISKLIB-CHAIN : &#8220;/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk&#8221; : failed to open (Device or resource busy).
May 12 01:43:13.594: vmx| DISKLIB-LIB   : Failed to open &#8216;/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk&#8217; with flags 0xa (Device or resource busy).
May 12 01:43:13.594: vmx| DISK: Cannot open disk &#8220;/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk&#8221;: Device or resource busy (1048585).
May 12 01:43:13.594: vmx| Msg_Post: Error
May 12 01:43:13.594: vmx| [msg.disk.noBackEnd] Cannot open the disk &#8216;/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk&#8217; or one of the snapshot disks i
t depends on.
May 12 01:43:13.594: vmx| [msg.disk.configureDiskError] Reason: Device or resource busy.</blockquote>

We will use the vcbExport utility to read the data from the old vmdk and create a new one. 

First, unregister the VM from your ESX host (if not done already):

<blockquote># cd /vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/
# vmware-cmd -s unregister `pwd`/VM1/VM1.vmx
unregister(/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmx) = 1</blockquote>

Then move the old VM directory and create a new one:

<blockquote># mv VM1 VM1.old
# mkdir VM1
# cd VM1</blockquote>

Then, convert the old vmdk to a new one:

<blockquote># vcbExport -M 1 -F 1 -d VM1.vmdk -s ../VM1.old/VM1.vmdk</blockquote>

This will take a while, depending on the size of your disks. After all, it is copying the entire data file. Do the same for the other vmdk&#8217;s, if you have more than one disk.

After you finish with vcbExport, we need to alter a few things to the .vmdk file(s); open it in your favorite editor.

Change:

<blockquote>createType=&#8221;monolithicFlat&#8221;</blockquote>

To:

<blockquote>createType=&#8221;vmfs&#8221;</blockquote>

Change: 

<blockquote>RW 56124534 FLAT &#8220;VM1-flat.vmdk&#8221; 0</blockquote>

To:

<blockquote>RW 56124534 VMFS &#8220;VM1-flat.vmdk&#8221;</blockquote>

Copy .vmx and .vmxf file

<blockquote># cp ../VM1.old/VM1.vmx* .</blockquote>

After that, you can register and start the VM again:

<blockquote># vmware-cmd -s register VM1.vmx
register(/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmx) = 1
# vmware-cmd VM1.vmx start
start() = 1</blockquote>

The VM will require an answer on the UUID matter (choose &#8216;Keep&#8217;) before it actually boots:

<blockquote># vmware-cmd VM1.vmx answer</blockquote>

<div class="addthis_toolbox addthis_default_style" addthis:url='http://lostdomain.org/2009/05/14/recover-locked-vmdk/' addthis:title='Snapshot hell: Recover a locked vmdk' ><a class="addthis_button_twitter"></a><a class="addthis_button_facebook like"></a><a class="addthis_button_google"></a><a class="addthis_button_email"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://lostdomain.org/2009/05/14/recover-locked-vmdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

