<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Norul Mioritic</title>
	<atom:link href="http://norulmioritic.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://norulmioritic.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 23 Sep 2010 07:46:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='norulmioritic.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Norul Mioritic</title>
		<link>http://norulmioritic.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://norulmioritic.wordpress.com/osd.xml" title="Norul Mioritic" />
	<atom:link rel='hub' href='http://norulmioritic.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Update: Large packets gone missing</title>
		<link>http://norulmioritic.wordpress.com/2010/09/15/large-packets-gone-missing/</link>
		<comments>http://norulmioritic.wordpress.com/2010/09/15/large-packets-gone-missing/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 12:13:04 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://norulmioritic.wordpress.com/?p=66</guid>
		<description><![CDATA[Last week I encountered a strange networking problem:  I could ssh into a server and work fine but when I tried to copy something with scp it was very very slow, it seemed that large packets were being dropped. Let me tell you first some background info: we set up a new application a few [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=66&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I encountered a strange networking problem:  I could ssh into a server and work fine but when I tried to copy something with scp it was very very slow, it seemed that large packets were being dropped.</p>
<p>Let me tell you first some background info: we set up a new application a few months ago with a somewhat complex architecture deployed on a two host VMware cluster (several Linux web application servers published through a Linux load balancer). Since a few weeks ago the application owners were complaining that copying files through SSH/SCP was extremely slow through the WAN from one server.</p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/09/schemaretea.png"><img class="alignnone size-full wp-image-69" title="SchemaRetea" src="http://norulmioritic.files.wordpress.com/2010/09/schemaretea.png?w=490" alt=""   /></a></p>
<p>At first, I thought the cause was some MTU issue due to restricted firewall configurations or some problem with the VM or custom gateway because between the servers in the same VLAN everything was ok. Then the users found out that other servers were having the same problem and all were on the same host. So we started to do some packet captures to see what was going on (click on the pictures to see their full width):</p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/09/packetcapture2.png"><img class="alignnone size-large wp-image-71" title="packetcapture2" src="http://norulmioritic.files.wordpress.com/2010/09/packetcapture2.png?w=1024&#038;h=497" alt="" width="1024" height="497" /></a></p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/09/packetcapture.png"><img class="alignnone size-large wp-image-70" title="packetcapture" src="http://norulmioritic.files.wordpress.com/2010/09/packetcapture.png?w=1024&#038;h=430" alt="" width="1024" height="430" /></a></p>
<p>So it seemed that the gateway was receiving packets larger than 1500 with DF bit set and the app server ignored the ICMP messages and kept on sending non fragmentable large messages! At first I didn&#8217;t understand what could be going on. We tried uninstalling VMware Tools and it magically started working&#8230; Installed them back, stopped working. During the Linux boot process I noticed something about activating TCP Segmentation offload. Disabled this using <strong>ethtool -K eth0 tso off</strong>, and BINGO! ssh copying started to work!</p>
<p>So it seems that VMware enhanced driver optimizes intrahost communication by sending the whole tcp segment to the next virtual machine but ignores the possibility of it being a router and the packet marked as non-fragmentable! We are taking this to VMware support, I don&#8217;t think it should be happening like this.</p>
<p><strong>Update:</strong> VMware support responded with this: <a href="http://kb.vmware.com/kb/1010939">http://kb.vmware.com/kb/1010939<br />
</a>So it&#8217;s a known issue <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=66&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/09/15/large-packets-gone-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/09/schemaretea.png" medium="image">
			<media:title type="html">SchemaRetea</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/09/packetcapture2.png?w=1024" medium="image">
			<media:title type="html">packetcapture2</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/09/packetcapture.png?w=1024" medium="image">
			<media:title type="html">packetcapture</media:title>
		</media:content>
	</item>
		<item>
		<title>Mem.AllocGuestLargePage</title>
		<link>http://norulmioritic.wordpress.com/2010/03/07/mem-allocguestlargepage/</link>
		<comments>http://norulmioritic.wordpress.com/2010/03/07/mem-allocguestlargepage/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 17:21:42 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://norulmioritic.wordpress.com/?p=59</guid>
		<description><![CDATA[I think everybody who upgraded to vSphere on Intel Nehalem processors noticed that there is no more Page Sharing. I was expecting this to happen after reading about it but I didn&#8217;t imagine it would be that bad, it turned out we were very dependent on Page Sharing. So I configured Mem.AllocGuestLargePage to 0 on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=59&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think everybody who upgraded to vSphere on Intel Nehalem processors noticed that there is no more Page Sharing. I was expecting this to happen after reading about it but I didn&#8217;t imagine it would be that bad, it turned out we were very dependent on Page Sharing.</p>
<p>So I configured Mem.AllocGuestLargePage to 0 on some hosts, rebooted and voila, we have Transparent Page Sharing again (Memory Granted-Memory Consumed=20-25GB, cool <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>After this I tried to measure the performance loss using 7-Zip, a simple benchmark that stresses memory and CPU but I could not find any measurable difference between hosts using this setting and hosts using default settings (I did find some minor differences but it was actually faster when Mem.AllocGuestLargePage was disabled, probably because of differences in number of DIMM slots occupied &#8211; one host had 12x4GB DIMMS, another one 6x8GB DIMMS or Power Management settings or other activities on the hosts). I tried both 32 bit and 64 bit operating systems, even Windows 2008 but nothing emerged. The performance gain because of lower memory usage and no more ballooning and swaping on the other hand is definitely measurable <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>So go ahead and test and activate this setting, it will save you tons of RAM!</p>
<p>For more information about this setting, check out <a href="http://www.vmware.com/files/pdf/large_pg_performance.pdf" target="_blank">http://www.vmware.com/files/pdf/large_pg_performance.pdf</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=59&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/03/07/mem-allocguestlargepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>
	</item>
		<item>
		<title>My journey to vSphere (part 3)</title>
		<link>http://norulmioritic.wordpress.com/2010/02/27/my-journey-to-vsphere-part-3/</link>
		<comments>http://norulmioritic.wordpress.com/2010/02/27/my-journey-to-vsphere-part-3/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 14:50:26 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://norulmioritic.wordpress.com/?p=48</guid>
		<description><![CDATA[Migrating Virtual Machines I decided to use VMWare Update Manager to help upgrade the virtual machines like this: In the Update Manager VM View I created a baseline group that contained both VMWare tools upgrade and the VM Hardware upgrade baselines In the VMs and Templates I selected the Datacenter and in the Update Manager [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=48&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Migrating Virtual Machines</h1>
<p>I decided to use VMWare Update Manager to help upgrade the virtual machines like this:</p>
<ol>
<li>In the <strong>Update Manager</strong> VM View I created a baseline group that contained both VMWare tools upgrade and the VM Hardware upgrade baselines</li>
<li>In the <strong>VMs and Templates </strong>I selected the Datacenter and in the Update Manager tab I Scanned for VM Hardware and Tools upgrades to check that nothing is needed before we move the VMs</li>
<li>I shut down the VMs en masse (not too many at a time so that we don’t overwork the host and storage)</li>
<li>When they are down I migrate them to the new cluster (I chose this approache so that I don’t enable Enhanced VMotion Compatibility as all new servers will run with Nehalem CPUs) and power them on</li>
<li>After I waited for them to up properly I scanned again for VM updates in the datacenter tab (this was needed because the VMs are scattered around in a quite elaborate folder structure)</li>
<li>I then clicked <strong>Remediate </strong>and checked that only the right VMs are in the list to be upgraded and finished the wizard without creating a snapshot (no need to snapshot VM Tools upgrade)</li>
<li>After the task finished I let everything settle down a few minutes and then:
<ol>
<li>Connected on all Windows 2008 machines to make online the offline disks (see <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013109">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013109</a> ). I did this manuall because we had only a few Win 2008 Ent machines</li>
<li>Rebooted all the Virtual Machines once more (after the VM Hardware upgrade Windows redetects devices and asks for a reboot; dynamic DNS records are also not registered properly)</li>
</ol>
</li>
</ol>
<p>So now I have a new beautiful working virtual infrastructure, yuppiee!</p>
<p>The performance benefit of this upgrade is beyond expectations, CPU Ready% got to almost 0 and CPU Usage went to almost half on the most used machines – see the following graphs for 4 various Virtual Machines running SQL, an Oracle Monitoring app or System Center Configuration Manager:</p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/02/cpu12.png"><img class="alignnone size-full wp-image-52" title="CPUUpgrade1" src="http://norulmioritic.files.wordpress.com/2010/02/cpu12.png?w=490&#038;h=326" alt="" width="490" height="326" /></a></p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/02/cpu21.png"><img class="alignnone size-full wp-image-53" title="CPUUpgrade2" src="http://norulmioritic.files.wordpress.com/2010/02/cpu21.png?w=490&#038;h=325" alt="" width="490" height="325" /></a></p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/02/cpu3.png"><img class="alignnone size-full wp-image-54" title="CPU3" src="http://norulmioritic.files.wordpress.com/2010/02/cpu3.png?w=490&#038;h=321" alt="" width="490" height="321" /></a></p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/02/cpu4.png"><img class="alignnone size-full wp-image-55" title="CPU4" src="http://norulmioritic.files.wordpress.com/2010/02/cpu4.png?w=490&#038;h=325" alt="" width="490" height="325" /></a></p>
<p>There was a downside to all this though <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> : due to EPT features in Nehalem I get much less Transparent Page Sharing and thus much more memory usage &#8211; see <a title="LargePagePerformance" href="http://www.vmware.com/files/pdf/large_pg_performance.pdf" target="_blank">http://www.vmware.com/files/pdf/large_pg_performance.pdf</a> . I probably will disable the allocation of large pages to guests on some hosts that run less important VMs.</p>
<p>In conclusion I like vSphere a lot, the upgrade to 4.0 was MUCH easier than the upgrade to 3.0, thank you VMWare for this fine product! Storage VMotion rules, it&#8217;s so easy now to move VMs around datastores!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=48&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/02/27/my-journey-to-vsphere-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/02/cpu12.png" medium="image">
			<media:title type="html">CPUUpgrade1</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/02/cpu21.png" medium="image">
			<media:title type="html">CPUUpgrade2</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/02/cpu3.png" medium="image">
			<media:title type="html">CPU3</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/02/cpu4.png" medium="image">
			<media:title type="html">CPU4</media:title>
		</media:content>
	</item>
		<item>
		<title>My journey to vSphere (part 2)</title>
		<link>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-2/</link>
		<comments>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-2/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 12:41:46 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://norulmioritic.wordpress.com/?p=14</guid>
		<description><![CDATA[Upgrading hosts I decided that the hosts will have fresh installs and form a new cluster since we will replace all our existing hosts with  new hardware (I see no reason to do upgrade to the hosts, it&#8217;s cleaner and safer to just reinstall, maybe only if you have hundreds of hosts &#8211; but we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=14&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Upgrading hosts</h1>
<p>I decided that the hosts will have fresh installs and form a new cluster since we will replace all our existing hosts with  new hardware (I see no reason to do upgrade to the hosts, it&#8217;s cleaner and safer to just reinstall, maybe only if you have hundreds of hosts &#8211; but we only had 4).</p>
<ol>
<li>I made sure the hosts were running the latest firmware by checking the HP site</li>
<li>I prepared an installation script customized for each server with the IP address (it’s a pain to change it after the server is installed). I received inspiration from <a href="http://blog.laspina.ca/ubiquitous/automating-vsphere-esx4-host-installations" target="_blank">here</a>.</li>
<li>I copied the content of the ESX CD to a subfolder on the WebServer (such as esx4.0)</li>
<li>I entered BIOS setup and made sure all virtualization options were active and changed in <strong>Power Management Options</strong> <strong>HP Power Regulator</strong> to <strong>OS Control Mode </strong>so that ESX can control processor frequency and manage power savings</li>
<li>Then I booted the ESX CD and chose <strong>ESX Scripted Install using USB ks.cfg</strong>, pressed F2 and changed <strong>ks=USB </strong>to <strong>ks=http://__WEBSERVER__/ks__ServerName__.cfg . </strong><a href="http://norulmioritic.wordpress.com/download/ks-cfg/" target="_blank">Here is the script</a> template I used. I configured the installation to download the files from the WebServer because I used iLo to boot the ESX CD which is very sloooowww. By using the webserver the installation went much faster. If you already configured VLANs trunking on the network ports you need to specify the VLAN that will be used to access the webserver by passing to the kernel at boot also <strong>vlanid=xxx</strong>.</li>
</ol>
<p><strong><a href="http://norulmioritic.files.wordpress.com/2010/01/esxboot.png"><img class="alignnone size-full wp-image-17" title="esxboot" src="http://norulmioritic.files.wordpress.com/2010/01/esxboot.png?w=490" alt=""   /></a><br />
</strong></p>
<ol>
<li>﻿If you put the ks.cfg and ESX CD on an IIS server you need to register the cfg (text/plain) and pkl (application/octet-stream) to MIME Types under HTTP Headers int the site properties otherwise it won’t be visible. Also you need to give NTFS read rights to the IIS anonymous user</li>
</ol>
<p><a href="http://norulmioritic.files.wordpress.com/2010/01/mimecfg1.png"><img class="alignnone size-full wp-image-16" title="Mimecfg" src="http://norulmioritic.files.wordpress.com/2010/01/mimecfg1.png?w=490" alt=""   /></a></p>
<ol>
<li>After reboot I logged in at the console and changed the root password with the <strong>passwd </strong>command</li>
<li>I then logged in with vSphere client and checked the installation</li>
<li>Checked the time on the host and made sure NTP service was started (<strong>Configuration </strong>– <strong>Time Configuration</strong>) &#8211; I couldn&#8217;t get the install script to properly configure NTP during the installation.</li>
<li>Enabled dynamic PowerCPUPolicy to activate power savings (<strong>Configuration </strong>– <strong>Advanced Settings – Power – Power.CPUPolicy</strong>)</li>
<li>Time to join vCenter!</li>
<li>Networking configuration:</li>
<li>
<ol>
<li>We are using blades so we are limited to two network cards per blade (it would cost too much to buy two additional switches and NICs for each blade and our VMs don&#8217;t do that much traffic to justify the investment &#8211; I see no more than 100Mbps of traffic). In order to separate VM traffic from Kernel and Console traffic but still have redundancy built-in I made the following setup:</li>
</ol>
<ul>
<li>I created a single Virtual Switch with both network cards connected to all VLANs</li>
<li>I configured vmnic1 as active and vmnic0 as standby adapter</li>
<li>Then, for VMKernel and Service Console portgroups, I configured to override default NIC Teaming and configured the other way around (vmnic0 active and vmnic1 standby)</li>
<li>Using this setup VMotion traffic goes through vmnic0 and VM traffic through vmnic1 if both nics are ok and when one nic fails I have no interruption</li>
</ul>
<p><a href="http://norulmioritic.files.wordpress.com/2010/01/vswitch.png"><img class="alignnone size-full wp-image-39" title="vSwitch" src="http://norulmioritic.files.wordpress.com/2010/01/vswitch.png?w=490&#038;h=627" alt="" width="490" height="627" /></a></li>
<li><a href="http://norulmioritic.files.wordpress.com/2010/01/vmkernelteaming.png"><img class="alignnone size-full wp-image-40" title="VMKernelTeaming" src="http://norulmioritic.files.wordpress.com/2010/01/vmkernelteaming.png?w=490&#038;h=605" alt="" width="490" height="605" /></a>
<ol>
<li>Created the VMKernel portgroup and enabled VMotion</li>
<li>Used a nice PowerCLI script to create the other portgroups from CSV &#8211; <a href="http://norulmioritic.wordpress.com/download/portgroup-script-ps1/" target="_blank">here it is</a></li>
<li>Storage configuration
<ol>
<li>I zoned the new hosts In the FC Switches (I use single initiator policy so for each HBA port I created a new zone with all the storage controllers)</li>
<li>Added the hosts in EVA CommandView</li>
<li>In order to give access to all the LUNs easily I used the EVA Storage Scripting utility (sssu):
<ol>
<li> i.      I connected to the CommandView server</li>
<li> ii.      I selected the EVA system (<strong>select sys</strong> <strong><em>EVA_Name</em></strong>)</li>
<li> iii.       I exported the current configuration (<strong>capture conf <em>file_name</em></strong>)</li>
<li> iv.      Edited the file to contain only the <strong>ADD LUN</strong> commands for one host and replaced the host name with the new name</li>
<li> v.      Copied the commands from the file and pasted them in the SSSU</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
<li>Rescanned for new storage (<strong>Configuration – Storage Adapters – Rescan</strong>)</li>
<li>Installing the latest updates
<ol>
<li>In Hosts view I selected the update manager tab</li>
<li>I attached all the updates baselines, scanned the host and clicked Remediate</li>
<li>After reboot I found out that the build number did not change so I started investigating. It turned out to be normal:</li>
</ol>
</li>
</ol>
<p><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1012514">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1012514</a></p>
<p>Output of <strong>rpm -qa | grep -i vmware</strong>:</p>
<p><a href="http://norulmioritic.files.wordpress.com/2010/01/rpms.png"><img class="alignnone size-full wp-image-18" title="rpms" src="http://norulmioritic.files.wordpress.com/2010/01/rpms.png?w=490&#038;h=606" alt="" width="490" height="606" /></a></p>
<p>Output of <strong>esxupdate query</strong></p>
<p><strong><a href="http://norulmioritic.files.wordpress.com/2010/01/esxupdatequery.png"><img class="alignnone size-full wp-image-19" title="esxupdatequery" src="http://norulmioritic.files.wordpress.com/2010/01/esxupdatequery.png?w=490&#038;h=79" alt="" width="490" height="79" /></a><br />
</strong></p>
<p>Cool, everything got installed properly, host is ready for VMs!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=14&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/esxboot.png" medium="image">
			<media:title type="html">esxboot</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/mimecfg1.png" medium="image">
			<media:title type="html">Mimecfg</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/vswitch.png" medium="image">
			<media:title type="html">vSwitch</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/vmkernelteaming.png" medium="image">
			<media:title type="html">VMKernelTeaming</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/rpms.png" medium="image">
			<media:title type="html">rpms</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/esxupdatequery.png" medium="image">
			<media:title type="html">esxupdatequery</media:title>
		</media:content>
	</item>
		<item>
		<title>My journey to vSphere (part 1)</title>
		<link>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-1/</link>
		<comments>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-1/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:32:40 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://norulmioritic.wordpress.com/?p=7</guid>
		<description><![CDATA[Introduction This is a series of posts where I will tell how I upgraded my environment to ESX 4.0. Happy reading! Goals Migrate our current environment consisting of four overworked ESX 3.5 U4 hosts running 111 active VMs to ten vSphere 4.0 U1 shiny new G6 Nehalem wonderful goodies Modify as little as possible from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=7&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Introduction</h1>
<p>This is a series of posts where I will tell how I upgraded my environment to ESX 4.0.</p>
<p>Happy reading!</p>
<h1>Goals</h1>
<ol>
<li>Migrate our current environment consisting of four overworked ESX 3.5 U4 hosts running 111 active VMs to ten vSphere 4.0 U1 shiny new G6 Nehalem wonderful goodies</li>
<li>Modify as little as possible from defaults – „Everything should be made as simple as possible, but not simpler.”</li>
<li>Don’t screw up too many things during the process <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<h1>Plan from 10.000ft</h1>
<ol>
<li>Upgrade Virtual Center</li>
<li>Install vSphere on the hosts and connect them to vCenter</li>
<li>Migrate Virtual Machines</li>
</ol>
<p>Sounds easy, doesn’t it?</p>
<h1>Background</h1>
<p>The current environment consists of 4 ESX 3.5 U4 hosts running on HP Bl460 G5. VirtualCenter runs as a Win 2003 virtual machine and connects to a separate physical SQL 2005 SP3 server. Storage is hosted on two HP EVA systems connected through 4Gb Fibre Channel.</p>
<p>In order to simplify the SAN I chose to configure the blade chassis switches in Access Gateway mode (in this mode they use NPIV to present all the blades on the master switch on a single port and the blade switch is transparent). Using this feature I have only one real Fibre Channel switch where I setup zoning and the others are just &#8220;port extenders&#8221;. For zoning I chose the &#8220;single initiator&#8221; strategy where I create a single zone for each server with all the storage ports included on each redundant switch (I tried at first to create a zone for each storage port and each server but the configuration that would result would be extremely difficult to manage and as far as I found on the internet there is no downside to my strategy).</p>
<h1>Upgrading Virtual Center</h1>
<ol>
<li>I backed-up the VirtualCenter database like  good boy</li>
<li>I installed the new version of the vSphere client on my machine</li>
<li>In Virtual Center client I renamed the old virtual machine so that I could deploy a shiny new Windows 2008 64bit virtual machine with the old name</li>
<li>I gave the new VM 3GB of RAM, 2vCPUs and two 20GB disks (minimum supported requirements as we were already oversubscribed with resources)</li>
<li>I made a note of the host where the new and old Virtual Center VMs were running</li>
<li>I forgot to copy the SSL files from the old VM <strong>C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\SSL </strong>to a safe location before going to the next step so don’t you do like me <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ! Also do copy the <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1005593">sysprep</a> files.</li>
<li>Stopped the old VM and recreated its account in Active Directory</li>
<li>Connected directly to the host of the new VM with the vSphere client</li>
<li>Configured the operating system of the new VM and joined the domain</li>
<li>I then installed the 64bit SQL native client for both <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=b33d2c78-1059-4ce2-b80d-2343c099bcb4">SQL 2008</a> and <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=536fd7d5-013f-49bc-9fc7-77dede4bb075">SQL 2005</a> as we will migrate the SQL to 2008 in the future and configured the ODBC datasource  by running <strong>c:\Windows\SysWOW64\odbcad32.exe</strong> and selecting the SQL Native Driver (choose version 10 if you have SQL2008) and SQL authentication with the old username (you do remember it, don’t you?). You can give any name to the datasource.</li>
<li>Now I copied the SSL files in <strong>C:\Users\All Users\VMware\VMware VirtualCenter\SSL </strong>.<strong> </strong>I couldn’t browse the folder using Explorer so I started PowerShell as Administrator and issued a mkdir for the folder and then copied the files using the copy command.</li>
<li>To make things upgrade faster I configured <strong>Bulk Logged</strong> recovery model in the database options in SQL Management Console</li>
</ol>
<p><a href="http://norulmioritic.files.wordpress.com/2010/01/vcenterdbproperties.png"><img class="alignnone size-full wp-image-8" title="vCenterDBProperties" src="http://norulmioritic.files.wordpress.com/2010/01/vcenterdbproperties.png?w=490&#038;h=440" alt="" width="490" height="440" /></a></p>
<ol>
<li>Started the vCenter setup and sailed through the installation choosing to run the vCenter as <strong>SYSTEM</strong>, otherwise I left the defaults. The installation took about 16 minutes. When it finished it upgraded the vpx clients on all the hosts without problems (this happened very quickly, less than a minute).</li>
<li>Started the vCenter client and saw no issues – yuppiee!</li>
<li>Actually there were some <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . It lost the 3.5 Licensing server. I put it back but I still had no VMotion. After googling a little I disabled and enabled back VMotion on the VMKernel network port group – this solved it. Also the permissions we assigned on one folder of virtual machines were gone – you have been warned <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
</ol>
<p><a href="http://norulmioritic.files.wordpress.com/2010/01/vmkernelproperties.png"><img class="alignnone size-full wp-image-9" title="VMKernelProperties" src="http://norulmioritic.files.wordpress.com/2010/01/vmkernelproperties.png?w=490&#038;h=216" alt="" width="490" height="216" /></a></p>
<ol>
<li>Copied back the <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1005593">sysprep</a> files from where I saved them</li>
<li>Upgraded update manager and Converter and installed the plugins on my Admin PC</li>
<li>Activated back Full Recovery Logging on the database</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=7&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/01/29/my-journey-to-vsphere-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/vcenterdbproperties.png" medium="image">
			<media:title type="html">vCenterDBProperties</media:title>
		</media:content>

		<media:content url="http://norulmioritic.files.wordpress.com/2010/01/vmkernelproperties.png" medium="image">
			<media:title type="html">VMKernelProperties</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://norulmioritic.wordpress.com/2010/01/29/hello-world/</link>
		<comments>http://norulmioritic.wordpress.com/2010/01/29/hello-world/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 10:30:21 +0000</pubDate>
		<dc:creator>mikidutzaa</dc:creator>
				<category><![CDATA[Various]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This is my first blog post. I started this blog to document my implementation of VMWare so that others will not make the same mistakes I did . I hope you will find my experience useful, I wish you happy reading!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=1&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first blog post.</p>
<p>I started this blog to document my implementation of VMWare so that others will not make the same mistakes I did <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I hope you will find my experience useful, I wish you happy reading!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/norulmioritic.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/norulmioritic.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/norulmioritic.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=norulmioritic.wordpress.com&amp;blog=11727011&amp;post=1&amp;subd=norulmioritic&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://norulmioritic.wordpress.com/2010/01/29/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f5adba5a47cb440bd320b743a29c5053?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mikidutzaa</media:title>
		</media:content>
	</item>
	</channel>
</rss>
