<?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>VCritical &#187; vSphere</title>
	<atom:link href="http://www.vcritical.com/tag/vsphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:13:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Taking snapshots of VMware ESX 4 running in a VM</title>
		<link>http://www.vcritical.com/2010/02/taking-snapshots-of-vmware-esx-4-running-in-a-vm/</link>
		<comments>http://www.vcritical.com/2010/02/taking-snapshots-of-vmware-esx-4-running-in-a-vm/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:08:38 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2377</guid>
		<description><![CDATA[VMware ESX 4 can virtualize itself, and by using a special undocumented configuration setting it is now possible to take snapshots of virtual VMware ESX 4 systems.]]></description>
			<content:encoded><![CDATA[<p>Clearly, the capability introduced with VMware vSphere 4 <a href="http://www.vcritical.com/2009/05/vmware-esx-4-can-even-virtualize-itself/">that allows VMware ESX 4 to virtualize itself</a> is a real crowd-pleaser.</p>
<p>However, one limitation that some have discovered while using this lab-testing technique is the lack of ability to use snapshots with virtual ESX systems.  In fact, after taking a snapshot of a virtual ESX VM, you will see the system boot into the recovery shell like so:</p>
<p><img class="alignnone size-full wp-image-2380" title="Virtual VMware ESX 4 system fails to boot after taking snapshot" src="http://www.vcritical.com/wp-content/uploads/2010/02/recovery-shell-when-snapshot.png" alt="" width="589" height="246" /></p>
<p>Ouch.</p>
<h2>Can we fix it?</h2>
<p>I asked some super-smart engineers inside VMware about the issue, and of course they know all about it and how to make it work.</p>
<p>The solution is to enable an undocumented advanced configuration option on the <strong>physical ESX host</strong> like so:</p>
<p><img class="alignnone size-full wp-image-2379" title="Changing advanced configuration option on physical VMware ESX 4 host" src="http://www.vcritical.com/wp-content/uploads/2010/02/putty-esxcfg-permitvmfs.png" alt="" width="528" height="142" /></p>
<p><span id="more-2377"></span>In other words:</p>
<ul>
<li>Log into the console of the <strong>physical</strong> VMware ESX 4 host</li>
<li>Run the following command: esxcfg-advcfg -s 1  /COW/PermitVmfsOnRedoHierarchy</li>
<li>Verify the setting with the &#8220;get&#8221; flag: esxcfg-advcfg -g /COW/PermitVmfsOnRedoHierarchy</li>
</ul>
<p><em>Do I even need to say that this stuff is not supported by VMware Global Support Services (GSS)?  Well, I just did.</em></p>
<h2>Yes we can!</h2>
<p>After executing that one command on your <strong>physical </strong>machine, take a snapshot and boot up your virtual ESX:</p>
<p><img class="alignnone size-full wp-image-2381" title="Virtual VMware ESX 4 booted with snapshot in place" src="http://www.vcritical.com/wp-content/uploads/2010/02/virtual-esx-booted-with-snapshot.png" alt="" width="582" height="425" /></p>
<p>Everything works just like you need it to now &#8212; you can even create a snapshot hierarchy:</p>
<p><img class="alignnone size-full wp-image-2378" title="Snapshot tree for virtual VMware ESX 4 system" src="http://www.vcritical.com/wp-content/uploads/2010/02/multiple-snapshots.png" alt="" width="459" height="234" /></p>
<h2>Now what?</h2>
<p>Were you constrained by the lack of virtual ESX snapshots?  <strong>What interesting things will you use this for?</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2008/12/half-the-vm-reboots-on-patch-tuesday/' rel='bookmark' title='Permanent Link: Half the VM reboots on Patch Tuesday'>Half the VM reboots on Patch Tuesday</a></li>
<li><a href='http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/' rel='bookmark' title='Permanent Link: VMware vSphere 4 has a Snapshot Alarm'>VMware vSphere 4 has a Snapshot Alarm</a></li>
<li><a href='http://www.vcritical.com/2009/04/hyper-v-snapshots-not-for-production/' rel='bookmark' title='Permanent Link: Hyper-V snapshots: not for production'>Hyper-V snapshots: not for production</a></li>
<li><a href='http://www.vcritical.com/2009/01/igt-part-5-hyper-v-snapshots-are-not-gone-until-the-vm-is-powered-off/' rel='bookmark' title='Permanent Link: IGT Part 5:  Hyper-V snapshots are not gone until the VM is powered off'>IGT Part 5:  Hyper-V snapshots are not gone until the VM is powered off</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2010/02/taking-snapshots-of-vmware-esx-4-running-in-a-vm/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Linux apps run directly on Windows with virtualization!</title>
		<link>http://www.vcritical.com/2010/02/linux-apps-run-directly-on-windows-with-virtualization/</link>
		<comments>http://www.vcritical.com/2010/02/linux-apps-run-directly-on-windows-with-virtualization/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:09:52 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[satire]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2339</guid>
		<description><![CDATA[Microsoft has broken through numerous technological barriers, enabling Windows/Hyper-V to directly execute Linux applications.]]></description>
			<content:encoded><![CDATA[<p>Microsoft has done remarkable things with virtualization &#8212; unbelievable, some say.</p>
<p>One outstanding achievement is the way the Hyper-V architects managed to completely collapse the guest operating system layer directly into the hypervisor.  Take a look at this diagram from a Microsoft Virtualization competitive <a href="http://download.microsoft.com/download/9/4/3/9434547A-AF38-4D73-98BF-2841D93E11AD/BDM%20Brochure%20NOV2009.pdf">brochure</a>:</p>
<p><img class="alignnone size-full wp-image-2346" title="The three layers of Microsoft FUD" src="http://www.vcritical.com/wp-content/uploads/2010/02/microsoft-three-layers-fud.png" alt="" width="421" height="443" /></p>
<p><em>[Yes, it's that <a href="http://www.vcritical.com/2009/11/layers-and-layers-of-fud/">same brochure</a> again.]</em></p>
<p>There are several key differences between Microsoft and VMware hypervisor architectures.  While the <strong>hardware </strong>and <strong>applications </strong>layers <em>are </em>pretty straightforward, applications don&#8217;t run directly on hardware.  As you are about to see, these two platforms take very different approaches when it comes to virtualizing workloads.</p>
<p>The VMware vSphere solution is to use a thin, high-performance <strong>virtualization</strong> layer that enables a single physical system to simultaneously host multiple virtual machines.  Each of these virtual machines executes isolated instances of traditional guest operating systems &#8212; Windows, Linux, Solaris, Netware, etc.</p>
<p>Due to apparent technological advancements in Hyper-V, it is now possible to run applications of all kinds directly on that integrated Windows OS/hypervisor layer without the need for a guest operating system at all.  This allows Microsoft to omit an entire layer from their virtualization architecture.</p>
<p>I&#8217;m sure you have seen various announcements about the exceptional support that Hyper-V has for Linux workloads.  Without a guest operating system layer, one must logically conclude that Linux applications are actually running on the Windows/Hyper-V hypervisor integration directly.  Spectacular!</p>
<p>I thought I&#8217;d test this technological breakthrough in the lab myself by running <a href="http://www.postfix.org" target="_blank">Postfix</a>, a very popular Linux SMTP mail server, on Windows Server 2008 R2 with Hyper-V.  According to the diagram above, Postfix is classified as an application &#8212; the third layer.<span id="more-2339"></span></p>
<p>Now, in order to install Postfix, I have to interact with the second layer in the stack, which is the &#8220;Microsoft Operating System w/Virtualization.&#8221;  Since I&#8217;m an RHCE, I decided to use a Red Hat Enterprise Linux package of Postfix, but we can all agree that SUSE Linux Enterprise Server 11 would work equally well.  However, I would not recommend using Ubuntu packages since that distribution is not supported by Hyper-V.  Another side benefit to this technique is the fact that Windows has great <a href="http://www.vcritical.com/2009/03/of-mice-and-xen/">mouse support</a>.</p>
<p>Just as one would do on a <em>legacy</em> Linux system, I opened a trusty command shell and installed the package like so:</p>
<p><img class="alignnone size-full wp-image-2345" title="Installing Postfix RPM on Windows Server 2008 R2" src="http://www.vcritical.com/wp-content/uploads/2010/02/rpm-postfix.png" alt="" width="509" height="187" /></p>
<p>This is the first step to getting Postfix installed and running.  I do have to admit that it took a few additional troubleshooting steps in my case &#8212; most certainly unique to my environment, so I will spare the details.</p>
<p>In order to complete the Postfix implementation, you&#8217;ll need to edit several configuration files.  Do not use Notepad for this, as it does not understand the peculiar format of these text files:</p>
<p><img class="alignnone size-full wp-image-2348" title="Editing Postfix configuration file with Notepad" src="http://www.vcritical.com/wp-content/uploads/2010/02/maincf-notepad.png" alt="" width="536" height="334" /></p>
<p>One would think that the virtualization layer could also dynamically accommodate for UNIX line formatting, but that evidently was not part of the design.  Fortunately, this is a very minor issue since WordPad <em>can </em>be used without problem:</p>
<p><img class="alignnone size-full wp-image-2349" title="Editing Postfix configuration with Wordpad" src="http://www.vcritical.com/wp-content/uploads/2010/02/mancf-wordpad.png" alt="" width="522" height="499" /></p>
<p>Once you have the basic configuration in place, restart the service and validate &#8212; telnet to port 25 and send a test email.</p>
<p>There you have it, amazing Hyper-V virtualization &#8212; same capabilities as VMware vSphere with 25 percent fewer layers!</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/06/choose-any-two-hyper-v-ha-linux/' rel='bookmark' title='Permanent Link: Choose any two: Hyper-V, HA, Linux'>Choose any two: Hyper-V, HA, Linux</a></li>
<li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='Permanent Link: Even GPL can&#8217;t make Hyper-V Linux VMs well'>Even GPL can&#8217;t make Hyper-V Linux VMs well</a></li>
<li><a href='http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/' rel='bookmark' title='Permanent Link: Which guest operating systems can be customized by SCVMM?'>Which guest operating systems can be customized by SCVMM?</a></li>
<li><a href='http://www.vcritical.com/2009/04/hyper-v-linux-integration-components-no-longer-connected/' rel='bookmark' title='Permanent Link: Hyper-V Linux integration components no longer Connected'>Hyper-V Linux integration components no longer Connected</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2010/02/linux-apps-run-directly-on-windows-with-virtualization/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>The Truth About Hyper-V Memory Overcommit</title>
		<link>http://www.vcritical.com/2010/01/the-truth-about-hyper-v-memory-overcommit/</link>
		<comments>http://www.vcritical.com/2010/01/the-truth-about-hyper-v-memory-overcommit/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:20:05 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[memory overcommit]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2216</guid>
		<description><![CDATA[Learn about Microsoft's attempt to implement memory overcommit in Hyper-V.]]></description>
			<content:encoded><![CDATA[<p>The ability to assign more memory to virtual machines than physically available on a host is called <strong>memory overcommit</strong> and is a major factor that contributes to higher <a href="http://www.vmware.com/technical-resources/advantages/virtual-machine-density.html" target="_blank">VM density</a> &#8212; running more virtual machines per host increases efficiency and reduces cost.  VMware ESX has provided this feature for multiple generations, giving it an advantage over competing hypervisors.</p>
<p>The <a href="http://www.vmware.com/go/costperappcalc" target="_blank">Cost Per Application Calculator</a> makes it clear that investing in VMware vSphere 4 significantly reduces your datacenter hardware footprint and associated costs.  Scott Drummonds, the VMware performance expert, recently explained how memory overcommit is the only way to <a href="http://vpivot.com/2010/01/06/optimizing-memory-utilization/" target="_blank">effectively use all of the physical RAM in a hypervisor</a>.</p>
<p>Each time this topic comes up, Microsoft revs up their marketing machine and responds like this:</p>
<ul>
<li>Hyper-V is free, use your money to buy RAM upgrades instead of VMware vSphere licenses</li>
<li><a href="http://twitter.com/virtualizethis/status/7390702130" target="_blank">Memory overcommit is risky</a>, VMware <a href="http://vpivot.com/2010/01/04/misunderstanding-memory-management/" target="_blank">tells customers to turn it off</a> anyway</li>
</ul>
<p>The truth is that Hyper-V will have memory overcommit the moment Microsoft figures it out.  If that day ever does come, watch the messaging quickly change to the familiar, &#8220;our customers asked us to implement this&#8230;&#8221; line.</p>
<p>Why is it fair to make such a bold claim?  Two words:<span id="more-2216"></span></p>
<h2>Dynamic Memory</h2>
<p>It&#8217;s a little known fact that some of the early releases of Hyper-V R2 actually had a feature that allowed administrators to assign more RAM to virtual machines than was physically present on the host &#8212; &#8220;Dynamic Memory&#8221; a.k.a. memory overcommit.</p>
<p>We can look back and see what bloggers like <a href="http://www.markwilson.co.uk/blog/2008/10/just-a-few-of-the-new-features-to-expect-in-windows-server-2008-r2.htm" target="_blank">Mark Wilson</a> had to say:</p>
<blockquote><p>Microsoft also spoke to me about a dynamic memory capability (just like the balloon model that competitors offer). I asked why the company had been so vocal in downplaying competitive implementations of this technology yet was now implementing something similar and Ward Ralston explained to me that this is not the right solution for everyone but may help to handle memory usage spikes in a VDI environment. Since then, I&#8217;ve been advised that dynamic memory will not be in the beta release of Windows Server 2008 R2 and Microsoft is evaluating options for inclusion (or otherwise) at release candidate stage.</p></blockquote>
<p>And this <a href="http://blog.inetu.net/2009/04/the-skinny-on-hyper-v-r2-aka-hyper-v-20/" target="_blank">blog</a> provided more detail on the implementation:</p>
<blockquote><p>In Hyper-V 1.0, physical memory was hard allocated to the VMs, but in 2.0 the pool of memory is dynamically allocated and removed based VM usage with no service interruption. Dynamically allocating memory to VMs can drastically improve host consolidation rates.</p></blockquote>
<blockquote><p>Hyper-V 2.0 VMs are configured with an initial RAM setting (how much the machine boots with) as well as minimum and maximum RAM values. Hyper-V then adds RAM using the Hot-Add function, and removes it using a balloon driver (for supported OSes).</p></blockquote>
<p>For the visual learners in the crowd, take a look at this VM configuration dialog:</p>
<p><img class="alignnone size-full wp-image-2232" title="Hyper-V Dynamic Memory Configuration" src="http://www.vcritical.com/wp-content/uploads/2010/01/hyper-v-dynamic-memory.png" alt="" width="484" height="422" /></p>
<p>Note that this is nothing like Transparent Page Sharing in VMware ESX &#8212; Hyper-V VMs would actually be reconfigured using hot-add memory, so the guest operating systems must cooperate.</p>
<p>In an interview with <a href="http://bink.nu/news/hyper-v-r2.aspx" target="_blank">Steven Bink</a>, even Bob Muglia acknowledged the need for overcommit:</p>
<blockquote><p>We talked about Vmware ESX and its features like shared memory between VMs, &#8220;we definitely need to put that in our product&#8221; later [Muglia] said it will be in the next release. Like hot add memory, disk and nic&#8217;s will be and Live migration of course, which didn&#8217;t make it in this release.</p></blockquote>
<p>By the way, hot-add memory didn&#8217;t make it into Hyper-V R2, either &#8212; VMware ESX 4 has it today.</p>
<h2>Quick Memory Overcommit?</h2>
<p>Evidently, dynamic memory was not even up to the <a href="http://www.vcritical.com/2009/07/on-quick-storage-migration-in-r2/">rigorous &#8220;<em>Quick&#8221;</em> standard</a> and was <a href="http://vinternals.com/2009/04/microsoft-hyper-v-20-no-memory-overcommit/" target="_blank">dropped</a> from the release train.  Perhaps in some future edition of Hyper-V, Quick Memory Overcommit will be offered &#8212; with just a <em>few seconds</em> of VM downtime as RAM allocation is dynamically adjusted.  But that&#8217;s  just speculation.</p>
<h2>Sour Grapes</h2>
<p>Instead of finding a way to implement memory overcommit in Hyper-V R2, Microsoft has taken the alternate approach of attacking VMware and declaring the feature unnecessary, unsafe, or too expensive.</p>
<p>The fact is that memory overcommit is an extremely valuable capability and VMware ESX has had it all along.  Some of the Linux-based hypervisors are starting to figure it out.  Until Hyper-V finally adds the feature we&#8217;ll continue to hear how easy it is to simply buy more RAM.</p>
<p><strong>How long can you afford to wait?</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2010/02/hello-dynamic-memory/' rel='bookmark' title='Permanent Link: Hello Dynamic Memory?'>Hello Dynamic Memory?</a></li>
<li><a href='http://www.vcritical.com/2009/05/exclusive-hyper-v-2013-product-roadmap/' rel='bookmark' title='Permanent Link: Exclusive: Hyper-V 2013 Product Roadmap'>Exclusive: Hyper-V 2013 Product Roadmap</a></li>
<li><a href='http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/' rel='bookmark' title='Permanent Link: The Truth About Storage Hot Add and Remove'>The Truth About Storage Hot Add and Remove</a></li>
<li><a href='http://www.vcritical.com/2010/01/hyper-v-more-stable-just-as-mature-as-vmware-vsphere/' rel='bookmark' title='Permanent Link: Hyper-V More Stable, Just as Mature as VMware vSphere?'>Hyper-V More Stable, Just as Mature as VMware vSphere?</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2010/01/the-truth-about-hyper-v-memory-overcommit/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/esx/" rel="tag">ESX</a>, <a href="http://www.vcritical.com/tag/hyper-v/" rel="tag">Hyper-V</a>, <a href="http://www.vcritical.com/tag/memory-overcommit/" rel="tag">memory overcommit</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2010/01/the-truth-about-hyper-v-memory-overcommit/">The Truth About Hyper-V Memory Overcommit</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2010 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2010/01/the-truth-about-hyper-v-memory-overcommit/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>vSphere issues?  Ask VMware.</title>
		<link>http://www.vcritical.com/2010/01/vsphere-issues-ask-vmware/</link>
		<comments>http://www.vcritical.com/2010/01/vsphere-issues-ask-vmware/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 23:26:21 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[vSphere Client]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2176</guid>
		<description><![CDATA[Certain errors and warnings in the vSphere Client now provide links directly to VMware KB articles with more details on the specific issue.]]></description>
			<content:encoded><![CDATA[<p>A new feature in VMware vSphere 4 provides additional information for certain warnings and errors.  When more help is available, &#8220;Ask VMware&#8230;&#8221; is displayed in the vSphere Client and clicking the link takes you to a specific VMware KB article.</p>
<p>From <a href="http://www.vmware.com/support/vsphere4/doc/vsp_40_new_feat.html" target="_blank">What&#8217;s New in VMware vSphere 4.0</a>:</p>
<p style="padding-left: 30px;"><strong>Enhanced ESX Error Reporting</strong> — vSphere 4.0 gives you the ability to report per-host network, storage and VMFS issues to the vSphere Client in the Events tab. Each error event also provides a link to a specific Knowledge Base article that explains the event and provides detailed remediation steps to resolve the error. vSphere 4.0 also has the ability to set specific alarms for such events, with the help of the Events and Alarms feature. See <a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_admin_guide.pdf" target="_blank">vSphere Basic System Administration</a>.</p>
<p>I experienced the feature firsthand recently while reconfiguring some physical switches in my lab, causing the following event:</p>
<p><img class="size-full wp-image-2177 alignnone" title="Ask VMware... link" src="http://www.vcritical.com/wp-content/uploads/2010/01/ask_vmware_lost_uplink_redundancy.png" alt="" width="597" height="128" /></p>
<p>Clicking the link took me to <a href="http://kb.vmware.com/kb/1009542" target="_blank">KB 1009542</a> with much more specific detail about the warning.</p>
<p>Very nice enhancement.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/' rel='bookmark' title='Permanent Link: PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</a></li>
<li><a href='http://www.vcritical.com/2009/12/easily-view-guest-ip-addresses-with-vsphere-client/' rel='bookmark' title='Permanent Link: Easily view guest IP addresses with vSphere Client'>Easily view guest IP addresses with vSphere Client</a></li>
<li><a href='http://www.vcritical.com/2009/07/upgrading-vms-to-vsphere-virtual-hardware/' rel='bookmark' title='Permanent Link: Upgrading VMs to vSphere virtual hardware'>Upgrading VMs to vSphere virtual hardware</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2010/01/vsphere-issues-ask-vmware/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a>, <a href="http://www.vcritical.com/tag/vsphere-client/" rel="tag">vSphere Client</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2010/01/vsphere-issues-ask-vmware/">vSphere issues?  Ask VMware.</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2010 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2010/01/vsphere-issues-ask-vmware/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Book Review: VMware VI and vSphere SDK</title>
		<link>http://www.vcritical.com/2010/01/book-review-vmware-vi-and-vsphere-sdk/</link>
		<comments>http://www.vcritical.com/2010/01/book-review-vmware-vi-and-vsphere-sdk/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 12:00:50 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[VI Java API]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2148</guid>
		<description><![CDATA[Review of Steve Jin's new book on the VMware VI SDK.  A great development resource, and administrators may improve their overall understanding of VMware vSphere and PowerCLI scripting.]]></description>
			<content:encoded><![CDATA[<p>Most VMware administrators would take one glance at a book with <em><a href="http://en.wikipedia.org/wiki/Software_development_kit" target="_blank">SDK</a></em> in the title and dismiss it as something for software developers.  While that is understandable, don&#8217;t count this one out just yet.</p>
<p><a href="http://www.amazon.com/gp/product/0137153635?ie=UTF8&amp;tag=vcri-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0137153635">VMware VI and vSphere SDK: Managing the VMware Infrastructure and vSphere</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=vcri-20&amp;l=as2&amp;o=1&amp;a=0137153635" border="0" alt="" width="1" height="1" /> by Steve Jin is a new book that offers something for a variety of VMware techies.</p>
<p>Steve Jin is the creator of the <a href="http://vijava.sourceforge.net/" target="_blank">VI Java API</a>, an open-source alternative to the official VMware SDK that overcomes some of the challenges of the native Web Services interface.  The primary advantage of the VI Java API is improved productivity due to a serious reduction in code &#8212; up to 70 percent.  Plus, it gives developers object-oriented programming and compile-time type checking not offered in Web Services.  But don&#8217;t mistake this API for an performance-degrading wrapper &#8212; it actually <a href="http://vijmark.sourceforge.net/" target="_blank">performs better</a> than the two official VMware Java SDKs!<span id="more-2148"></span></p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/12/vi_java_api_eclipse_sample.png"><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  class="alignleft size-medium wp-image-2162" title="Eclipse with VI Java API sample code" src="http://www.vcritical.com/wp-content/uploads/2009/12/vi_java_api_eclipse_sample-218x300.png" alt="" width="218" height="300" /></a>Even for non-developer types, it is quite easy to kick the tires &#8212; just download the <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse IDE for Java</a>, the <a href="http://sourceforge.net/projects/vijava/files/" target="_blank">VI Java API</a>, some sample code like <a href="http://vijava.svn.sourceforge.net/viewvc/vijava/trunk/src/com/vmware/vim25/mo/samples/PrintInventory.java?revision=16" target="_blank">PrintInventory.java</a>, and fire it up.  This <a href="http://vijava.sourceforge.net/doc/getstarted/tutorial.htm" target="_blank">tutorial</a> is helpful to get the project set up correctly.</p>
<p>As for the VI SDK, system administrators do not need to even read a line of code to benefit from this book.  Taking time to understand the ways in which various components interact and function will improve the overall understanding of a VMware vSphere environment &#8212; not to mention troubleshooting methodologies.</p>
<p>On the other hand, those managing VMware vSphere with the PowerCLI may encounter limitations from time to time that necessitate interacting with the SDK instead of the excellent PowerShell cmdlets.  Doing so is not for the faint of heart &#8212; <a href="http://lucd.info/?p=1272" target="_blank">LucD recently elucidated this process</a>.  Therefore, even if you never intend to write a single line of VI Java API code, gaining a better appreciation of the VI SDK may just help you with your PowerCLI scripts.</p>
<p>If you have made VMware part of your career, it makes sense to consider this one for your bookshelf.  Also check out Duncan Epping&#8217;s <a href="http://www.yellow-bricks.com/2009/12/13/book-vmware-vi-and-vsphere-sdk/" target="_blank">review</a>.</p>
<p style="text-align: left;"><em>Disclaimer: The publisher provided a review copy of the book, but did not influence the content of this article.</em></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='Permanent Link: Even GPL can&#8217;t make Hyper-V Linux VMs well'>Even GPL can&#8217;t make Hyper-V Linux VMs well</a></li>
<li><a href='http://www.vcritical.com/2009/01/vi-toolkit-for-windows-15-released/' rel='bookmark' title='Permanent Link: VI Toolkit (for Windows) 1.5 released'>VI Toolkit (for Windows) 1.5 released</a></li>
<li><a href='http://www.vcritical.com/2008/12/whats-new-and-whats-vapor-in-scvmm-2008/' rel='bookmark' title='Permanent Link: What&#8217;s New (and What&#8217;s Vapor) in SCVMM 2008'>What&#8217;s New (and What&#8217;s Vapor) in SCVMM 2008</a></li>
<li><a href='http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/' rel='bookmark' title='Permanent Link: VMware vSphere 4 has a Snapshot Alarm'>VMware vSphere 4 has a Snapshot Alarm</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2010/01/book-review-vmware-vi-and-vsphere-sdk/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/review/" rel="tag">review</a>, <a href="http://www.vcritical.com/tag/sdk/" rel="tag">SDK</a>, <a href="http://www.vcritical.com/tag/vi-java-api/" rel="tag">VI Java API</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2010/01/book-review-vmware-vi-and-vsphere-sdk/">Book Review: VMware VI and vSphere SDK</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2010 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2010/01/book-review-vmware-vi-and-vsphere-sdk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware vCenter CapacityIQ 1.0.1 for vSphere</title>
		<link>http://www.vcritical.com/2009/12/vmware-vcenter-capacityiq-1-0-1-for-vsphere/</link>
		<comments>http://www.vcritical.com/2009/12/vmware-vcenter-capacityiq-1-0-1-for-vsphere/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 18:18:52 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[CapacityIQ]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1976</guid>
		<description><![CDATA[VMware vCenter CapacityIQ 1.0.1 is now fully integrated with VMware vSphere.  The product deploys quickly as an OVF virtual appliance and the user interface is a vSphere Client plugin.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vmware.com/products/vcenter-capacityiq/"><img class="alignleft size-full wp-image-1980" title="VMware vCenter CapacityIQ" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-icon.png" alt="VMware vCenter CapacityIQ" width="78" height="69" /></a>Today VMware released <a href="http://www.vmware.com/support/ciq100/doc/releasenotes_ciq101.html" target="_blank">vCenter CapacityIQ 1.0.1</a> &#8212; an update to support VMware vSphere 4.  Like vSphere, CapacityIQ is offered with a <a href="https://www.vmware.com/tryvmware/?p=vcenter-capacityiq&amp;lp=1" target="_blank">60-day trial</a>.</p>
<p>If you are not familiar with CapacityIQ (a.k.a. CapIQ or CIQ), it is an add-on management product for vCenter Server that assists in planning and managing virtualization resources.</p>
<p>CapIQ is very easy to deploy since it ships as a virtual appliance in OVF format &#8212; just load it onto an ESX host and perform a few simple configuration steps. It&#8217;s also simple to use since the user interface is a vSphere Client plug-in.  That means no additional web interfaces or user accounts to deal with &#8212; just a single pane of glass.</p>
<p>To learn more, check out the <a href="http://www.vmware.com/resources/techresources/10072" target="_blank">Evaluator&#8217;s Guide</a> and <a href="http://www.vmware.com/support/pubs/ciq_pubs.html" target="_blank">other documentation</a>.<span id="more-1976"></span></p>
<h2>Installation Experience</h2>
<p>For those curious about the installation experience, here is an overview of the very simple procedure.</p>
<h3>Upload the CapacityIQ VM using vSphere Client</h3>
<p><img class="alignnone size-full wp-image-1986" title="Deploy OVF" src="http://www.vcritical.com/wp-content/uploads/2009/12/deploy-ovf-menu.png" alt="Deploy OVF" width="235" height="186" /></p>
<h3>Configure Credentials</h3>
<p>The CapacityIQ appliance has two user accounts: root and ciqadmin.  When you first power on the VM, you will be prompted to enter passwords for those accounts.  Unlike some VM appliances, there are no default passwords involved.</p>
<p><img class="alignnone size-full wp-image-1985" title="Configure root and ciqadmin passwords" src="http://www.vcritical.com/wp-content/uploads/2009/12/configure-ciq-passwords.png" alt="Configure root and ciqadmin passwords" width="493" height="120" /></p>
<h3>Connect CapacityIQ to vCenter Server</h3>
<p>After the appliance is finished booting, a URL will be shown on the console.  Open that with your browser and log in using the ciqadmin account.</p>
<p><img class="alignnone size-full wp-image-1979" title="CapacityIQ Admin Portal" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-admin-portal-login.png" alt="CapacityIQ Admin Portal" width="499" height="241" /></p>
<p>Enter the address and credentials needed to connect to your vCenter Server:</p>
<p><img class="alignnone size-full wp-image-1982" title="Register vCenter Server with CapIQ" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-register-vcenter.png" alt="Register vCenter Server with CapIQ" width="504" height="341" /></p>
<h3>vSphere Client Interface</h3>
<p>After CapacityIQ is registered with your vCenter Server, restart your vSphere Client.  Verify that the plug-in has been installed automatically.</p>
<p><img class="alignnone size-full wp-image-1981" title="CapIQ vSphere Client plugin" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-plugin-installed.png" alt="CapIQ vSphere Client plugin" width="504" height="198" /></p>
<p>If everything is in order, you&#8217;ll find a new icon on the vSphere Client Home screen:</p>
<p><img class="alignnone size-full wp-image-1988" title="vSphere Client Home with CapIQ" src="http://www.vcritical.com/wp-content/uploads/2009/12/vsphere-client-home-with-ciq1.png" alt="vSphere Client Home with CapIQ" width="224" height="244" /></p>
<h3>Views and Reports</h3>
<p>CapacityIQ comes with a number of preconfigured views and reports, as seen here:</p>
<p><img class="alignnone size-full wp-image-1984" title="CapIQ Views" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-views.png" alt="CapIQ Views" width="410" height="643" /></p>
<p><img class="alignnone size-full wp-image-1983" title="CapIQ Reports" src="http://www.vcritical.com/wp-content/uploads/2009/12/ciq-reports.png" alt="CapIQ Reports" width="410" height="693" /></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-40-installation-video/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4.0 installation video'>VMware vCenter Server 4.0 installation video</a></li>
<li><a href='http://www.vcritical.com/2009/02/installing-vcenter-on-linux-technical-preview/' rel='bookmark' title='Permanent Link: Installing vCenter on Linux Technical Preview'>Installing vCenter on Linux Technical Preview</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/' rel='bookmark' title='Permanent Link: VMware vCenter Server performance stats levels'>VMware vCenter Server performance stats levels</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/12/vmware-vcenter-capacityiq-1-0-1-for-vsphere/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Truth About Storage Hot Add and Remove</title>
		<link>http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/</link>
		<comments>http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 15:34:35 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[VMFS]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1944</guid>
		<description><![CDATA[VMware vSphere 4 offers multiple options for expanding virtual machine storage with zero downtime, including the ability to grow a running virtual disk.  Hyper-V marketing literature makes a similar claim, but is limited to simply adding another virtual disk.]]></description>
			<content:encoded><![CDATA[<p>VMware vSphere 4 supports a range of hot storage management technologies:</p>
<ul>
<li> vStorage VMFS Volume Grow</li>
<li> Hot Extend for Virtual Disks</li>
<li> Hot Virtual Disk Add/Remove</li>
</ul>
<p>With these capabilities, if space gets tight in your vSphere environment, it is easy to be proactive and address the issue before anyone notices.  The process goes something like this:</p>
<ul>
<li>Allocate additional physical hard disk space on your SAN to an appropriate LUN</li>
<li>Grow your VMFS datastore onto the newly added free space</li>
<li>Extend, or add new, virtual disks for the VMs that need more storage</li>
<li>Expand the volume inside the guest to create more usable space</li>
</ul>
<p>All without a reboot: zero downtime.</p>
<h2>Not All Virtualization Platforms are Created Equal</h2>
<p>Don&#8217;t jump to the conclusion that all hypervisors offer the same flexibility.  Perhaps you are wondering about Hyper-V capabilities?<span id="more-1944"></span></p>
<p>First, let&#8217;s take a look at some Microsoft System Center Virtual Machine Manager 2008 R2 (SCVMM) marketing statements:</p>
<p>The <a href="http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/whats-new-R2.aspx" target="_blank">What&#8217;s New</a> page announces:</p>
<p style="padding-left: 30px;"><strong>Hot addition/removal of Storage</strong>: Allows the addition and removal of storage to virtualized infrastructure without interruption. Additionally, &#8220;live&#8221; management of virtual hard disk (VHDs) or iSCSI pass through disks, allows administrators to take advantage of additional backup scenarios and readily use mission critical and storage-intensive applications.</p>
<p>The <a href="http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/top-benefits-R2.aspx" target="_blank">Top Benefits</a> list proclaims:</p>
<p style="padding-left: 30px;"><strong>Hot addition/removal of storage</strong>: With this capability, administrators can quickly and efficiently respond to changing storage requirements of virtual machines. This ability to hot-add additional storage eliminates the previous need to take the host down to upgrade storage thus increasing business continuity for end users and reducing complexity for administrators. Additionally it allows administrators to confidently deploy mission critical applications (in which up-time is of paramount importance) that may have rapidly changing storage requirements such as web, database or other business applications.</p>
<p>An IT decision-maker just might get the impression that both ESX and Hyper-V have essentially the same features. <strong>They do not.</strong></p>
<p>You may be surprised to find out that all of the descriptions above merely refer to <strong>adding a new virtual disk</strong> to a VM &#8212; providing the conditions are right.  You cannot grow an existing VHD, and you can&#8217;t safely remove a VHD with SCVMM.</p>
<h2>Plan Ahead</h2>
<p>First things first.  If your Hyper-V VM does not have a virtual SCSI adapter &#8212; templates and VMs from Hyper-V R1 do not &#8212; you won&#8217;t be able to hot add a new VHD until you correct that shortcoming.  Hello downtime.</p>
<p>SCVMM can add a new blank virtual disk to a VM or it can copy an existing one across the network from the Library &#8212; if you copied it there beforehand, but there is no way to add a VHD that may already be present on your SAN &#8212; even if it is already sitting right next to the destination VM.</p>
<h2>Removal?</h2>
<p>Up-time may be of <em>paramount importance</em>, but preventing data-loss was evidently not part of the original design.  Removing a VHD with SCVMM results in the immediate deletion of the underlying VHD file.  Ouch!  Thankfully, a recent patch improves administrator job security by throwing up a warning before this happens, providing an option to cancel.  There is no way to simply disconnect a VHD using SCVMM.</p>
<p>It turns out that if you really want to take advantage of those &#8220;Additional Backup Scenarios&#8221; by hot adding <em>and removing</em> virtual disks, you need your trusty Hyper-V Manager utility.  Still think System Center is a <a href="http://www.vcritical.com/2009/08/single-pane-of-glass-hyper-v-edition/">single pane of glass</a>?  And that&#8217;s not the only task that requires administrators to switch between Hyper-V interfaces.</p>
<h2>Conclusion</h2>
<p>Microsoft is trying hard to ride the coattails of VMware ESX.  The latest release of Hyper-V R2 still does not have capabilities enjoyed by VMware administrators since the ESX 3.5 days.</p>
<p>Don&#8217;t believe the obfuscated marketing literature.  VMware vSphere is for real.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/' rel='bookmark' title='Permanent Link: vSphere Thin-Provisioned Disk Performance'>vSphere Thin-Provisioned Disk Performance</a></li>
<li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/12/the-truth-about-vm-san-transfers/' rel='bookmark' title='Permanent Link: The Truth About VM SAN Transfers'>The Truth About VM SAN Transfers</a></li>
<li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Permanent Link: Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>vSphere Thin-Provisioned Disk Performance</title>
		<link>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/</link>
		<comments>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 06:19:55 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1934</guid>
		<description><![CDATA[A new paper published by the VMware Performance Team shows that virtual disks using  vStorage Thin Provisioning perform nearly as well as fully allocated thick disks.  ]]></description>
			<content:encoded><![CDATA[<p>Thin disk provisioning is a fully-supported feature in vSphere 4 that can save tons of storage space on your SAN by allowing virtual disks to consume storage space <em>as needed</em> instead all at once.</p>
<p>Under the supervision of VMware vCenter Server, ESX 4 thin provisioning is safe and reliable even for production workloads thanks to<a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/"> advanced storage accounting and built-in monitoring</a>.  And even if the worst does happen &#8212; an unexpectedly full datastore &#8212; <a href="http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/">recovery is simple</a>.</p>
<p>Now that <em>you </em>are convinced that VMware vSphere thin provisioning has a place in your data center, you may be wondering about performance tradeoffs.</p>
<p><strong>It turns out that thin disks perform just about as well as thick disks.</strong></p>
<h2>New Performance Results</h2>
<p>In this brand-new <a href="http://www.vmware.com/pdf/vsp_4_thinprov_perf.pdf">VMware vStorage Thin Provisioning performance study</a>, VMware performance engineers compare thick and thin disk performance.  This must-read document covers several important topics, such as:</p>
<ul>
<li>I/O-intensive benchmarking with a 16-node ESX cluster</li>
<li>File copy benchmarking with 2 ESX hosts</li>
<li>Fragmentation impact</li>
<li>Thin provisioning affect on co-located thick disks</li>
</ul>
<p>Now, go forth and provision&#8230; thinly.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Permanent Link: Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
<li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Permanent Link: Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/' rel='bookmark' title='Permanent Link: The Truth About Storage Hot Add and Remove'>The Truth About Storage Hot Add and Remove</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy recovery from a full VMware ESX datastore</title>
		<link>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/</link>
		<comments>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 21:57:37 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Storage VMotion]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[VMFS]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1757</guid>
		<description><![CDATA[With VMware vSphere, ESX, and VMFS, running out of space on a datastore does not cause damage to virtual machines.  It is easy to recover without even a guest OS reboot.]]></description>
			<content:encoded><![CDATA[<p>This is the third article in a series on VMware vSphere thin-provisioned virtual disks.  Now that we&#8217;ve covered:</p>
<ul>
<li><a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/">Full accounting for all provisioned storage space and complete monitoring</a></li>
<li><a href="http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/">Automatic response to a nearly-full datastore through vCenter Alarms, PowerShell, and Storage VMotion</a></li>
</ul>
<p>You may be <em>nearly </em>convinced to start using thin provisioning, but still wondering&#8230;</p>
<h2>What happens if a datastore fills up?</h2>
<p>When a datastore runs out of space, thin-provisioned virtual disks can no longer dynamically grow to accommodate additional storage demand.  When VMware ESX detects this condition, <strong>virtual machines in need of additional storage are instantly paused</strong> to prevent guest operating systems from failing.  Conversely, VMs that that read and write to existing allocated storage blocks will continue running without issue &#8212; <strong>not all virtual machines will be paused</strong> just because a datastore is out of space.</p>
<p>If you ever find yourself in this situation, it&#8217;s not hard to fix.  Here is one simple approach, step-by-step:</p>
<ol>
<li>Free up some space by deleting or moving files &#8212; ISO images or powered-off VMs would be perfect</li>
<li>Resume one of the paused VMs</li>
<li>Use Storage VMotion to move the disks for that VM to another datastore</li>
<li>Resume the remaining VMs</li>
</ol>
<p><strong>Watch the procedure in action:</strong><br />
<embed src="http://www.youtube.com/v/4G8MEC14eKU&#038;hl=en&#038;fs=1&#038;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></p>
<p>Depending on the size and storage demand of each VM, additional migrations may be needed.  An alternative resolution would be to add additional space to the SAN LUN and grow the VMFS volume.</p>
<p><span id="more-1757"></span></p>
<h2>The Experiment</h2>
<p>To simulate a sudden storage demand by the thin-provisioned VMs in the above video, I simply copied a large file from a network share to each Windows Server 2003 VM simultaneously.</p>
<p>For the curious, below is a PowerShell script for the task.  Run it from anywhere &#8212; it uses Sysinternals psexec to remotely initiate a file copy on each VM from a network share.</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># VM naming convention combines this string with 2-digit number</span>
<span style="color: #800080;">$vmPrefix</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;VM2003e-&quot;</span>
&nbsp;
<span style="color: #008000;"># UNC path to a large file that will be copied into each VM</span>
<span style="color: #800080;">$iso</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;\\fileserver\ISO\large.iso&quot;</span>
&nbsp;
<span style="color: #008000;"># credentials to download above file from \\fileserver</span>
<span style="color: #800080;">$user</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;domain\username&quot;</span>
<span style="color: #800080;">$pass</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;pa55word&quot;</span>
&nbsp;
<span style="color: #008000;"># pass this function a list of numbers</span>
<span style="color: #0000FF;">function</span> createVmList <span style="color: #000000;">&#40;</span><span style="color: #800080;">$series</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$vmList</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$id</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$series</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #800080;">$vmList</span> <span style="color: pink;">+=</span>  <span style="color: pink;">%</span><span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;$vmPrefix{0:00}&quot;</span> <span style="color: #FF0000;">-f</span> <span style="color: #800080;">$id</span><span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #800080;">$vmList</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># make sure Sysinternals psexec is in your path</span>
<span style="color: #0000FF;">function</span> psexecOnVm <span style="color: #000000;">&#40;</span><span style="color: #800080;">$cmd</span><span style="color: pink;">,</span> <span style="color: #800080;">$vmList</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$vmList</span> <span style="color: pink;">|</span> <span style="color: pink;">%</span> <span style="color: #000000;">&#123;</span><span style="color: #008080; font-weight: bold;">Invoke-Expression</span> <span style="color: #800000;">&quot;psexec.exe \\$_ -d -u $user -p $pass $cmd&quot;</span><span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
psexecOnVM <span style="color: #800000;">&quot;cmd /c copy /Y $iso c:\&quot;</span> <span style="color: #000000;">&#40;</span>createVMlist <span style="color: #000000;">&#40;</span>31..39<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<h2>VMware ESX is Resilient</h2>
<p>You may have been surprised at how easy it is to recover from a full datastore &#8212; without so much as a guest OS reboot.  It&#8217;s a testament to the rock-solid architecture behind VMware ESX and VMFS.  No other virtualization platform comes close.  Try for yourself.  See what happens if a group of thin-provisioned Hyper-V virtual machines suddenly run out of storage &#8212; it&#8217;s not going to be pretty.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/' rel='bookmark' title='Permanent Link: vSphere Thin-Provisioned Disk Performance'>vSphere Thin-Provisioned Disk Performance</a></li>
<li><a href='http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/' rel='bookmark' title='Permanent Link: PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</a></li>
<li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Permanent Link: Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PowerShell Prevents Datastore Emergencies</title>
		<link>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/</link>
		<comments>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 10:30:03 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Storage VMotion]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1713</guid>
		<description><![CDATA[When a datastore in your VMware vSphere environment is about to fill up, you can have vCenter automatically spring into action to prevent downtime by using Storage VMotion.]]></description>
			<content:encoded><![CDATA[<p>In my previous post on <a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/">VMware vSphere thin provisioning</a>, I pointed out the new datastore alarm feature.  You can take advantage of this feature to respond to a sudden storage demand and <strong>automatically take action before end users notice</strong>.</p>
<p>When triggered, vCenter Server alarm actions allow several options, including the ability to run an arbitrary command such as a VMware PowerCLI PowerShell script.  Please see <a href="http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html" target="_blank">Carter Shanklin&#8217;s in-depth article</a> for more details on how this works &#8212; note that he uses a different technique to launch the scripts.</p>
<h2>Storage VMotion to the Rescue</h2>
<p>When a datastore is about to run out of space, the fastest resolution may be to simply migrate virtual disks to another datastore.   VMware Storage VMotion provides that capability with zero downtime for VMs and no disruption to end users.  Fortunately, PowerCLI can perform this feat with ease, thanks to the Move-VM cmdlet.</p>
<p>Let&#8217;s take a look at a functional prototype PowerCLI PowerShell script:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Add-PSSnapin</span> VMware.Vimautomation.Core
Connect<span style="color: pink;">-</span>VIServer localhost
&nbsp;
<span style="color: #800080;">$vmToMove</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>vm <span style="color: pink;">-</span>Datastore <span style="color: #800080;">$env</span>:VMWARE_ALARM_TARGET_NAME <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> <span style="color: #008080; font-style: italic;">-first</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #800080;">$destDS</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>Datastore <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.FreeSpaceMB <span style="color: #FF0000;">-gt</span> <span style="color: #000000;">50000</span> <span style="color: #FF0000;">-and</span> <span style="color: #000080;">$_</span>.Accessible <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$true</span><span style="color: #000000;">&#125;</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> <span style="color: #008080; font-style: italic;">-first</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$destDS</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	move<span style="color: pink;">-</span>vm <span style="color: pink;">-</span>VM <span style="color: #800080;">$vmToMove</span> <span style="color: pink;">-</span>Datastore <span style="color: #800080;">$destDS</span> <span style="color: pink;">-</span>RunAsync
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>This script is a proof-of-concept that is not ready for your production environment as it is &#8212; it just picks an arbitrary VM from the nearly-full datastore, finds another datastore with at least 50GB free, and moves the VM disks.  More comprehensive selection logic and error checking are needed for a critical task like this.<span id="more-1713"></span></p>
<p>Save your script on the vCenter Server system somewhere, such as C:\scripts\datastore.ps1.</p>
<h2>Create the Datastore Alarm</h2>
<p>Create a new alarm at an appropriate level in the vCenter hierarchy, such as a datacenter, and configure like this:</p>
<p><img class="alignnone size-full wp-image-1717" title="Datastore Alarm" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-general.png" alt="Datastore Alarm" width="404" height="253" /></p>
<p>On the Triggers tab, add a &#8220;Datastore Disk Usage (%)&#8221; trigger to alert at a reasonable percentage &#8212; I opted for 93.</p>
<h2>Run PowerShell Directly from vCenter Server</h2>
<p>For whatever reason, PowerShell.exe does not do well when launched directly by another process &#8212; it tends to hang instead of exiting when it is finished.  As a workaround, it <em>can</em> be launched from cmd.exe as long as it receives something on standard input.  To do all that, the necessary code looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">&quot;c:\windows\system32\cmd.exe&quot; &quot;/c <span style="color: #b1b100; font-weight: bold;">echo</span>.|powershell.exe -nologo -noprofile -noninteractive c:\scripts\datastore.ps1&quot;</pre></div></div>

<p>For an alternate approach, take a look at the intermediate batch file solution described by Carter Shanklin in the link above.</p>
<p>On the Actions tab, add a &#8220;Run a command&#8221; action and supply the appropriate command.  You also need to decide whether to run one time or repeat the action.</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-run-command.png"><img class="alignnone size-medium wp-image-1718" title="Datastore alarm running a PowerShell script" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-run-command-300x191.png" alt="Datastore alarm running a PowerShell script" width="300" height="191" /></a></p>
<h2>Action!</h2>
<p>To test the alarm, either fill up the datastore or temporarily lower the alarm threshold.  When the alarm fires, a Storage VMotion should be seen in the vSphere Client:</p>
<p><img class="alignnone size-full wp-image-1721" title="Storage VMotion in progress" src="http://www.vcritical.com/wp-content/uploads/2009/09/svmotion-inprogress.png" alt="Storage VMotion in progress" width="381" height="39" /></p>
<p>Note the &#8220;Initiated by&#8221; column &#8212; that&#8217;s the machine account for this vCenter Server.  The PowerCLI script is kicked off from vpxd.exe, which is running as LocalSystem.</p>
<p>Additional information is available by looking at the Tasks &amp; Events tab for the datastore.  Here you can see a sample sequence of events, newest on top:</p>
<p><img class="alignnone size-full wp-image-1723" title="Datastore emergency events" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-events.png" alt="Datastore emergency events" width="500" height="418" /></p>
<h2>The Last Resort</h2>
<p>This automated Storage VMotion recovery alarm is a safety valve that could help you avoid suddenly running out of space on a datastore.  It should not take the place of more proactive storage management, but it sure beats VM downtime.</p>
<p style="padding-left: 30px;">In case you are wondering: No, you can&#8217;t do the same thing with Hyper-V because Hyper-V does not have zero-downtime Storage VMotion.  Just another reason to choose VMware vSphere &#8212; as if you needed <em>another</em> reason.</p>
<p><strong>Have you used vCenter alarms to automate any recovery processes in your environment?<br />
</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Permanent Link: Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/02/vi-toolkit-for-windows-15-and-the-powershell-prompt/' rel='bookmark' title='Permanent Link: VI Toolkit (for Windows) 1.5 and the PowerShell prompt'>VI Toolkit (for Windows) 1.5 and the PowerShell prompt</a></li>
<li><a href='http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/' rel='bookmark' title='Permanent Link: VMware vSphere 4 has a Snapshot Alarm'>VMware vSphere 4 has a Snapshot Alarm</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
