<?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>From thoughts to text &#187; Virtualization</title>
	<atom:link href="http://blog.torh.net/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.torh.net</link>
	<description>The personal blog of Tor Håkon Haugen</description>
	<lastBuildDate>Mon, 17 Oct 2011 14:44:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Changing Name on a VMware vCenter Server</title>
		<link>http://blog.torh.net/2011/09/29/changing-name-on-a-vmware-vcenter-server/</link>
		<comments>http://blog.torh.net/2011/09/29/changing-name-on-a-vmware-vcenter-server/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 14:10:39 +0000</pubDate>
		<dc:creator>Tor Håkon Haugen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://blog.torh.net/?p=1106</guid>
		<description><![CDATA[Yesterday I moved the company’s VMware vCenter Server over to a new Active Directory Domain. This included… Removing the server from the old domain Changing the IP-address on the server Adding the server to the new domain controller Making sure &#8230; <a href="http://blog.torh.net/2011/09/29/changing-name-on-a-vmware-vcenter-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="color: #333333; font-weight: 300;">Yesterday I moved the company’s VMware vCenter Server over to a new Active Directory Domain. This included…</span></p>
<ul>
<li>Removing the server from the old domain</li>
<li>Changing the IP-address on the server</li>
<li>Adding the server to the new domain controller</li>
<li>Making sure the ESX hosts found its “new” owner</li>
</ul>
<p>Careful planning is the key to success in such operations. Up front, all the ESX hosts had been upgraded and configured in such a way that they already utilised the new infrastructure.</p>
<p>However, a few quirks did arrive, and these are the ones that I will outline here. My guess is that 80% of the people arriving here from a search engine got these problems.</p>
<p><a href="#vcenter">Feel free to jump to that section right away.</a></p>
<p><em>For the record; I&#8217;m using vCenter Server version 4.1.0, build 258902 on Windows Server 2008 R2 Standard (64-bit).</em></p>
<h2><span class="Apple-style-span" style="color: #000000;">Sections</span></h2>
<ul>
<li><a href="#stepbystep">Step by step guide</a></li>
<li><a href="#vcenter">vCenter still contains references to the old server or domain name</a></li>
<li><a href="#sources">Sources</a></li>
</ul>
<p><a name="stepbystep"></a></p>
<h2><span class="Apple-style-span" style="color: #000000;">Step by Step</span></h2>
<p>There is only a few things you need to make sure before you begin, otherwise you might get a nasty surprise when all your virtual machines reboot.</p>
<p>Also, if you are going to change the IP-address on the vCenter Server, make sure that all your ESX hosts can communicate with the new address range.</p>
<p>The ESX hosts should be able to survive without a panic when the vCenter Server goes down for maintenance. But this can depend on how you have configured your vCenter Server.</p>
<h2><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">1. Remove the vCenter Server from old domain</span></h2>
<p>Log into the vCenter Server with Remote Desktop (or via a console) and remove it form the old domain. Reboot.</p>
<h2><span class="Apple-style-span" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">2. Change IP-address on the vCenter Server (optional)</span></h2>
<p>Next step depends if you actually need to change the IP-address. If you don’t, you don’t. If you do, have in mind that you will lose connection once you click “ok” or “apply”. Don’t forget to change the gateway and DNS-server addresses as well.</p>
<p>In my case I had to change the VLAN bindings on the switch port. We keep out two domains on separate VLANs.</p>
<h2>3. Add vCenter Server to new domain</h2>
<p>Add the vCenter Server to the new domain. No surprise here either. Complete the process with a reboot.</p>
<h2>4. Update configuration files on ESX hosts (may depend on step 2)</h2>
<p>The ESX hosts will most likely acknowledge the vCenter Server before you get to this step because of fingerprints and other magic. But nonetheless, log into the ESX server with ssh and edit the vpxa.cfg file. All the commands here has to be executed as the root user.</p>
<p>(Before you start; log into each ESX host with the vSphere Client and add a user with rights to log in remote via ssh.)</p>
<pre>#nano /etc/opt/vmware/vpxa/vpxa.cfg</pre>
<p>(Actually this only applies to those who changed the IP-address in step 2)</p>
<p>Change the IP-address listed between the <em>&lt;serverIP&gt; </em>tags in the file, like so:</p>
<pre>&lt;serverIp&gt;192.168.20.20&lt;/serverIp&gt;</pre>
<p>Given that the new vCenter Server address is 192.168.20.20. Save using <em>Ctrl+X</em>.</p>
<p>Also, check the hosts file for any references to the old address or domain name.</p>
<pre>#nano /etc/hosts</pre>
<p>In my case I changed it from</p>
<pre>192.168.10.10  vcenter   vcenter.domain.com</pre>
<p>to the following</p>
<pre>192.168.20.20  vcenter   vcenter.domain.lan</pre>
<p>and save using <em>Ctrl+X</em>. (Yeah, we change from a .com domain to a .lan domain)</p>
<p>If you have changed the vpxa.cfg file you will also have to restart two management agents on the ESX hosts.</p>
<p>Make sure you haven’t configured auto start/stop on the Virtual Machines at this point. If you have, disable it. Restarting services may lead to an unexpected reboot of all the virtual machines running on the ESX host.</p>
<pre>#service mgmt-vmware restart</pre>
<pre>#service vmware-vpxa restart</pre>
<h2>5. Restart VMware Virtual Center Service</h2>
<p>Log into the vCenter Server and start the services console. Just type “services.msc” in the run dialog.</p>
<p>Find and select the VMware VirtualCenter Server service and restart it. It may also drag another service with itself in the process. No problem.</p>
<h2>6. Log in using vSphere Client</h2>
<p>Start the vSphere Client and log in using the new domain name and your administrator credentials.</p>
<p>Hopefully everything is up and running and all the ESX hosts are connected. I would advice you to take a look at the KB-articles in the last section before you actually attempt to follow this guid. They will give you a better understanding about how this works.</p>
<p>Now; vCenter Server still contains some references to the old server and/or domain name. So keep reading.</p>
<h1><a name="vcenter"></a></h1>
<h2>vCenter Still Contains References to the old Server or Domain Name</h2>
<p>This can, and mostly will, happen to you too. And the way I found out was when I tried to log into the vCenter Server using vSphere Client and VMware Update Manager (a plugin) complained about being unable to reach the server, referring to the old domain name.</p>
<blockquote><p>There was an error connection to VMware vCenter Update Manager. The request failed because the server name could not be resolved.</p></blockquote>
<p>Turns out that the old name is soft coded into different configuration files and registries.</p>
<p><a href="http://blog.torh.net/wp-content/uploads/2011/09/1.vCenterSettings.jpg" rel="lightbox[1106]"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="size-medium wp-image-1107  alignright" title="1.vCenterSettings" src="http://blog.torh.net/wp-content/uploads/2011/09/1.vCenterSettings-300x199.jpg" alt="" width="300" height="199" /></a></p>
<p>I had to make changes to the following files and places:</p>
<ul>
<li>VMware vSphere Client</li>
<li>Windows Registry</li>
<li>vci-integrity (only if Update Manager is installed)</li>
<li>ADSI Edit</li>
</ul>
<h2>1. vSphere Client changes</h2>
<p>In the menu, choose Administration and vCenter Server Settings.</p>
<p>If you are using a license server, and the service is installed on the same machine as the vCenter Server, you have to check the settings under Licensing.</p>
<p><a href="http://blog.torh.net/wp-content/uploads/2011/09/2.SettingsLicensing.jpg" rel="lightbox[1106]"><img class="alignnone size-medium wp-image-1108" title="2.SettingsLicensing" src="http://blog.torh.net/wp-content/uploads/2011/09/2.SettingsLicensing-300x260.jpg" alt="" width="300" height="260" /></a></p>
<p>vCenter Server Name also has to be changed under Runtime Settings.</p>
<p><a href="http://blog.torh.net/wp-content/uploads/2011/09/4.SettingsRuntime.jpg" rel="lightbox[1106]"><img class="alignnone size-medium wp-image-1110" title="4.SettingsRuntime" src="http://blog.torh.net/wp-content/uploads/2011/09/4.SettingsRuntime-300x253.jpg" alt="" width="300" height="253" /></a></p>
<p>And under Advanced Settings you may have to change the following keys:</p>
<ul>
<li>VirtualCenter.InstanceName</li>
<li>VirtualCenter.VimAPiUrl</li>
<li>VirtualCenter.VimWebServicesUrl</li>
</ul>
<h2><a href="http://blog.torh.net/wp-content/uploads/2011/09/3.SettingsAdvanced3.jpg" rel="lightbox[1106]"><img class="size-medium wp-image-1130 alignnone" title="3.SettingsAdvanced3" src="http://blog.torh.net/wp-content/uploads/2011/09/3.SettingsAdvanced3-300x257.jpg" alt="" width="300" height="257" /></a></h2>
<h2>2. Windows Registry</h2>
<p>Using regedit from the run menu, navigate to the following places:</p>
<pre>HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VirtualCenter</pre>
<p>Check the string named VCInstanceId.</p>
<p><a href="http://blog.torh.net/wp-content/uploads/2011/09/5.RegistryVCInstanceId.jpg" rel="lightbox[1106]"><img class="alignnone size-medium wp-image-1111" title="5.RegistryVCInstanceId" src="http://blog.torh.net/wp-content/uploads/2011/09/5.RegistryVCInstanceId-300x206.jpg" alt="" width="300" height="206" /></a></p>
<p>Also check the following place:</p>
<pre>HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Update Manager</pre>
<p>and update the data on the string VUMServer.</p>
<h2>3. Update vci-integrity.xml</h2>
<p>This file is found at C:\Program Files (x86)\VMware\Infrastructure\Update Manager\vci-integrity.xml (only if Update Manager is installed on the server).</p>
<p>Search for the tag &lt;vpxdLocation&gt; and make sure the address is correct. It’s either an IP-address or a FQDN. Save the file and exit.</p>
<h2>4. ADSI Edit</h2>
<p>This little gem is located under Administrative Tools. Start it up and right click on the object ADSI Edit. Choose Connect and use the following settings…</p>
<ul>
<li>Name: VC (not important actually)</li>
<li>Connection Point: dc=virtualcenter,dc=vmware,dc=int</li>
<li>Computer: localhost:389</li>
</ul>
<p>Some of the objects here will have unique names, so they will be named differently on your system. So in the simplest form, go through each and every object under <em>OU=ComponentSpecs</em> and <em>OU=Instances</em> and right click and select Properties.</p>
<p><a href="http://blog.torh.net/wp-content/uploads/2011/09/7.ADSIVcIntegrity.jpg" rel="lightbox[1106]"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="size-medium wp-image-1113 alignright" title="7.ADSIVcIntegrity" src="http://blog.torh.net/wp-content/uploads/2011/09/7.ADSIVcIntegrity-300x199.jpg" alt="" width="300" height="199" /></a>Scroll through the list and edit every attribute that contains a reference to the old server name.</p>
<p>When all this is done, restart the VMware services or just reboot the vCenter Server. I would recommend a full reboot to make sure the all the changes are active.</p>
<p><a name="sources"></a></p>
<h2><span class="Apple-style-span" style="color: #000000;">Sources</span></h2>
<ul>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1001493">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1001493</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003490">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003490</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1000163">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1000163</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1003312">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1003312</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003895">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003895</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003895">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003895</a></li>
<li><a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003490">http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;docTypeID=DT_KB_1_1&amp;externalId=1003490</a></li>
<li><a href="http://communities.vmware.com/thread/226681">http://communities.vmware.com/thread/226681</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.torh.net/2011/09/29/changing-name-on-a-vmware-vcenter-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VI Client and VMware Server</title>
		<link>http://blog.torh.net/2009/02/25/vi-client-and-vmware-server/</link>
		<comments>http://blog.torh.net/2009/02/25/vi-client-and-vmware-server/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:18:44 +0000</pubDate>
		<dc:creator>Tor Håkon Haugen</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://blog.torh.net/?p=419</guid>
		<description><![CDATA[Found a nice tip for using VMwares Infrastructure Client to manage VMware Server, a product which is usually managed via web interface. The tip is to simply add the port number of the web interface after the server name or &#8230; <a href="http://blog.torh.net/2009/02/25/vi-client-and-vmware-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Found a nice tip for using <a href="http://www.desktop-virtualization.com/2009/02/25/use-infrastructure-client-to-manage-vmware-server/">VMwares Infrastructure Client to manage VMware Server</a>, a product which is usually managed via web interface. The tip is to simply add the port number of the web interface after the server name or ip address in Infrastructure Client. I.e. &#8220;servername:8333&#8243;, where 8333 is the default port number for <a href="http://vmware.com/products/server/">VMware Servers</a> web interface.</p>
<p>The reason for this is most likely that VMware Server is installed as an application on top of an operating system. This underlying operating system might very well use the default SSL port number, 443, for its own web service already.</p>
<p>However; If you&#8217;re running VMware Server exclusively, it should be possible to change the port number of the web interface to 443, thus avoiding this issue all together. At least my guess is that this will work.</p>
<p>If you want a free hypervisor, but don&#8217;t want the trouble of maintaining an underlying operating system, I would recommend taking a look at <a href="http://vmware.com/products/esxi/">VMware ESXi</a>. <a href="http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/">I&#8217;ve written a blog post about it</a>. The only reason, as I can see, to run VMware Server is the hardware support, since the operating system takes care of this. VMware ESXi has limited hardware support by default. But there are ways to get <a href="http://www.vm-help.com/esx/esx3i/customize_oem_tgz.php">support for SATA controllers</a>, among other things.</p>
<p>Also; You might want to check out <a href="http://www.citrix.com/English/ps2/products/feature.asp?contentID=1686939">Citrix XenServer</a>, which also has been released for free. This is a bare-metal hypervisor, meaning you don&#8217;t need an underlying operating system. But I don&#8217;t have any experience with XenServer, so I can&#8217;t really give any advice or tips yet.</p>
<p><em>Credit:</em></p>
<p>[1] <a href="http://www.desktop-virtualization.com/2009/02/25/use-infrastructure-client-to-manage-vmware-server/">http://www.desktop-virtualization.com/2009/02/25/use-infrastructure-client-to-manage-vmware-server/<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.torh.net/2009/02/25/vi-client-and-vmware-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Citrix XenServer Available for Free</title>
		<link>http://blog.torh.net/2009/02/23/citrix-xenserver-available-for-free/</link>
		<comments>http://blog.torh.net/2009/02/23/citrix-xenserver-available-for-free/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:44:39 +0000</pubDate>
		<dc:creator>Tor Håkon Haugen</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[citrix]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://blog.torh.net/?p=402</guid>
		<description><![CDATA[Several news sites reports today that Citrix is going to make XenServer available free, which is based upon the open source Xen hypervisor. Last year VMware released their own hypervisor, ESXi, for free. Apparantly the big money isn&#8217;t in the hypervisor &#8230; <a href="http://blog.torh.net/2009/02/23/citrix-xenserver-available-for-free/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Several news sites reports today that Citrix is going to make <a href="http://blogs.techrepublic.com.com/hiner/?p=965">XenServer available free</a>, which is based upon the <a href="http://en.wikipedia.org/wiki/Xen">open source Xen hypervisor</a>. Last year VMware released their own <a href="http://vmware.com/products/esxi/">hypervisor, ESXi, for free</a>.</p>
<p>Apparantly the big money isn&#8217;t in the hypervisor anymore, but the technology to manage them. Giving away your product is the best way to get more customers.</p>
<p>Citrix says their hypervisor, XenServer, has a couple of features not available throught VMwares ESXi, at least not without opening your wallet. For instance, ESXi is a 32-bit bare-metal hypervisor, whereas XenServer is a 64-bit bear-metal hypervisor. XenServer can also handle up to 8 virtual CPUs, while ESXi only handles 4.</p>
<p>Citrix has released a <a href="http://citrix.com/English/ps2/products/feature.asp?contentID=1686939">list of features included</a> at no costs on their site.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.torh.net/2009/02/23/citrix-xenserver-available-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Threepwood Goes to VMware ESXi</title>
		<link>http://blog.torh.net/2009/02/22/threepwood-goes-to-vmware-esxi/</link>
		<comments>http://blog.torh.net/2009/02/22/threepwood-goes-to-vmware-esxi/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 19:24:43 +0000</pubDate>
		<dc:creator>Tor Håkon Haugen</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[compaq]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.torh.net/?p=380</guid>
		<description><![CDATA[My home server, Threepwood, named after the main character in the popular game series &#8220;Monkey Island&#8221;, has finally taken the step out of this world and into the virtual space. For a few years it resided within a Compaq Proliant &#8230; <a href="http://blog.torh.net/2009/02/22/threepwood-goes-to-vmware-esxi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My home server, Threepwood, named after the main character in the popular game series &#8220;Monkey Island&#8221;, has finally taken the step out of this world and into the virtual space.</p>
<p>For a few years it resided within a Compaq Proliant 400 with whooping 384MB of RAM and 450MHz CPU. Running Ubuntu Linux, this has actually been enough for most of the tasks. It has mainly been used to host a few blogs, <a href="http://journal.tormodh.net">my brother</a> and mine, thus running Apache2, MySQL and PHP5.</p>
<p>Now that<a href="http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/"> I&#8217;ve got VMware ESXi running</a>, I decided it was time to move already. To move it I used <a href="http://vmware.com/products/converter/">VMware Converter</a>, which can move physical machines into <a href="http://www.vmware.com/products/vi/esx/">VMware ESX</a> and <a href="http://www.vmware.com/products/esxi/">ESXi</a> while the source machine is online. To minimize data loss I stopped the Apache and MySQL services.</p>
<p>The conversion took about 1 hour, but then again I only had a 40GB hard drive, so times may vary depending on hard drive size and network capabilities.</p>
<p>After the conversion I took the time to upgrade the kernel and other packages. Until today my server had 294 days uptime, so one might say it was due for a new kernel. I also gave it some more memory to play with, 1596MB to be exact, and a 2.40GHz CPU.</p>
<p>Yeah, I know. I&#8217;m spoiling him.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.torh.net/2009/02/22/threepwood-goes-to-vmware-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running VMware ESXi Hypervisor</title>
		<link>http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/</link>
		<comments>http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 11:29:05 +0000</pubDate>
		<dc:creator>Tor Håkon Haugen</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.torh.net/?p=360</guid>
		<description><![CDATA[This guide applies to VMware ESXi 3.5.0 VMware ESXi is a free Hypervisor from VMware. In simple terms, a host for virtual machines. The difference from VMware Server, which also is a free Hypervisor, is that ESXi runs directly on &#8230; <a href="http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>This guide applies to VMware ESXi 3.5.0</p></blockquote>
<p><a href="http://www.vmware.com/products/esxi/">VMware ESXi</a> is a free Hypervisor from <a href="http://www.vmware.com">VMware</a>. In simple terms, a host for virtual machines. The difference from <a href="http://www.vmware.com/products/server/">VMware Server</a>, which also is <span style="text-decoration: line-through;">a</span> free <span style="text-decoration: line-through;">Hypervisor</span>, is that ESXi runs directly on the hardware whereas VMware Server need to run on top of another operating system.</p>
<p>When I first started thinking about virtualizing my home server, I initially though about VMware Server. Simply because that was the only free alternative I knew about. It was only when I attended a VMware Infrastructure course a few weeks ago I learned about ESXi. What intrigued me about ESXi was the fact it could boot from a USB pen drive.</p>
<p>But where VMware Servers can use of all the hardware available to the underlying operating system, ESXi has very limited hardware support. However, rules are meant to be broken. Right?</p>
<h2>Making a bootable ESXi USB pen drive:</h2>
<p>Let&#8217;s make a bootable ESXi USB pen drive. The easiest way to do this is using Linux and some more or less standard programs. You can also do this on Windows, just <a href="http://www.yellow-bricks.com/2008/07/29/esxi-35-update-2-on-a-usb-memory-key/">follow this guide from Yellow Bricks</a> which is the guide I used to make this one.</p>
<ol>
<li>Download the free ESXi ISO-image from VMware. You need to register so you can get your free licence code.</li>
<li>Mount the ISO-file. ( &#8220;<em>mount -o loop ESXi.iso /mnt/iso</em>&#8221; )</li>
<li>Extract &#8220;install.tgz&#8221; ( &#8220;<em>mkdir /root/esxi; tar xvf install.tgz -C /root/esxi</em>&#8221; )</li>
<li>Go to the directory where you unpacked the files, and then some. ( &#8220;<em>cd /root/esxi/usr/lib/vmware/installer</em>&#8221; )</li>
<li>Unzip the big-file. (&#8221; <em>bunzip2 VMware-VMvisor-big-3.5.0_Update_3-123629.i386.dd.bz2</em>&#8220;)</li>
<li>Place this image onto your USB stick. <strong>This WILL destroy all data on the USB pen drive.</strong> Also, you need to know which device your pen drive is. Mine was &#8220;/dev/sdb&#8221; ( &#8220;<em>dd if=VMware-VMvisor-big-3.5.0_Update_3-123629.i386.dd of=/dev/sdb</em>&#8221; )</li>
<li>Step 6 will take a while since we&#8217;re writing 750MB of data to the USB-stick. When it&#8217;s finished you will have stock ESXi installation on a bootable USB pen drive. Congrats!</li>
</ol>
<h2>More hardware support.</h2>
<p>As mentioned earlier, ESXi has very limited hardware support out of the box. However, the VMkernel itself has better hardware support which VMware doesn&#8217;t wants us to know about. You only need to find out how to enable it.</p>
<p>For my own part I added a 3Com network adapter, since there is no way my onboard Realtek is supported. 3Com and Intel cards should be a safe bet, but don&#8217;t take my word for it. Also I wanted to use the computers local SATA disks as datastores. Thus the hacking begin.</p>
<p>I used several hours on reading different websites on how to enable VMkernel to recognize my SATA controller, but I could have saved me the trouble. In the end I <a href="http://www.vm-help.com/esx/esx3i/customize_oem_tgz.php">found a site which already had the files ready to go.</a></p>
<h3>Short and simple.</h3>
<ol>
<li>Download the Community Unified oem.tgz file from <a href="http://www.vm-help.com/esx/esx3i/customize_oem_tgz.php">this lovely website</a>.</li>
<li>Mount the partition on the USB drive called Hypervisor1. This should be the second partition on you USB drive. Mine was &#8220;/dev/sdb2&#8243;. ( &#8220;<em>mount /dev/sdb2 /mnt/usb</em>&#8221; )</li>
<li>Replace the oem.tgz file on the USB drive with the one you downloaded. ( &#8220;<em>cp oem.tgz /mnt/usb/</em>&#8221; )</li>
<li>Umount and you&#8217;re done. ( &#8220;<em>umount /mnt/usb</em>&#8221; )</li>
</ol>
<p>I can&#8217;t guarantee that this setup will recognize your hardware, but it sure found mine. I couldn&#8217;t have made this guide without the information I found on the Internet, so it&#8217;s time for credit:</p>
<p>[1] <a href="http://www.grid.org/blog/cameron/development-using-vmware-server-esxi">http://www.grid.org/blog/cameron/development-using-vmware-server-esxi</a></p>
<p>[2] <a href="http://www.grid.org/blog/cameron/updating-vmware-esxi-disk-dump-file">http://www.grid.org/blog/cameron/updating-vmware-esxi-disk-dump-file</a></p>
<p>[3] <a href="http://www.yellow-bricks.com/2008/07/29/esxi-35-update-2-on-a-usb-memory-key/">http://www.yellow-bricks.com/2008/07/29/esxi-35-update-2-on-a-usb-memory-key/</a></p>
<p>[4] <a href="http://www.vm-help.com/esx/esx3i/customize_oem_tgz.php">http://www.vm-help.com/esx/esx3i/customize_oem_tgz.php</a></p>
<p><em>As always, comments are appreciated.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.torh.net/2009/02/22/running-vmware-esxi-hypervisor/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

