<?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>Kraft Kennedy &#124; Technology Blog &#187; VMware</title>
	<atom:link href="http://blogs.kraftkennedy.com/index.php/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.kraftkennedy.com</link>
	<description>Trends and insight into legal technology, infrastructure and strategic thinking.</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:44:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Manage EqualLogic SANs directly from the vSphere Client</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 22:38:35 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[EqualLogic]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1357</guid>
		<description><![CDATA[Quite a while back I saw that Eric Sloof had figured out how to add his Twitter feed directly into the VI Client.  I thought it was clever but didn&#8217;t really give it much more thought than that.
Today I decided to take that concept and extend it to systems that you might manage alongside your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F07%2F12%2Fmanage-equallogic-sans-directly-from-the-vsphere-client%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F07%2F12%2Fmanage-equallogic-sans-directly-from-the-vsphere-client%2F" height="61" width="51" /></a></div><p>Quite a while back I saw that Eric Sloof had figured out how to <a href="http://www.ntpro.nl/blog/archives/995-Extending-the-VI-Client-with-the-Twitter-Plug-in.html" target="_blank">add his Twitter feed</a> directly into the VI Client.  I thought it was clever but didn&#8217;t really give it much more thought than that.</p>
<p>Today I decided to take that concept and extend it to systems that you might manage alongside your VI3/vSphere environment.  Storage management seemed like the obvious first choice.<span id="more-1357"></span></p>
<p>I created an XML file called EqualLogic.xml in C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Plugins\SAN Management.  The contents of the file are as follows (you would replace the &lt;url&gt; section with the IP or DNS name of your SAN):</p>
<p>&lt;scriptConfiguration version=&#8221;1.0.0&#8243;&gt;<br />
&lt;key&gt;EqualLogic&lt;/key&gt;<br />
&lt;description&gt;EqualLogic SAN Management&lt;/description&gt;<br />
&lt;view parent=&#8221;Inventory.HostSystem&#8221;&gt;<br />
&lt;title locale=&#8221;en&#8221;&gt;EqualLogic&lt;/title&gt;<br />
&lt;url&gt;http://10.1.97.30&lt;/url&gt;<br />
&lt;/view&gt;<br />
&lt;/scriptConfiguration&gt;</p>
<p>This gave me a nice way to manage my SAN from the same interface that I use to manage my vSphere environment.  It is simply opening a browser window within the vSphere Client and letting me manage the SAN.</p>
<p><img class="alignnone size-full wp-image-1364" title="EqualLogic Management" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/07/EQLMGMT2.jpg" alt="EqualLogic Management" width="582" height="189" /></p>
<p>The code above will make the EqualLogic tab visible only when clicking on an ESX/ESXi host.  If you wanted to extend that to other objects, you can simply adjust the &#8220;&lt;view parent=&#8221; section.  For example, to also make this available at the cluster level you would include the following:</p>
<p>&lt;view parent=&#8221;Inventory.Cluster&#8221;&gt;<br />
&lt;title locale=&#8221;en&#8221;&gt;EqualLogic&lt;/title&gt;<br />
&lt;url&gt;http://10.1.97.30/&lt;/url&gt;<br />
&lt;/view&gt;</p>
<p>Similarly you could add Inventory.Global, Inventory.VirtualMachine, Inventory.Datacenter, etc.</p>
<p>This is a really simple way to make it easy to manage any web interface (not just EqualLogic) from within the vSphere/VI Client.  It&#8217;s not a new trick and has been out there for a while but I had never used it for this until today.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware KB Clarifies Page Sharing on Nehalem Processors</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/#comments</comments>
		<pubDate>Thu, 27 May 2010 19:31:21 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1269</guid>
		<description><![CDATA[For quite a while there has been confusion over how VMware&#8217;s Transparent Page Sharing (TPS) feature works with vSphere 4 running on Nehalem (or other modern) processors. Many people were noticing that it appeared that TPS was not actually working anymore and looked for ways to fix the problem.
In my recent post on the effects [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F27%2Fvmware-kb-clarifies-page-sharing-on-nehalem-processors%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F27%2Fvmware-kb-clarifies-page-sharing-on-nehalem-processors%2F" height="61" width="51" /></a></div><p>For quite a while there has been confusion over how VMware&#8217;s Transparent Page Sharing (TPS) feature works with vSphere 4 running on Nehalem (or other modern) processors. Many people were noticing that it appeared that TPS was not actually working anymore and looked for ways to fix the problem.</p>
<p>In my <a href="http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/" target="_blank">recent post</a> on the effects of ASLR in vSphere the comments turned into a discussion about TPS on modern processors. And there are countless posts about this issue on the VMTN forums where folks are looking for a fix. In reality nothing is broken and there is no need to fix the issue.<span id="more-1269"></span></p>
<p>VMware has <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1020524" target="_blank">published a KB article</a> that gives more information on TPS with Nehalem processors and why it appears TPS isn&#8217;t working (this affects modern AMD processors also). The short version is that TPS uses small pages (4K), and Nehalem processors utilize large pages (2MB). The ESX/ESXi host keeps track of what pages could be shared, and once memory is over-comitted it breaks the large pages into small pages and begins sharing memory.</p>
<p>Many people think this is a bug in ESX that needs to be fixed. This likely started because when vSphere 4 was released there <em><strong>was</strong></em> a bug around memory usage on ESX hosts with Nehalem processors. In reality the bug was that vCenter was triggering high memory usage alarms for virtual machines running in this configuration. Nothing was actually wrong but because the host was using all of the assigned memory for the VM, vCenter was incorrectly triggering the alarm. That behavior has since been fixed <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013206" target="_blank">with a patch </a>and is no longer an issue.</p>
<p>So what does this actually look like? When a VM is powered up on an ESX host with Nehalem processors, the amount of host memory in use will not drop down as the VM uses less memory or becomes idle. Those of us that have been using ESX for a long time likely found this scenario disturbing.</p>
<p>From vSphere Client (red highlighted section shows guest taking all of the 2GB assigned memory, yet memory usage in the guest is very low):</p>
<p><img class="alignnone size-full wp-image-1273" title="High host memory usage" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/MemUsageBeforeTPS.jpg" alt="High host memory usage" width="599" height="251" /></p>
<p>From esxtop (red highlighted section shows almost no memory being shared with page sharing):</p>
<p><img class="alignnone size-full wp-image-1277" title="View from esxtop" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/EsxtopNoTPS.jpg" alt="View from esxtop" width="608" height="371" /></p>
<p>The above screenshots show a host that is <em>under-committed </em>on memory and so no page sharing is occurring.  If the host gets over-commited page sharing kicks in automatically by breaking up large pages into small pages.  You can force the use of small pages on all guests all the time by changing the value of the advanced option Mem.AllocGuestLargePage to 0.  I don&#8217;t really see any reason to do this &#8211; remember that TPS isn&#8217;t broken and what you see in the above screenshots is normal and expected.</p>
<p>Once host memory is over-committed (or if you use the advanced option), memory sharing kicks in and things look like they normally do when page sharing is taking place.</p>
<p>From the vSphere Client (red highlighted section shows guest taking very little of the assigned 2GB memory as page sharing has kicked in):</p>
<p><img class="alignnone size-full wp-image-1279" title="Memory usage with TPS" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/MemUsageAfterTPS.jpg" alt="Memory usage with TPS" width="681" height="241" /></p>
<p>From esxtop (red highlighted sections show a large amount of shared memory and the host is over-commited on memory by 48%):</p>
<p><img class="alignnone size-full wp-image-1281" title="esxtop with TPS" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/EsxtopWithTPS.jpg" alt="esxtop with TPS" width="649" height="394" /></p>
<p>A quick note on the esxtop screenshot above &#8211; it was taken from a VDI environment where all workloads are identical so that explains the high amount of shared pages.  It was also overcommitted more than normal as it was taken during host maintenance.</p>
<p>I hope this clears up some of the confusion around TPS on modern Intel/AMD processors.  In short, don&#8217;t get hung up on the fact that TPS isn&#8217;t kicking in like it did with older processors.  Nothing is broken, TPS is working as expected, and it will kick in when you actually need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Round Robin MPIO as default for vSphere 4/EqualLogic SANs</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/#comments</comments>
		<pubDate>Fri, 07 May 2010 15:18:28 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[EqualLogic]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1189</guid>
		<description><![CDATA[When VMware released vSphere 4 last year, one of the changes they made was a completely re-written software iSCSI initiator.  This was done to optimize performance which is great considering how popular iSCSI SANs have become. They also gave the ability to use Round Robin MPIO (mutlipathing) in the software initiator in addition to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F07%2Fset-round-robin-mpio-as-default-for-vsphere-4equallogic-sans%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F07%2Fset-round-robin-mpio-as-default-for-vsphere-4equallogic-sans%2F" height="61" width="51" /></a></div><p>When VMware released vSphere 4 last year, one of the changes they made was a completely re-written software iSCSI initiator.  This was done to optimize performance which is great considering how popular iSCSI SANs have become. They also gave the ability to use Round Robin MPIO (mutlipathing) in the software initiator in addition to Fixed Path and MRU which were previously available.</p>
<p>I&#8217;m working on a vSphere implementation using Dell EqualLogic SANs and wanted to configure Round Robin on all of my datastores.  Dell has a <a href="http://www.equallogic.com/resourcecenter/assetview.aspx?id=8453" target="_blank">great whitepaper</a> on how to set this up, but unfortunately the document fails to mention one key thing: this doesn&#8217;t change the default path selection plugin (PSP) from Fixed to Round Robin.    That means that you&#8217;ll have to set the multipathing policy to Round Robin on all of your existing datastores and will have to remember to do that on all future datastores.  When you&#8217;ve got multiple ESX hosts with lots of  datastores this can quickly become a pain.</p>
<p><span id="more-1189"></span>Luckily there is a way to force the default multipathing policy to Round Robin.  The following commands can be used to change the default PSP to Round Robin as well as configure round robin specifically for the EqualLogic provider.  These commands can be entered at the Service Console or via the <a href="http://www.vmware.com/support/developer/vcli/">vSphere CLI 4.0</a>:</p>
<blockquote><p>esxcli nmp satp setdefaultpsp &#8211;satp VMW_SATP_DEFAULT_AA  &#8211;psp VMW_PSP_RR<br />
esxcli nmp satp setdefaultpsp &#8211;satp VMW_SATP_EQL  &#8211;psp VMW_PSP_RR<br />
esxcli corestorage claimrule load<br />
esxcli corestorage claimrule run</p></blockquote>
<p><em>Note that &#8220;satp&#8221; and &#8220;psp&#8221; are preceded by two dashes and not a single dash as it appears in this blog post.</em></p>
<p>Once you enter those commands (no rebooting required) any volume you add, either new or existing, will use Round Robin MPIO by default.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Does ASLR really hurt memory sharing in VMware vSphere?</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 15:47:10 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142</guid>
		<description><![CDATA[I&#8217;ve seen a lot of talk lately about VMware&#8217;s Transparent Page Sharing (TPS) and how it is affected by ASLR in Windows 2008/Windows 7.  I wanted to see if there was any real measurable reduction in shared memory when using ASLR vs. when it was disabled.  First, let&#8217;s talk about what TPS and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F04%2F26%2Feffect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F04%2F26%2Feffect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere%2F" height="61" width="51" /></a></div><p>I&#8217;ve seen a lot of talk lately about VMware&#8217;s Transparent Page Sharing (TPS) and how it is affected by ASLR in Windows 2008/Windows 7.  I wanted to see if there was any real measurable reduction in shared memory when using ASLR vs. when it was disabled.  First, let&#8217;s talk about what TPS and ASLR actually are and what the acronyms mean.<br />
<span id="more-1142"></span><br />
Transparent Page Sharing is a technology built into ESX/ESXi that looks for identical guest memory pages and writes them to memory just once.  Guests can then share those identical pages rather than each writing the same page to memory.  TPS is a great feature that allows for memory overcommittment, especially on hosts that run many of the same type of workload.</p>
<p>Address Space Layout Randomization (ASLR) is a security feature that randomizes the position of data in memory, making it more difficult for attackers to predict where data can be found while in memory.  This feature has been enabled in Windows since Windows Vista, and other operating system such as Linux and MacOS implement this in some form as well.</p>
<p>Since ASLR randomizes information in memory it makes sense that it would be more difficult for TPS to find identical memory pages and thus memory sharing would be reduced.  But just how much of a difference does it make?  I decided to try and find out.  Here are the specs from my test environment:</p>
<p>Server: HP DL385 G1 (AMD Opteron 275)<br />
ESX: 4.0.0 build 244038<br />
Guest OS: Windows Server 2008 R2<br />
Guest RAM: 2.5GB</p>
<p>All guests were cloned from the same template and have the same software installed.  On guests TESTSRV1 and TESTSRV3, I left the default settings. On TESTSRV2 and TESTSRV4, I disabled ASLR using the following regkey:</p>
<p><em>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]<br />
&#8220;MoveImages&#8221;=dword:00000000</em></p>
<p>In all of my testing, including leaving VMs idle and also running memory tests, I found <strong>no measurable difference</strong> in the amount of memory shared with TPS.  I also looked at esxtop to see how much memory was actually being shared and I saw virtually no difference whatsoever between VMs that had ASLR enabled and those that had it disabled.</p>
<p><strong>Host Memory Usage:</strong><br />
<img src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/04/HostMem.jpg" alt="Host Memory Usage" title="Host Memory Usage" width="539" height="116" class="alignnone size-full wp-image-1158" /></p>
<p><strong>esxtop statistics:</strong><br />
<img src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/04/esxtop.png" alt="esxtop" title="esxtop" width="501" height="102" class="alignnone size-full wp-image-1168" /></p>
<p>The SHRD and SHRDSVD columns represent how much memory is being shared with TPS and the total memory savings.  Clearly there is quite a bit of memory sharing going with or without ASLR enabled. </p>
<p>Why would this be the case since it makes sense that TPS would be hurt by ASLR?  ASLR requires applications to &#8220;opt-in&#8221; to have their memory randomized, and I suspect that much of Windows 2008 R2 is not opted in.  Perhaps applications will come out in the future that are written to take advantage of ASLR, but at the moment that doesn&#8217;t appear to be the case.</p>
<p>Of course this is by no means a definitive test as it wasn&#8217;t run with production systems and real users running real applications.  That said, I think it shows that ASLR does not dramatically reduce the amount of memory shared with TPS.  I did also look at production systems left at the default settings (ASLR enabled) and saw similar memory sharing gains.  I&#8217;m curious if others have seen similar results in their environments, so drop me a line if you&#8217;ve done any similar testing.</p>
<p>More info:<br />
<br />
<a href="http://en.wikipedia.org/wiki/Address_space_layout_randomization" target="_blank">What is ASLR (Wikipedia)</a><br />
<a href="http://communities.vmware.com/docs/DOC-9279/version/2;jsessionid=AD58140E2334A04A619AD1DC3D07F43F" target="_blank">Interpreting esxtop statistics</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Comparing VMware Fault Tolerance to Microsoft Failover Clusters</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 20:09:32 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Failover Cluster]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=416</guid>
		<description><![CDATA[With the release of VMware vSphere 4, VMware has released a very powerful management tool called Fault Tolerance (FT).  At a basic level, FT allows you to keep two virtual machines (a Primary VM and a Secondary VM) running in lockstep on two different physical ESX hosts.  If one of the ESX hosts were to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F10%2F01%2Fcomparing-vmware-fault-tolerance-to-microsoft-failover-clusters%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F10%2F01%2Fcomparing-vmware-fault-tolerance-to-microsoft-failover-clusters%2F" height="61" width="51" /></a></div><p>With the release of VMware vSphere 4, VMware has released a very powerful management tool called <a href="http://www.vmware.com/products/fault-tolerance/" target="_blank">Fault Tolerance</a> (FT).  At a basic level, FT allows you to keep two virtual machines (a Primary VM and a Secondary VM) running in lockstep on two different physical ESX hosts.  If one of the ESX hosts were to experience a hardware failure, the VM protected with FT would remain running on the second host without any downtime.  This can greatly reduce downtime due to hardware failures and provide increased service levels for important applications.</p>
<p>FT is often compared to Microsoft Windows Failover Clusters, formerly Microsoft Cluster Server (MSCS), and in fact many have talked about how FT can replace Microsoft clustering altogether.  Rather than jump to conclusions like this, it is important to understand the use cases for both technologies.  In addition, there are several limitations to FT that need to be considered. Here are some important points to remember about FT:</p>
<p><span id="more-416"></span></p>
<p>1) FT only supports a single vCPU, limiting its usefulness for some applications (this will probably change in the future).</p>
<p>2) FT is meant to protect against <strong>host level failures</strong> only, such as physical server failures.</p>
<p>3) FT keeps protected virtual machines in complete lockstep, meaning whatever happens on the Primary VM also happens on the Secondary VM.  Why is this important to understand?  Guess what happens when the Primary VM bluescreens.</p>
<p>4) FT VMs share the same virtual disk file, meaning a storage level failure affects both.</p>
<p>Microsoft Failover Clustering, on the other hand, can help protect against <strong>application and operating system</strong> level failures in addition to physical server failures.  Clusters also make it easier to patch the underlying operating system with minimal downtime.  Finally, FT has a limited set of hardware that it is compatible with (see <a href="http://www.vmware.com/download/shared_utilities.html" target="_blank">this link</a> to check if your system is compatible) so that may limit its usefulness for some organizations using older hardware.</p>
<p>All of that said, FT is a great feature and definitely has a place in your virtual infrastructure.  Best of all it is available in <a href="http://www.vmware.com/products/vsphere/mid-size-and-enterprise-business/buy.html" target="_blank">vSphere Advanced</a> and above, making it an affordable feature that many organizations may already own.  So what are good use cases for FT over Microsoft clusters?  Here are some thoughts:</p>
<ul>
<li>Provide hardware level protection to applications that don&#8217;t natively support any clustering functionality.  There are many examples here &#8211; web servers, application servers, etc.</li>
<li>Provide hardware level protection to applications where clustering support may be available but is either expensive or requires a special license.  Document management servers, indexers, etc., may make good candidates here.</li>
<li>Provide extra protection against hardware failures for critical applications during specific business periods where downtime simply cannot be tolerated, such as accounting servers during end of month processing.</li>
<li>Your specific virtual infrastructure configuration precludes you from using Microsoft clusters due to <a href="http://www.windowsservercatalog.com/svvp.aspx?svvppage=svvpwizard.htm" target="_blank">Microsoft</a> or <a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_mscs.pdf" target="_blank">VMware</a> supportability.</li>
</ul>
<p>VMware FT is a great new feature that can help provide extra uptime to virtual machines in your environment.  It is available in most versions of vSphere and should definitely be considered as part of a virtual infrastructure design.  Just make sure you understand the use cases for it and don&#8217;t rule out Microsoft clusters where they are appropriate.</p>
<p>See also:</p>
<p><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013428" target="_blank">FT Frequently Asked Questions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Expand Windows 2008 boot volumes with no downtime</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/09/14/expand-windows-2008-boot-volumes-with-no-downtime/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/09/14/expand-windows-2008-boot-volumes-with-no-downtime/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 18:10:32 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=612</guid>
		<description><![CDATA[In a previous post, I discussed how to expand virtual machine boot volumes with no downtime using Dell&#8217;s ExtPart utility.  Using this method is useful if you are using Windows Server 2000/2003, but is no longer required when using Windows 2008.  With Windows 2008 becoming the preferred server operating system going forward, using the method [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F09%2F14%2Fexpand-windows-2008-boot-volumes-with-no-downtime%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F09%2F14%2Fexpand-windows-2008-boot-volumes-with-no-downtime%2F" height="61" width="51" /></a></div><p>In a <a href="http://blogs.kraftkennedy.com/index.php/2009/06/30/expand-virtual-machine-boot-volumes-with-no-downtime/" target="_blank">previous post</a>, I discussed how to expand virtual machine boot volumes with no downtime using Dell&#8217;s ExtPart utility.  Using this method is useful if you are using Windows Server 2000/2003, but is no longer required when using Windows 2008.  With Windows 2008 becoming the preferred server operating system going forward, using the method described below will become more and more common.</p>
<p>Microsoft has made it possible to expand boot volumes easily and on the fly without downtime without the need for any additional tools.  In this example, we&#8217;ll expand the C: drive of a Windows 2008 virtual machine from 25GB to 30GB.</p>
<p>1. Expand the size of the virtual disk.<br />
<img class="size-full wp-image-613 alignnone" src="http://blogs.kraftkennedy.com/wp-content/uploads/2009/09/Win2k8-ExpandDisk.JPG" alt="Expand virtual hard drive" width="310" height="78" /></p>
<p>2. Launch Disk Management by right clicking on My Computer, selecting Manage, and then selecting Storage\Disk Management.  If you do not see the unallocated space, right click on Disk Management and select &#8220;Rescan Disks.&#8221;</p>
<p><img class="size-full wp-image-614 alignnone" src="http://blogs.kraftkennedy.com/wp-content/uploads/2009/09/Win2k8-DiskMgmt.JPG" alt="Disk Management" width="438" height="66" /></p>
<p>
<span id="more-612"></span></p>
<p>3. Right click on the currently allocated (blue) space, and select &#8220;Extend Volume&#8230;&#8221; to launch the Extend Volume Wizard.</p>
<p><img class="size-full wp-image-616 alignnone" src="http://blogs.kraftkennedy.com/wp-content/uploads/2009/09/Win2k8-Extend.JPG" alt="Win2k8-Extend" width="157" height="178" /></p>
<p>4. Select Next at the Wizard launch screen, and then confirm the amount of space to add to the volume.</p>
<p><img class="size-full wp-image-617 alignnone" src="http://blogs.kraftkennedy.com/wp-content/uploads/2009/09/Win2k8-ConfirmSize.JPG" alt="Confirm Size of Volume" width="391" height="311" /></p>
<p>5. Select Finish to extend the volume to the new size.</p>
<p><img class="alignnone size-full wp-image-627" src="http://blogs.kraftkennedy.com/wp-content/uploads/2009/09/Win2k8-ExtendedVolume.JPG" alt="Extended Volume" width="482" height="72" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/09/14/expand-windows-2008-boot-volumes-with-no-downtime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware Tools lockdown for VDI/Terminal Server environments</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/08/10/vmware-tools-lockdown-for-vditerminal-server-environments/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/08/10/vmware-tools-lockdown-for-vditerminal-server-environments/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 03:46:40 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=406</guid>
		<description><![CDATA[Installing the VMware Tools package inside a VMware virtual machine improves overall performance and allows the use of advanced features and faster virtual hardware drivers.  The installation package also installs a tray icon that controls guest access to virtual hardware, time synchronization, etc.  Since most virtual machines are servers and end users don&#8217;t typically access [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F08%2F10%2Fvmware-tools-lockdown-for-vditerminal-server-environments%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F08%2F10%2Fvmware-tools-lockdown-for-vditerminal-server-environments%2F" height="61" width="51" /></a></div><p>Installing the VMware Tools package inside a VMware virtual machine improves overall performance and allows the use of advanced features and faster virtual hardware drivers.  The installation package also installs a tray icon that controls guest access to virtual hardware, time synchronization, etc.  Since most virtual machines are servers and end users don&#8217;t typically access the console of a server, worries about the security implications of leaving that tray application running have been fairly minimal.  However, as firms move towards solutions like virtualized XenApp servers or virtual desktops, this becomes more of a concern.</p>
<p>Removing administrator access to end users is unfortunately not enough.  For example, a user can open the VMware Tools tray icon and select the Devices tab, and from there can uncheck &#8220;NIC1&#8243; and click Apply.  What happens?  You guessed it &#8211; the virtual NIC is disconnected and the user loses connection.  That&#8217;s bad in a virtual desktop environment since it will orphan the desktop and likely require a connection broker like XenDesktop to create another desktop but it is even worse on a XenApp server where the user potentially just disconnected dozens of other users as well.</p>
<p>This, and several other things found in the VMware Tools, can be dangerous to leave available to an end user even if they have no rights to the server itself.  To get around this, there are two approaches that make sense:</p>
<p>1) Remove access to the VMware Tools for end users.</p>
<p>2) Modify the VMX configuration file to prevent these actions.</p>
<p>I prefer the second method since it allows for more granular control over security, though if you&#8217;re interested in option one then you can read VMware&#8217;s <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1006354" target="_blank">KB article</a> on the subject.  In order to prevent this at the VMX (virtual machine configuration file) level, simply add the following lines to the virtual machine(s) that you wish to protect (after powering it down):</p>
<p><em>isolation.device.connectable.disable = &#8220;true&#8221;<br />
isolation.device.edit.disable = &#8220;true&#8221;</em></p>
<p>To see how to add one of these values to the VMX file via PowerShell and PowerCLI, it would look something like this:</p>
<p><em>$vm = Get-View (Get-VM NameofVM).ID<br />
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec<br />
$vmConfigSpec.extraconfig += New-Object VMware.Vim.optionvalue<br />
$vmConfigSpec.extraconfig[0].Key=&#8221;<em>isolation.device.connectable.disable</em>&#8221;<br />
$vmConfigSpec.extraconfig[0].Value=&#8221;true&#8221;<br />
$vm.ReconfigVM($vmConfigSpec)</em></p>
<p>There are many other security parameters that can be set in the VMX file that are covered in VMware&#8217;s <a href="http://www.vmware.com/files/pdf/vi35_security_hardening_wp.pdf" target="_blank">Security Hardening document</a> (PDF).  The document covers this and many other common security best practices for virtual machines.  As always, test any change you make (especially the script above) before putting anything into production.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/08/10/vmware-tools-lockdown-for-vditerminal-server-environments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft submits virtualization driver code for Linux kernel</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/07/23/microsoft-submits-virtualization-driver-code-for-linux-kernel/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/07/23/microsoft-submits-virtualization-driver-code-for-linux-kernel/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:36:34 +0000</pubDate>
		<dc:creator>David Carlson</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=378</guid>
		<description><![CDATA[Microsoft has made a very interesting virtualization play this week by submitting source code for the Linux kernel. This will allow Linux guests to run on the maturing Windows 2008 hypervisor, Microsoft Hyper-V. This is an unexpected move from Microsoft to publicly release source code and an indicator of their appetite to compete with VMware&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F07%2F23%2Fmicrosoft-submits-virtualization-driver-code-for-linux-kernel%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F07%2F23%2Fmicrosoft-submits-virtualization-driver-code-for-linux-kernel%2F" height="61" width="51" /></a></div><p>Microsoft has made a very interesting virtualization play this week by submitting source code for the Linux kernel. This will allow Linux guests to run on the maturing Windows 2008 hypervisor, Microsoft Hyper-V. This is an unexpected move from Microsoft to publicly release source code and an indicator of their appetite to compete with VMware&#8217;s dominate market share.</p>
<p><a href="http://www.networkworld.com/news/2009/072009-microsoft-linux-source-code.html?ts0hb&amp;story=mslinux" target="_blank"><strong>Microsoft stuns Linux world, submits source code for kernel</strong></a></p>
<blockquote><p>In an historic move, Microsoft Monday submitted driver source code for inclusion in the Linux kernel under a GPLv2 license. The code consists of four drivers that are part of a technology called Linux Device Driver for Virtualization.</p></blockquote>
<p><a href="http://www.pcworld.com/businesscenter/article/168759/microsoft_linux_move_puts_pressure_on_vmware.html" target="_blank"><strong>Microsoft Linux Move Puts Pressure on VMware</strong></a></p>
<blockquote><p>Microsoft&#8217;s historic embrace of Linux technology could have wide-reaching impacts on the virtualization market and Microsoft&#8217;s rival VMware.</p>
<p>By allowing greater ability to run Linux on the Hyper-V virtualization platform, Microsoft is making a compelling case that it could be the virtualization vendor of choice for consolidation of Windows and Linux applications, says Gartner analyst George Weiss.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/07/23/microsoft-submits-virtualization-driver-code-for-linux-kernel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Verifying support for Microsoft applications running in virtual machines</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/07/06/verifying-support-for-microsoft-applications-running-in-virtual-machines/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/07/06/verifying-support-for-microsoft-applications-running-in-virtual-machines/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 19:47:14 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=287</guid>
		<description><![CDATA[Microsoft has done a nice job of late regarding supporting their operating systems and applications when they are run in a virtual machine.  First they created the Server Virtualization Validation Program to validate their software running on hypervisors from various vendors, including their own Hyper-V.   They&#8217;ve taken the SVVP one step further by [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F07%2F06%2Fverifying-support-for-microsoft-applications-running-in-virtual-machines%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F07%2F06%2Fverifying-support-for-microsoft-applications-running-in-virtual-machines%2F" height="61" width="51" /></a></div><p>Microsoft has done a nice job of late regarding supporting their operating systems and applications when they are run in a virtual machine.  First they created the <a href="http://www.windowsservercatalog.com/svvp.aspx?svvppage=svvp.htm" target="_blank">Server Virtualization Validation Program</a> to validate their software running on hypervisors from various vendors, including their own Hyper-V.   They&#8217;ve taken the SVVP one step further by adding a new tool called the Support Policy Wizard that makes it fast and simple to verify Microsoft support.  It can be found at the following link:</p>
<p><a href="http://www.windowsservercatalog.com/svvp.aspx?svvppage=svvpwizard.htm" target="_blank">http://www.windowsservercatalog.com/svvp.aspx?svvppage=svvpwizard.htm</a></p>
<p>This tool makes it easy to select a specific configuration, including operating system, hypervisor, and Microsoft application, and then verify it against the SVVP to ensure Microsoft supportability.  It also lists any specific application features that are or are not supported.  Validating your configuration against Microsoft&#8217;s Support Policy Wizard is an important step, especially when virtualizing mission critical applications like Exchange or SQL.</p>
<p>Try the wizard and see the results for yourself.  I tried it myself and the results are below.  I selected Exchange Server 2007 SP1 running on vSphere 4 with Windows Server 2008 x64 and received the following supportability statement back:</p>
<p><span style="text-decoration: underline;"><strong>Summary Support Statement*</strong></span><br />
<span style="color:black; font-family:Arial">This configuration is <strong>Supported</strong>.</span></p>
<p><span style="color:red">* Customers with Premier-level support agreements should contact their account manager for more information<br />
* Additional information is available in the &#8220;Support policy for Microsoft software running in non-Microsoft hardware virtualization software&#8221; which can be viewed <a href="http://support.microsoft.com/kb/897615"></a></span><span style="color:black"><a href="http://support.microsoft.com/kb/897615">here</a></span><span style="color:red"><a href="http://support.microsoft.com/kb/897615"><br />
</a></span></p>
<p><a href="http://support.microsoft.com/kb/897615"> </a><span style="text-decoration: underline;"><strong>Support Statement Details </strong></span><br />
Product: <strong>Exchange Server 2007 Service Pack 1 on VMware vSphere with Windows Server 2008 (x64) Guest OS</strong></p>
<p><a href="http://support.microsoft.com/kb/897615"> </a><a href="http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&amp;query=Exchange%20Server%202007+virtualization&amp;spid=10926" target="_blank"><span style="font-family:Arial"><strong>Search the Knowledge Base for information related to this configuration</strong></span></a></p>
<p>For Exchange Service 2007 Pack 1 and later, see <a href="http://technet.microsoft.com/en-us/library/cc794548.aspx" target="_blank">here</a> for specific configuration information. Note: The Exchange Server guest virtual machine must be deployed on the Windows Server 2008 operating system.</p>
<p>Specific third-party virtualization information is available at <a href="http://windowsservercatalog.com/results.aspx?&amp;bCatID=1521&amp;cpID=0&amp;avc=0&amp;ava=0&amp;avq=0&amp;OR=1&amp;PGS=25&amp;ready=0" target="_blank">here</a></p>
<p>To get support on the virtualization solution, the customer also needs to have a support agreement with the third party vendor.</p>
<p><strong>Supported features: </strong> Anti-Virus, Back-up Software, Virtual Machine Management Software, Cluster Continuous Replication (CCR), Virtual Processors</p>
<p><strong>Unsupported features: </strong> Unified Messaging, Dynamically Expanding Virtual Disks, Virtual disks that use differencing or delta mechanisms, Hyper-V Quick Migration combined with Exchange Clustering, Virtual Machine Snap Shots</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/07/06/verifying-support-for-microsoft-applications-running-in-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating VMware ESX snapshot notification</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:01:38 +0000</pubDate>
		<dc:creator>David Carlson</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.research.kkl.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/</guid>
		<description><![CDATA[Discovering that your ESX hosts have been unknowingly creating open snapshots can be an alarming, not to mention dangerous, event.
Third party storage and backup vendors frequently call the vCenter API to issue a snapshot creation of running virtual machines before they grab a copy of the virtual machine&#8217;s hard disk &#8211; VMDK files &#8211; which [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F05%2F06%2Fautomating-vmware-esx-snapshot-notification%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F05%2F06%2Fautomating-vmware-esx-snapshot-notification%2F" height="61" width="51" /></a></div><p>Discovering that your ESX hosts have been unknowingly creating open snapshots can be an alarming, not to mention dangerous, event.</p>
<p>Third party storage and backup vendors frequently call the <a href="http://www.vmware.com/products/vi/vc/">vCenter</a> API to issue a snapshot creation of running virtual machines before they grab a copy of the virtual machine&#8217;s hard disk &#8211; VMDK files &#8211; which are located on the VMware VMFS datastore. This process is typically followed by an immediate deletion of the snapshot file which will merge the changes back into the initial VMDK file. Problems can occur when this process does not complete successfully leaving you with an &#8220;open&#8221; snapshot. This problem is compounded when it occurs multiple times against the same guest.</p>
<p>Each open snapshot can significantly degrade virtual machine performance and also contribute to poor storage utilization. Unless you monitor each of your virtual machines on a daily basis, you could quickly be left with an uncomfortable situation on your hands.</p>
<p><span id="more-106"></span></p>
<p>The script below can be easily customized for your environment and provide regular email reports for open snapshots.</p>
<p style="margin-left: 72pt"><span style="color:gray">#Initialize VI Toolkit<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">Add-PSSnapin VMware.VimAutomation.Core<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Configure VC credentials<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$Username = &#8217;service_account_name&#8217;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$password = &#8216;PASSWORD&#8217;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$server = &#8216;vcenter_host.domain.local&#8217;<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Setup email client<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient = New-Object system.net.mail.smtpClient<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage = New-Object system.net.mail.mailmessage<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient.host = &#8220;smtp_host.domain.local&#8221;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.from = &#8220;virtualcenter@domain.com&#8221;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.To.add(&#8221;admin@domain.com&#8221;)<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.IsBodyHtml = 1<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.Subject = &#8220;List of current VMware Snapshots&#8221;<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Get snapshots from all servers<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">Connect-VIServer $server -User $Username -Password $password<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$Snaps = Get-VM | Get-Snapshot | Select VM,Name,Created<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray"># Send email<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.body = $Snaps | ConvertTo-Html<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient.Send($MailMessage)<br />
</span></p>
<p>To execute the script, you will need to install Powershell and the <a href="http://www.vmware.com/sdk/vitk_win/index.html">VI Toolkit</a><span style="color:#993366">. </span>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
