<?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>Professional VMware &#187; ESX</title> <atom:link href="http://professionalvmware.com/category/esx/feed/" rel="self" type="application/rss+xml" /><link>http://professionalvmware.com</link> <description>How Many Turtles Can You Fit On A Rock?</description> <lastBuildDate>Thu, 24 May 2012 13:39:29 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>vCenter Orchestrator &#8211; Add NFS Datastore</title><link>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/</link> <comments>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/#comments</comments> <pubDate>Tue, 16 Aug 2011 19:46:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[automation]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[orchestrator]]></category> <category><![CDATA[vCO]]></category> <category><![CDATA[vSphere]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/</guid> <description><![CDATA[Was surprised this wasn’t here by default, but alas, out of the box vCO does not ship with a workflow to manage an NFS datastore. Thanks to the VMware communities for a bit of scripting, I was able to put one together. First we’ll break out the components, then show you how it runs. Finally [...]]]></description> <content:encoded><![CDATA[<p></p><p>Was surprised this wasn’t here by default, but alas, out of the box vCO does not ship with a workflow to manage an NFS datastore.</p><p>Thanks to the VMware communities for a bit of scripting, I was able to put one together. First we’ll break out the components, then show you how it runs. Finally you’ll be able to pull it down.</p><h3>Inputs:</h3><p>So first we need to tell vCO where to find the NFS datastore as well as what host we are adding it to:<br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image5.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb5.png" width="479" height="109"></a></p><p>If you can’t read the above, no worries, I can’t either, so I’ve also got this handy table:<br
/> <br
/><table
border="0" cellspacing="0" cellpadding="2" width="527"><tbody><tr><td
valign="top" width="133">Name</td><td
valign="top" width="133">Type</td><td
valign="top" width="259">Description</td></tr><tr><td
valign="top" width="133">Host</td><td
valign="top" width="133">VC:HostSystem</td><td
valign="top" width="259">Host to connect datastore to</td></tr><tr><td
valign="top" width="133">DatastoreName</td><td
valign="top" width="133">string</td><td
valign="top" width="259">Name for Datastore</td></tr><tr><td
valign="top" width="133">remoteHost</td><td
valign="top" width="133">string</td><td
valign="top" width="259">Hostname or IP for NFS server</td></tr><tr><td
valign="top" width="133">remotePath</td><td
valign="top" width="133">string</td><td
valign="top" width="259">Path to Exports</td></tr></tbody></table><h3>Schema:</h3><p>Now that we have our inputs, let’s build out the actual flow-charty bits for the workflow:<br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image6.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb6.png" width="192" height="203"></a></p><p>Yeah, pretty much that simple. Start, scripting block, stop.</p><h3>Scripting!</h3><p>Now for the awesomesauce that makes this work:</p><p><font
size="2" face="Courier New">var datastore_mgr = Host.configManager.datastoreSystem;<br
/>&nbsp;<br
/>var new_spec = new VcHostNasVolumeSpec();<br
/>new_spec.accessMode=VcHostMountMode._readWrite;<br
/>new_spec.localPath=DatastoreName;<br
/>new_spec.remoteHost=remoteHost;<br
/>new_spec.remotePath=remotePath;<br
/>new_spec.type=&#8221;nfs&#8221;;</font></p><p><font
size="2" face="Courier New">try {<br
/>&nbsp;&nbsp;&nbsp; var newDatastore=datastore_mgr.createNasDatastore(new_spec);<br
/>}</font></p><p><font
size="2" face="Courier New">catch (ex) {<br
/>&nbsp;&nbsp;&nbsp; System.log ( ex + &#8221; creating datastore &#8221; + remoteHost + &#8220;:&#8221; + remotePath + &#8221; on &#8221; + Host.name + &#8221; as datastore &#8221; + DatastoreName );<br
/>}</font></p><p>Note: Parts of this script were borrowed from the VMware communities <a
href="http://communities.vmware.com/message/1548314?tstart=0">here</a>. Also found this <a
href="http://communities.vmware.com/message/1548314?tstart=0">here</a>.</p><h3>Running:</h3><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image7.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb7.png" width="474" height="132"></a></p><h3>Results:</h3><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image8.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb8.png" width="356" height="101"></a></p><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image9.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb9.png" width="353" height="78"></a></p><h3>Summary</h3><p>So, the workflow itself is kinda useful for a single host, it becomes more powerful when you embed it within another workflow to do say all hosts in a cluster. However, that’s an activity for the reader.</p><h3>Download</h3><p>The workflow can be downloaded from <a
href="http://professionalvmware.com/workflows/Add NFS Datastore.workflow">here</a>!</p><h3>More Info</h3><p>We’ve talked about vCO extensively in the past… you can find some additional info <a
href="http://professionalvmware.com/?s=orchestrator">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/08/vcenter-orchestrator-add-nfs-datastore/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Prime Numbers, PI &amp; VMs</title><link>http://professionalvmware.com/2011/08/prime-numbers-pi-vms/</link> <comments>http://professionalvmware.com/2011/08/prime-numbers-pi-vms/#comments</comments> <pubDate>Tue, 02 Aug 2011 04:06:33 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[CPU]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/08/prime-numbers-pi-vms/</guid> <description><![CDATA[Since vSphere added the ability to have oddly numbered non power of two vCPU configurations, I’ve wondered what it’d be like to run a VM with an odd number. Will Windows react oddly? etc? I also had some curiosity around doing similar for non standard amounts of ram (non power’s of two or multiples of [...]]]></description> <content:encoded><![CDATA[<p></p><p>Since vSphere added the ability to have oddly numbered non power of two vCPU configurations, I’ve wondered what it’d be like to run a VM with an odd number. Will Windows react oddly? etc?</p><p>I also had some curiosity around doing similar for non standard amounts of ram (non power’s of two or multiples of 1024).</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/08/image.png"><img
style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/08/image_thumb.png" width="346" height="64"></a></p><p>When changing resources on my vCenter VM I decided to take the plunge, Prime numbered CPU’s and 2PI * 1024 (rounded) MB of ram. Into it a few months now and so far so good!</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/08/prime-numbers-pi-vms/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>ESX is Dead. Long Live the King.</title><link>http://professionalvmware.com/2011/05/esx-is-dead-long-live-the-king/</link> <comments>http://professionalvmware.com/2011/05/esx-is-dead-long-live-the-king/#comments</comments> <pubDate>Tue, 10 May 2011 13:04:01 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[migration]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/05/esx-is-dead-long-live-the-king/</guid> <description><![CDATA[So this happened. VMware has pulled the ESX Classic binaries from being available as a direct download: While they do provide a download link for ESX classic, it sends a pretty clear message… If you haven’t made migration plans, NOW is the time to do so. Thankfully, they’ve not left folks completely out to dry [...]]]></description> <content:encoded><![CDATA[<p></p><p>So <a
href="http://virtualization.info/en/news/2011/05/goodbye-esx.html">this</a> happened. VMware has pulled the ESX Classic binaries from being available as a direct download:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/05/image11.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/05/image_thumb11.png" width="459" height="116"></a></p><p>While they do provide a download link for ESX classic, it sends a pretty clear message… If you haven’t made migration plans, NOW is the time to do so.</p><p>Thankfully, they’ve not left folks completely out to dry and have provided some basic ESXi migration guidance <a
href="http://blogs.vmware.com/esxi/2011/05/migrating-to-esxi-part-1-are-you-ready-for-esxi.html">here</a>.</p><p>Additionally, I’d suggest as a first step, installing ESXi as a VM inside VMware Fusion or Workstation to become familiar with it before migrating your production hosts. Like using Fusion/Workstation for other test/dev workloads, this should be no different. Test your tools, agents, processes, etc against the VM image before blowing away a production host.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/05/esx-is-dead-long-live-the-king/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Book Reviews &#8211; ESXi in the Enterprise</title><link>http://professionalvmware.com/2011/04/book-reviews-esxi-in-the-enterprise/</link> <comments>http://professionalvmware.com/2011/04/book-reviews-esxi-in-the-enterprise/#comments</comments> <pubDate>Mon, 25 Apr 2011 17:53:58 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[books]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[reviews]]></category> <category><![CDATA[vSphere]]></category> <category><![CDATA[book]]></category> <category><![CDATA[review]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/04/book-reviews-esxi-in-the-enterprise/</guid> <description><![CDATA[Amazon posted my 4 star review of Ed Haletky’s (@Texiwill) updated VMware ESX and ESXi in the Enterprise. Let me start with saying I&#8217;ve read the first edition of this book and Ed&#8217;s Security book and found both to be excellent. As this book was a second edition, I focused my reading on those updated [...]]]></description> <content:encoded><![CDATA[<p></p><p>Amazon posted my 4 star review of Ed Haletky’s (@Texiwill) updated <a
href="http://amzn.to/gh7G26">VMware ESX and ESXi in the Enterprise.</a></p><blockquote><p>Let me start with saying I&#8217;ve read the first edition of this book and Ed&#8217;s Security book and found both to be excellent.</p><p>As this book was a second edition, I focused my reading on those updated areas and there were a few. As always Ed provided a good balance between detail and real world examples/implementations that carry the weight of his experience with VMware on the whole.</p><p>I&#8217;d recommend this book for those getting into their first few ESX/ESXi implementations, and to supplement the official VMware courseware with real world examples.</p></blockquote><p>All and all a good volume to get yourself going with some real world ESXi/vSphere implementation.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/04/book-reviews-esxi-in-the-enterprise/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The IPocalypse Cometh &#8211; Are You Ready?</title><link>http://professionalvmware.com/2011/02/the-ipocalypse-cometh-are-you-ready/</link> <comments>http://professionalvmware.com/2011/02/the-ipocalypse-cometh-are-you-ready/#comments</comments> <pubDate>Thu, 03 Feb 2011 18:04:08 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[4.1]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esx3.5]]></category> <category><![CDATA[IPocalypse]]></category> <category><![CDATA[IPv6]]></category> <category><![CDATA[vSphere]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[esxi]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2011/02/the-ipocalypse-cometh-are-you-ready/</guid> <description><![CDATA[Maybe not in the fall out bunker sense ready, this isn’t Y2K all over again… not yet anyways. Before the hysteria engine cranks up to full speed, I figured it was time to give you some tips to make sure you are ready. Note, I’m only going to cover making sure your ESX hosts are [...]]]></description> <content:encoded><![CDATA[<p></p><p>Maybe not in the fall out bunker sense ready, this isn’t Y2K all over again… not yet anyways.</p><p>Before the hysteria engine cranks up to full speed, I figured it was time to give you some tips to make sure you are ready. Note, I’m only going to cover making sure your ESX hosts are ready. There are plenty of resources out there for the remainder of your infrastructure.</p><h3>Check your hypervisors to see if IPv6 is enabled:</h3><h4>Single Host &#8211; VI Client</h4><ol><li>Log into the VI Client</li><li>Select the host, then “Configuration”</li><li>Select “Networking”</li><li>Finally “Properties…” <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/02/image.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/02/image_thumb.png" width="377" height="145" /></a></li><li>In the resulting window lies your answer: <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/02/image1.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/02/image_thumb1.png" width="377" height="149" /></a></li></ol><h4>Single Host &#8211; CLI</h4><ol><li>esxcfg-vmknic -l <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/02/image2.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/02/image_thumb2.png" width="466" height="52" /></a></li></ol><h4>Single Host &#8211; PowerCLI</h4><ol><li>Get-VMHost | Get-VMHostNetworkAdapter | Select IPv6Enabled <br
/><a
href="http://professionalvmware.com/wp-content/uploads/2011/02/image3.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/02/image_thumb3.png" width="466" height="120" /></a></li></ol><h4>Multiple Hosts &#8211; PowerCLI</h4><p><font
face="Courier New"># Generic e-mail script <br
/>#vCenters <br
/>$hosts = @( <br
/>&#160;&#160;&#160; &quot;&quot; <br
/>);</font></p><p><font
face="Courier New">$user = &quot;&quot; <br
/>$password = &quot;&quot;</font></p><p><font
face="Courier New"># Connect to each vCenter &amp; Check for hosts without IPv6 <br
/>Connect-VIServer -Server $hosts -User $user -Password $password <br
/>$vmHosts = Get-VMhost <br
/>foreach ($vmhost in $vmhosts){ <br
/>&#160;&#160;&#160; if ( $vmhost | Get-VMHostNetworkAdapter -VMKernel | Where-Object {$_.IPv6Enabled -eq $false} ) { <br
/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $effectedVMHosts += $vmhost.Name <br
/>&#160;&#160;&#160; } <br
/>} <br
/>Disconnect-VIServer -Server $hosts -Confirm:$false&#160;&#160;&#160; </font></p><p><font
face="Courier New">Write-Host $effectedVMHosts</font></p><p><a
href="http://professionalvmware.com/wp-content/uploads/2011/02/image4.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2011/02/image_thumb4.png" width="515" height="64" /></a></p><h3>Before Going Forward:</h3><p>There are a few critical bits to understand before going forward:</p><ul><li>IPv6 is “TEH Awesome” do not fear it.</li><li>You will want to <strong>test</strong> this in a LAB <strong>First</strong></li><li>Before enabling it, you should realize the following:</li><ul><li><strong>Enabling IPv6 will require a reboot</strong>, plan accordingly</li><li>VMware HA and FT are not supported</li><li>TSO (TCP Segment Offload) is not supported on IPv6</li><li>IPv6 for IP Storage is “Experimental” for 4.0</li><li>ESX 3.5 supports IPv6 for Guests</li></ul></ul><h3>Enabling IPv6</h3><h4>Single Host &#8211; VI Client</h4><ol><li>Same steps as above.</li><li>Tick the box.</li><li>Reboot</li></ol><h4>Single Host &#8211; CLI</h4><h5>ESX</h5><ol><li>esxcfg-vswif -6 true</li><li>esxcfg-vmknic -6 true</li></ol><h5>ESXi</h5><ol><li>esxcfg-vmknic -6 true</li></ol><h4>Single Host &#8211; PowerCLI</h4><p><font
face="Courier New">Get-VMHostNetworkAdapter | where { $_.PortGroupName -eq &quot;Service Console 1&quot; } | Set-VMHostNetworkAdapter -IPv6Enabled $true</font></p><h4>Multiple Hosts &#8211; PowerCLI</h4><p><font
face="Courier New">Get-VMHost | Get-VMHostNetworkAdapter | where { $_.PortGroupName -eq &quot;Service Console 1&quot; } | Set-VMHostNetworkAdapter -IPv6Enabled $true</font></p><h3>Summary</h3><p>The IPocalypse is coming, and it’s bringing it’s friends fear and hysteria with it. Wll you be ready? Hopefully with the above, you will have one less thing to worry about. If you have questions, comments, suggestions, or generally want to tell me to bugger off, drop a line in the comments, or follow me on Twitter <a
href="http://twitter.com/cody_bunch">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2011/02/the-ipocalypse-cometh-are-you-ready/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Context Switching, Some Resources</title><link>http://professionalvmware.com/2010/11/context-switching-some-resources/</link> <comments>http://professionalvmware.com/2010/11/context-switching-some-resources/#comments</comments> <pubDate>Mon, 29 Nov 2010 17:21:56 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[Context Switching]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[vSphere]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/11/context-switching-some-resources/</guid> <description><![CDATA[While this isn’t as big a problem as it used to be, Context Switches in applications can still bring a VM to it’s knees. In this post I’m going to link you to some resources as to what context switching is, how to look for it, and why excessive context switches hurts performance. What Is [...]]]></description> <content:encoded><![CDATA[<p></p><p>While this isn’t as big a problem as it used to be, Context Switches in applications can still bring a VM to it’s knees. In this post I’m going to link you to some resources as to what context switching is, how to look for it, and why excessive context switches hurts performance.</p><h4>What Is Context Switching</h4><ul><li>Wikipedia’s answer <a
href="http://en.wikipedia.org/wiki/Context_switch">here</a>.</li><li>Linfo’s answer <a
href="http://www.linfo.org/context_switch.html">here</a>.</li><li>How they work on <a
href="http://msdn.microsoft.com/en-us/library/ms682105%28VS.85%29.aspx">Windows</a>.</li><li>Seemingly, <a
href="http://technet.microsoft.com/en-us/sysinternals/bb963901.aspx">“Windows Internals 5th Ed”</a> has some info in <a
href="http://download.sysinternals.com/Files/WindowsInternals-Ch05.pdf">Chapter 5: “Processes, Threads and Jobs.”</a></li></ul><h4>Monitoring Context Switching</h4><ul><li>On Windows &#8211; <a
href="http://professionalvmware.com/2009/03/windows-vm-performance-gone-to-heck-check-some-of-these-non-obvious-places/">here</a> and <a
href="http://professionalvmware.com/2008/11/context-switched-page-faults/">here</a>.</li><li>On Linux, you can use SAR:</li><ul><li>sar -w (more <a
href="http://linux.die.net/man/1/sar">here</a>)</li></ul><li>More on the Perfmon counters <a
href="http://technet.microsoft.com/en-us/library/cc938593.aspx">here</a>.</li><li>Page Faults (They cause context switches) on Windows <a
href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1687">here</a>.</li></ul><h4>Why Excessive Context Switching Sucks</h4><p><a
href="http://blog.tsunanet.net/2010/11/how-long-does-it-take-to-make-context.html">This</a>, is likely the best post I’ve read on the cost of a context switch. Tsuna (the fellow from the first post) links to an excellent paper on some of the indirect costs also (<a
href="http://www.cs.rochester.edu/u/cli/research/switch.pdf">here</a>).</p><blockquote><p>Virtualization <br
/>I was wondering how much overhead there is when using virtualization. I repeated the benchmarks for the dual E5440, once a normal Linux install, once while running the same install inside VMware ESX Server. The result is that, on average, it&#8217;s 2.5x to 3x more expensive to do a context switch when using virtualization. My guess is that this is due to the fact that the guest OS can&#8217;t update the page table itself, so when it attempts to change it, the hypervisor intervenes, which causes an extra 2 context switches (one to get inside the hypervisor, one to get out, back to the guest OS).</p><p>This probably explains why Intel added the EPT (Extended Page Table) on the Nehalem, since it enables the guest OS to modify its own page table without help of the hypervisor, and the CPU is able to do the end-to-end memory address translation on its own, entirely in hardware (virtual address to &quot;guest-physical&quot; address to physical address).</p></blockquote><p>This bit, is important to note… newer generation processors (those with NPT) should not suffer the 2-3x increase in cost. However, they’re still expensive.</p><p>As always, if you’ve additional questions, please drop a note in the comments, or hit me up on <a
href="http://twitter.com/cody_bunch">Twitter</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/11/context-switching-some-resources/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>&#8220;Could not Format VMFS&#8221; &#8211; Nested ESX</title><link>http://professionalvmware.com/2010/10/could-not-format-vmfs-nested-esx/</link> <comments>http://professionalvmware.com/2010/10/could-not-format-vmfs-nested-esx/#comments</comments> <pubDate>Mon, 11 Oct 2010 15:11:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[4.1]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[vSphere]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/10/could-not-format-vmfs-nested-esx/</guid> <description><![CDATA[The Problem! Was doing some work with UDA and nested ESX &#38; ESXi installs this weekend and ran into an interesting hiccup: Or on ESXi: What? Can’t format what? But we’re working with nested ESX, it’s a VMDK, format it! I tried any number of things here: Different controller types, disk sizes, partitioning within the [...]]]></description> <content:encoded><![CDATA[<p></p><h3>The Problem!</h3><p>Was doing some work with UDA and nested ESX &amp; ESXi installs this weekend and ran into an interesting hiccup:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2010/10/image.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2010/10/image_thumb.png" width="532" height="202" /></a></p><p>Or on ESXi:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2010/10/image1.png"><img
style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2010/10/image_thumb1.png" width="510" height="101" /></a></p><p>What? Can’t format what? But we’re working with nested ESX, it’s a VMDK, format it! I tried any number of things here: Different controller types, disk sizes, partitioning within the kickstart file, etc. Nothing seemed to work. That is until I fired up Twitter and got a hint on the right direction from <a
href="http://twitter.com/hyperviz0r">@hyperviz0r</a> (<a
title="http://www.hypervisor.fr/" href="http://www.hypervisor.fr/">http://www.hypervisor.fr/</a>). He indicated that my problem may be related to NFS.</p><h3>The Answer!</h3><p>Sure enough, after some searching on the VMware forums, there are others out there with <a
href="http://communities.vmware.com/thread/258752">this problem</a>. All of it seemingly related to nested ESX on NFS. I changed the build over to local storage on the ESX host and the install finished. I was also able to test successfully using iSCSI. I don’t have much in the way of explanation however, just that using another storage medium seems to work well.</p><p>You should follow me on twitter <a
href="http://twitter.com/cody_bunch">here</a>. Or, leave a comment on the post!</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/10/could-not-format-vmfs-nested-esx/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Put ESX Into Maintenance Mode From the CLI</title><link>http://professionalvmware.com/2010/09/put-esx-into-maintenance-mode-from-the-cli/</link> <comments>http://professionalvmware.com/2010/09/put-esx-into-maintenance-mode-from-the-cli/#comments</comments> <pubDate>Thu, 09 Sep 2010 13:35:20 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[vimsh]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/09/put-esx-into-maintenance-mode-from-the-cli/</guid> <description><![CDATA[There are times when you will need to put a host into, or take a host out of maintenance mode and you wont otherwise have the remote access needed to make PowerCLI or other API methods work. For times like those, vimsh works wonders: This little gem comes from xtravirt: To enter Maintenance Mode, at [...]]]></description> <content:encoded><![CDATA[<p></p><p>There are times when you will need to put a host into, or take a host out of maintenance mode and you wont otherwise have the remote access needed to make PowerCLI or other API methods work. For times like those, vimsh works wonders:</p><p>This little gem comes from <a
href="http://xtravirt.com/xd10051">xtravirt</a>:</p><blockquote><p>To enter Maintenance Mode, at the ESX console type: <br
/>vimsh -n -e /hostsvc/maintenance_mode_enter</p><p>To exit Maintenance Mode type: <br
/>vimsh -n -e /hostsvc/maintenance_mode_exit</p><p>To display whether the ESX Server is currently in maintenance mode or not type:</p><p>vimsh -n -e&quot;hostsvc/hostsummary&quot; | grep inMaintenanceMode</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/09/put-esx-into-maintenance-mode-from-the-cli/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing the vSphere 4.0 Host Update Utility</title><link>http://professionalvmware.com/2010/08/installing-the-vsphere-host-update-utility/</link> <comments>http://professionalvmware.com/2010/08/installing-the-vsphere-host-update-utility/#comments</comments> <pubDate>Thu, 26 Aug 2010 16:31:17 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[4.1]]></category> <category><![CDATA[ESX]]></category> <category><![CDATA[Update Manager]]></category> <category><![CDATA[vSphere]]></category> <category><![CDATA[updates]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/08/installing-the-vsphere-host-update-utility/</guid> <description><![CDATA[This came up in the comments to one of my other posts, so I though I’d share. Note: The Host Update Utility was depreciated with 4.1, so if you came here looking for that… my apologies. The vSphere Host Update Utility, as far as I can tell is not actually offered as a separate download, [...]]]></description> <content:encoded><![CDATA[<p></p><p>This came up in the comments to one of my other posts, so I though I’d share.</p><p><strong>Note:</strong> The Host Update Utility was depreciated with 4.1, so if you came here looking for that… my apologies.</p><p>The vSphere Host Update Utility, as far as I can tell is not actually offered as a separate download, but is rather bundled with the vSphere client and is a selectable option during installation. As admins most of us are trained to ignore these extra screens (after-all, who wants yet another Friendster toolbar installed?). This one is safe however, promise!</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2010/08/image3.png"><img
style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2010/08/image_thumb3.png" width="375" height="284" /></a></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/08/installing-the-vsphere-host-update-utility/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Installing 3rd Party Drivers in ESX</title><link>http://professionalvmware.com/2010/06/installing-3rd-party-drivers-in-esx/</link> <comments>http://professionalvmware.com/2010/06/installing-3rd-party-drivers-in-esx/#comments</comments> <pubDate>Wed, 16 Jun 2010 12:16:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[Troubleshooting]]></category> <category><![CDATA[vSphere]]></category> <category><![CDATA[drivers]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2010/06/installing-3rd-party-drivers-in-esx/</guid> <description><![CDATA[With vSphere comes the ability for third parties to add hardware to the HCL without having to wait for an update to ESX for their drivers to be included. An excellent move on VMware’s part as this opened up the door hugely for 3rd parties to supply certified &#38; updated drivers as well as provide [...]]]></description> <content:encoded><![CDATA[<p></p><p>With vSphere comes the ability for third parties to add hardware to the HCL without having to wait for an update to ESX for their drivers to be included. An excellent move on VMware’s part as this opened up the door hugely for 3rd parties to supply certified &amp; updated drivers as well as provide the ability to add hardware to the HCL between updates.</p><p>So when does one install these drivers? Well you have several opportunities, the first being during <a
href="http://professionalvmware.com/2009/06/vsphere-custom-drivers-the-coolest-new-vsphere-installer-screen/">installation</a>. The second, can be done post install using esxupdate.</p><h3>Obtaining Drivers</h3><p>First you will want to verify your hardware is indeed on the HCL by searching at <a
title="http://www.vmware.com/go/hcl" href="http://www.vmware.com/go/hcl">http://www.vmware.com/go/hcl</a>. Once verified, proceed to the <a
href="http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vsphere_4/4#drivers_tools">downloads page</a> for your edition of ESX, select “Drivers &amp; Tools”, and then drill down for your specific drivers:</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2010/06/image.png"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://professionalvmware.com/wp-content/uploads/2010/06/image_thumb.png" width="591" height="229" /></a></p><h3>Installing Drivers</h3><p>Now that you’ve downloaded the drivers, you will need to extract it and place the “offline-bundle” directory somewhere remotely accessible (http, ftp, nfs, or local):</p><p><font
color="#004000" size="2" face="Courier New">user$ ls -al <br
/>total 168 <br
/>drwxr-xr-x&#160; 4 user&#160; staff&#160;&#160;&#160; 136 Jun&#160; 6 18:23 . <br
/>drwxr-xr-x&#160; 9 user&#160; staff&#160;&#160;&#160; 306 Jun&#160; 6 18:23 .. <br
/>-rwxr-xr-x@ 1 user&#160; staff&#160; 70842 Aug 17&#160; 2009 INT-intel-lad-ddk-igb-1.3.19.12.1-offline_bundle-185976.zip <br
/>-rwxr-xr-x@ 1 user&#160; staff&#160;&#160;&#160; 271 Aug 17&#160; 2009 TRANS.TBL</font></p><p>There it is… now let’s install it. First, put the host into maintenance mode. Then fire up esxupdate to get it going:</p><p><font
size="2"><font
color="#004000" face="Courier New">[root@dbcfnhc1-vm ~]# esxupdate &#8211;bundle=http://professionalvmware.com/util/1000ET\ drivers/offline-bundle/INT-intel-lad-ddk-igb-1.3.19.12.1-offline_bundle-185976.zip update</font></font></p><h3>Summary</h3><p>This should have you covered for installing 3rd party drivers both during installation and after the fact (so long as it’s on the HCL). If you have any questions or comments, drop a line either in the comments or <a
href="http://twitter.com/cody_bunch">@cody_bunch</a> on Twitter</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2010/06/installing-3rd-party-drivers-in-esx/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
