<?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; templates</title>
	<atom:link href="http://www.vcritical.com/tag/templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Wed, 19 Oct 2011 22:08:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Getting eth0 back in a SLES for VMware clone</title>
		<link>http://www.vcritical.com/2010/10/getting-eth0-back-in-a-sles-for-vmware-clone/</link>
		<comments>http://www.vcritical.com/2010/10/getting-eth0-back-in-a-sles-for-vmware-clone/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 19:04:52 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=2859</guid>
		<description><![CDATA[After cloning a Linux VM in vSphere, the network interface may be named eth1 instead of eth0.  Learn how to change it in a snap.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost effortless to use vCenter Server to create customized clones of virtual machines.  <a href="http://www.vcritical.com/tag/vsphere">VMware vSphere</a> is the only virtualization platform that has fully integrated Linux guest <a href="http://www.vcritical.com/tag/customization">customization</a> &#8212; a handy wizard allows setting unique attributes of the guest such as name, static IP address, timezone, and DNS settings.  That means the your new VM is deployed and ready for action without additional configuration.</p>
<p><img class="alignnone size-full wp-image-2860" title="vSphere guest customization wizard for Linux" src="http://www.vcritical.com/wp-content/uploads/2010/10/cust-wizard-network-properties.png" alt="" width="592" height="370" /></p>
<p>After cloning a Linux VM, you might find your network interface is no longer named <strong>eth0</strong>, taking on <strong>eth1 </strong>instead.  Fortunately, this doesn&#8217;t cause any functional problems with the guest and can be left as-is.  However, if you are not satisfied with this scenario, read on&#8230;</p>
<p><a href="http://www.vcritical.com/tag/sles/">SLES for VMware</a>, which is SLES 11 SP1, uses udev to provide persistency to various devices.  While this model is regarded by most as a big step forward from the semi-random device name assignments of the past, one side-effect is that a new MAC address &#8212; pertinent when cloning VMs &#8212; is regarded as an <em>additional </em>interface and not a replacement.  Thus, a newly-cloned SLES VM powers up with eth1 as the NIC name, not eth0.</p>
<p>Fortunately, this situation is easy to fix.  Simply log into the VM and edit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">70</span>-persistent-net.rules</pre></div></div>

<p>Which should look something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;net&quot;</span>, <span style="color: #007800;">ACTION</span>==<span style="color: #ff0000;">&quot;add&quot;</span>, <span style="color: #007800;">DRIVERS</span>==<span style="color: #ff0000;">&quot;?*&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>address<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;00:50:56:97:00:35&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">type</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;1&quot;</span>, <span style="color: #007800;">KERNEL</span>==<span style="color: #ff0000;">&quot;eth*&quot;</span>, <span style="color: #007800;">NAME</span>=<span style="color: #ff0000;">&quot;eth0&quot;</span>
&nbsp;
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;net&quot;</span>, <span style="color: #007800;">ACTION</span>==<span style="color: #ff0000;">&quot;add&quot;</span>, <span style="color: #007800;">DRIVERS</span>==<span style="color: #ff0000;">&quot;?*&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>address<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;00:50:56:97:00:38&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">type</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;1&quot;</span>, <span style="color: #007800;">KERNEL</span>==<span style="color: #ff0000;">&quot;eth*&quot;</span>, <span style="color: #007800;">NAME</span>=<span style="color: #ff0000;">&quot;eth1&quot;</span></pre></div></div>

<p>In the above example, the first line contains the MAC address of the original template VM and the second line is the new NIC/MAC found in the clone.</p>
<p>There are two ways to fix this issue:</p>
<ul>
<li>Completely delete the file &#8212; it will be created again on boot and the first NIC will be assigned eth0, OR</li>
<li>Delete the line containing the old entry that references eth0 and change &#8220;eth1&#8243; to &#8220;eth0&#8243; in the remaining line.</li>
</ul>
<p>Note: if a static IP has been configured, go to /etc/sysconfig/network/ and update the files <strong>ifcfg-eth0</strong> and <strong>route </strong>accordingly.</p>
<p>Reboot the VM and verify that the NIC(s) are named to your liking.</p>
<p>No real breaking news here, but given the newly available SLES for VMware, some evaluators may run into this situation.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2010/09/installing-vmware-tools-osps-in-sles-for-vmware/' rel='bookmark' title='Installing VMware Tools OSPs in SLES for VMware'>Installing VMware Tools OSPs in SLES for VMware</a></li>
<li><a href='http://www.vcritical.com/2011/02/sles-for-vmware-entitlement-expands-broadly/' rel='bookmark' title='SLES for VMware Entitlement Expands Broadly'>SLES for VMware Entitlement Expands Broadly</a></li>
<li><a href='http://www.vcritical.com/2011/03/start-and-manage-a-vm-without-using-vsphere-client/' rel='bookmark' title='Start and Manage a VM Without Using vSphere Client'>Start and Manage a VM Without Using vSphere Client</a></li>
<li><a href='http://www.vcritical.com/2010/09/sles-for-vmware-first-look/' rel='bookmark' title='SLES for VMware &#8211; First Look'>SLES for VMware &#8211; First Look</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/10/getting-eth0-back-in-a-sles-for-vmware-clone/#respond">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/customization/" rel="tag">customization</a>, <a href="http://www.vcritical.com/tag/linux/" rel="tag">Linux</a>, <a href="http://www.vcritical.com/tag/sles/" rel="tag">SLES</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2010/10/getting-eth0-back-in-a-sles-for-vmware-clone/">Getting eth0 back in a SLES for VMware clone</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/10/getting-eth0-back-in-a-sles-for-vmware-clone/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Truth About VM SAN Transfers</title>
		<link>http://www.vcritical.com/2009/12/the-truth-about-vm-san-transfers/</link>
		<comments>http://www.vcritical.com/2009/12/the-truth-about-vm-san-transfers/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 12:05:59 +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[templates]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1959</guid>
		<description><![CDATA[While Microsoft marketing material claims Hyper-V and SCVMM can transfer large virtual machine files and templates over a SAN, the truth is that all VM transfers are done over the network.  Only VMware ESX leverages high-speed storage area networking for VM migration.]]></description>
			<content:encoded><![CDATA[<p>Most enterprise virtualization deployments make use of a robust shared storage infrastructure.  A high-performance SAN allows multiple hypervisors to access virtual machine disks and is the foundation for amazing virtualization benefits such as VMware vMotion and HA.  There are other benefits, too.</p>
<p>Virtualization management tasks such as cloning existing virtual machines or deploying new ones from templates often involve slinging around multi-gigabyte chunks of data.  It&#8217;s preferable to move or copy data on the SAN instead of the LAN because it can be faster, but more importantly, doing so reduces impact to other services that rely on the LAN.</p>
<h2>Use the SAN, ESX!</h2>
<p>VMware ESX will transfer VMs and templates over a SAN connection whenever possible but, if necessary, it also does a fine job of moving those bits over a standard LAN.  This goes for VMs <em>as well as templates</em> because with VMware vSphere, templates live on SAN datastores, too &#8212; shared among multiple ESX hosts &#8212; not on network file shares.  If templates <em>were </em>stored on a file server, there would be no choice other than to copy those multi-gigabyte files over the LAN and potentially impact other production traffic.</p>
<p>Nice design choice, VMware!  [<em>Actually, if you go back to the early days of VirtualCenter 1.x, templates could also be stored directly on the VC server and deployed over the network.  That option was removed as of VC 2.0.</em>]</p>
<p><strong>So far, so good.  Let&#8217;s take a look at how Hyper-V stacks up.<span id="more-1959"></span></strong></p>
<h2>Obfuscating the Inequalities</h2>
<p>In the tradition of the recent <a href="http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/">storage hot add/remove claims</a>, Microsoft has again gone the extra mile to give the appearance of feature parity.</p>
<p>Take a look at this excerpt from the System Center Virtual Machine Manager 2008 R2 <a href="http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/whats-new-R2.aspx" target="_blank">What&#8217;s New page</a>:</p>
<p style="padding-left: 30px;"><strong>SAN migration into and out of clustered hosts:</strong> This allows virtual machines to migrate into and out of clusters using a SAN transfer, which saves the time required for copying the virtual machine file over the network.</p>
<p>And the <a href="http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/features.aspx" target="_blank">features page</a> is even more dramatic, proclaiming:</p>
<p style="padding-left: 30px;">Virtual machine images can be large and difficult to move over the network. VMM auto-detects SAN infrastructure and enables copying of virtual machine images over fiber at fast speeds, thus leveraging SAN investments.</p>
<p>Sounds good, just like VMware &#8212; and at one-sixth the price!  But there is a small problem: <strong>it is not true</strong>.</p>
<p>Hyper-V uses the BITS service to transfer VMs over the LAN in almost all cases.  There <em>is</em> a scenario where SCVMM can orchestrate the disconnection and reconnection of a SAN LUN, &#8220;transferring&#8221; a VM to another host.  Enabling the feature requires additional configuration and some software from your SAN vendor.  Of course, it also means going back to <em>one VM per LUN</em> and foregoing the wonders of <a href="http://www.vcritical.com/tag/csv/" target="_blank">CSV</a>.  Any takers?</p>
<h2>The SCVMM Library Server</h2>
<p>SCVMM 2008 R2 provides VM template functionality for Hyper-V.  Templates  and ISO images are stored in a Library, which uses standard Windows file services.  Obviously, that means no SAN copying for template deployments, either &#8212; kind of like VMware VirtualCenter 1.0.</p>
<h2>Conclusion</h2>
<p>&#8220;SAN LUN disconnect and reconnect&#8221; just doesn&#8217;t have the same ring to it as &#8220;SAN transfer&#8221; but I&#8217;m not sure that is sufficient justification for these misleading marketing claims.  And to use the word &#8220;copying&#8221; is simply dishonest.</p>
<p>Don&#8217;t make the mistake of assuming Hyper-V is just like VMware ESX.  Compare for yourself &#8212; seeing is believing.</p>
<p style="padding-left: 30px;">


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2008/12/igt-part-2-san-misers/' rel='bookmark' title='IGT Part 2: SAN Misers'>IGT Part 2: SAN Misers</a></li>
<li><a href='http://www.vcritical.com/2008/10/storage-vendors-unanimously-applaud-scvmm-innovation/' rel='bookmark' title='Storage vendors unanimously applaud SCVMM innovation'>Storage vendors unanimously applaud SCVMM innovation</a></li>
<li><a href='http://www.vcritical.com/2009/11/the-truth-about-storage-hot-add-and-remove/' rel='bookmark' title='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/2008/10/scvmm-to-vmware-you-will-be-assimilated/' rel='bookmark' title='SCVMM to VMware: You will be assimilated'>SCVMM to VMware: You will be assimilated</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/2009/12/the-truth-about-vm-san-transfers/#respond">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/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/scvmm/" rel="tag">SCVMM</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/12/the-truth-about-vm-san-transfers/">The Truth About VM SAN Transfers</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/12/the-truth-about-vm-san-transfers/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Sysprep Me, Bro!</title>
		<link>http://www.vcritical.com/2009/07/dont-sysprep-me-bro/</link>
		<comments>http://www.vcritical.com/2009/07/dont-sysprep-me-bro/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 12:11:37 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Sysprep]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[XenCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1234</guid>
		<description><![CDATA[With SCVMM, VM templates are generalized with Sysprep before storing in the image library -- the original VM is destroyed and cannot be updated.  vCenter only Syspreps after cloning.]]></description>
			<content:encoded><![CDATA[<p>The top virtualization platforms allow for rapid deployment of virtual machines via templates.  This capability alone is enough to make virtual environments far more efficient than physical.</p>
<p>With template deployment comes VM (or &#8220;image&#8221;) customization &#8212; each instance of an OS needs to have a unique hostname and, in the case of Windows, a unique SID (security identifier).</p>
<p>Not surprisingly, each vendor has taken a different approach to image customization.  Let&#8217;s take a closer look.</p>
<h2>VMware vCenter Server Image Customization</h2>
<p>With VMware vSphere and vCenter Server, VM templates are simply virtual machines with a special flag that essentially prevents users from accidentally powering them on.  In fact, you can clone and customize a new VM from a standard VM if you prefer &#8212; converting to template first is not even required.  Sysprep is only run on the new VM after it is cloned &#8212; the original template/VM is never generalized by Sysprep.</p>
<p><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="size-full wp-image-1250 alignright" title="Convert VMware ESX template back to VM." src="http://www.vcritical.com/wp-content/uploads/2009/07/convert_to_vm.png" alt="Convert VMware ESX template back to VM." width="356" height="110" /></p>
<p>The great thing about this design is that it gives you the ability to instantly convert a template back to a standard VM.  That makes it very easy to update templates and, for example, minimize the exposure of deploying virtual machines in dire need of numerous security patches.</p>
<p>Of course, vCenter also supports <a href="http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/">Linux guest customization</a>, unlike competitors.<span id="more-1234"></span></p>
<h2>Virtual Machine Manager (SCVMM) Image Customization</h2>
<p>Microsoft System Center Virtual Machine Manger also has VM templates, but the workflow is quite different from vCenter.</p>
<p>When you create a template in SCVMM, the guest OS is generalized with Sysprep before it is copied into the library.  That effectively destroys the original VM and, in fact, this is what the warning message states when you create a template.</p>
<p><img class="alignnone size-full wp-image-1276" title="Creating a template destroys the original VM" src="http://www.vcritical.com/wp-content/uploads/2009/07/templating_destroys_vm.png" alt="Creating a template destroys the original VM" width="500" /></p>
<p>Maintaining a clone of every VM template obviously introduces some management overhead.  Another option you might consider: when it is time to update a VM template, simply deploy a fresh VM from the previous template, make changes, and then re-create a new template from the VM.  That <em>sounds </em>like it will work, but there is actually a problem that prevents it from being a viable solution. For technical reasons, Sysprep can only be run on a particular OS image a total of <strong>three times</strong>.  You can read all about the details in this <a href="http://technet.microsoft.com/en-us/library/cc766514(WS.10).aspx" target="_blank">TechNet article</a>. UPDATE: Activated systems in a KMS environment are <strong>not </strong>affected by this limit.</p>
<p>Here is what happens when you exceed the Sysprep limit when attempting to create a template in SCVMM:</p>
<p><img class="alignnone size-full wp-image-1249" title="Sysprep Failed!" src="http://www.vcritical.com/wp-content/uploads/2009/07/sysprep_failed.png" alt="Sysprep Failed!" width="482" height="230" /></p>
<p>Looks like SCVMM administrators will either be maintaining master clones of all templates, or reinstalling VMs from scratch when updated templates are needed.  Kind of makes you think about the whole &#8220;managing physical plus virtual&#8221; thing, doesn&#8217;t it?</p>
<h2>Citrix XenCenter Image Customization</h2>
<p>Curious to know how Citrix handles Windows VM cloning and customization?  <a href="http://docs.vmd.citrix.com/XenServer/5.5.0/1.0/en_gb/guest.html#clone_considerations_Windows" target="_blank">They just don&#8217;t bother</a> &#8212; the documentation simply explains how to manually run Sysprep on a Windows VM before converting to a template.  All the disadvantages of the SCVMM model &#8212; without the automation.  Nice.</p>
<h2>Summary</h2>
<p>VMware vCenter Server is the only virtualization management platform that offers fully functional, non-destructive VM templates for both Windows and Linux guest operating systems.</p>
<p><strong>What interesting VM/template strategies have <em>you </em>adopted?</strong></p>
<p style="text-align: right;"><em>With apologies to the &#8220;<a href="http://lmgtfy.com/?q=don%27t+taze+me%2C+bro" target="_blank">Don&#8217;t Taze Me, Bro!</a>&#8221; guy.</em></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2008/10/scvmm-to-vmware-you-will-be-assimilated/' rel='bookmark' title='SCVMM to VMware: You will be assimilated'>SCVMM to VMware: You will be assimilated</a></li>
<li><a href='http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/' rel='bookmark' title='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/2010/10/getting-eth0-back-in-a-sles-for-vmware-clone/' rel='bookmark' title='Getting eth0 back in a SLES for VMware clone'>Getting eth0 back in a SLES for VMware clone</a></li>
<li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='Even GPL can&#8217;t make Hyper-V Linux VMs well'>Even GPL can&#8217;t make Hyper-V Linux VMs well</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/2009/07/dont-sysprep-me-bro/#respond">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/citrix/" rel="tag">Citrix</a>, <a href="http://www.vcritical.com/tag/customization/" rel="tag">customization</a>, <a href="http://www.vcritical.com/tag/scvmm/" rel="tag">SCVMM</a>, <a href="http://www.vcritical.com/tag/sysprep/" rel="tag">Sysprep</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/virtual-machines/" rel="tag">virtual machines</a>, <a href="http://www.vcritical.com/tag/xencenter/" rel="tag">XenCenter</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/07/dont-sysprep-me-bro/">Don&#8217;t Sysprep Me, Bro!</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/07/dont-sysprep-me-bro/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Hyper-V Linux Smokescreen</title>
		<link>http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/</link>
		<comments>http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 22:09:51 +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[Microsoft]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=713</guid>
		<description><![CDATA[Hyper-V Linux guests (SUSE) do not yet have integration components or customization capabilities.  Nor can you P2V a Linux system to Hyper-V.]]></description>
			<content:encoded><![CDATA[<p>The media response to the <a href="http://blogs.technet.com/virtualization/archive/2009/02/15/Microsoft-and-Red-Hat-Joint-Technical-Support.aspx" target="_blank">Microsoft-Red Hat virtualization announcement</a> has been overwhelming, if not baffling.  (By the way, if you are under the impression that this has anything to do with Xen, please review <a href="http://dcsblog.burtongroup.com/data_center_strategies/2009/02/red-hat-and-microsoft-partner-on-virtualization-support.html" target="_blank">this article from the Burton Group</a>.)  Most of the articles slant positively, and why wouldn&#8217;t they &#8212; what&#8217;s not to like about increased compatibility?  It&#8217;s not as if any of those journalists will ever actually need to <em>use</em> Red Hat on Hyper-V.</p>
<p>From my perspective, Red Hat got exclusive rights to the downside of this deal while Microsoft benefits from media blitz and the increasing perception that they are becoming a cross-platform player.  Single pane of glass, and all that.</p>
<p>In order to see what Red Hat stands to gain from the Hyper-V deal, we can simply take a look at SUSE &#8212; the current &#8220;supported&#8221; Linux distribution on Hyper-V.  Critical aspects of supporting a guest OS are: integration components, customization, and P2V compatibility.  Here is where SUSE Linux Enterprise stands today:<span id="more-713"></span></p>
<h2>Hyper-V Linux Integration Components</h2>
<p>To get the most out of a virtual machine, administrators typically install an agent inside each guest operating system.  By the way, Microsoft has at least four terms for these: virtual machine additions, virtual guest services, integration components, and integration services.  VMware calls them Tools.</p>
<p>Part of supporting SUSE Linux Enterprise is providing applicable integration components (ICs).  Hyper-V, which shipped on June 26, 2008, did not include Linux ICs.  Where can users get them?  According to the <a href="http://www.microsoft.com/windowsserver2008/en/us/hyperv-faq.aspx" target="_blank">Hyper-V FAQ</a>:</p>
<p style="padding-left: 30px;"><strong>Q.</strong> Will Microsoft continue to support Linux operating systems with Hyper-V?</p>
<p style="padding-left: 30px;"><strong>A. </strong>Yes, Microsoft will provide integration components and technical support for customers running select Linux distributions as guest operating systems within Hyper-V. Beta Linux integration components are now available for SUSE Linux Enterprise Server 10 SP2 and SP1 x86 and x64 Editions. These integration components enable Xen-enabled Linux to take advantage of the VSP/VSC architecture and provide improved performance. Beta Linux Integration components are available for immediate download through <a title="http://connect.microsoft.com" href="http://connect.microsoft.com/">http://connect.microsoft.com</a>.</p>
<p>Well, guess what happens if you go to that Microsoft Connect site and search for Linux ICs?  Click on the first search result and you will get a &#8220;404&#8243; page not found error &#8212; they have been recently removed.  Look a little further and you will find a bug report from an unhappy user that can&#8217;t find the SUSE Linux ICs &#8212; and several confirmations from other unhappy users.</p>
<p><strong>UPDATE: </strong>James O&#8217;Neill sent me a tweet to let me know that I was not using Connect properly (and neither were those poor folks referenced in the above paragraph, hopefully someone will reach out to them soon).  You need to go to the Directory and look for the integration components section.  If you just search for them (like I did), they will show up in the results but not be available.  So the ICs are NOT MISSING.</p>
<p>I can offer three possible explanations for the <span style="text-decoration: line-through;">missing </span>Linux ICs:</p>
<ol>
<li><span style="text-decoration: line-through;">They were pulled in order to resolve Open Source licensing issues.  This <a href="http://blogs.technet.com/virtualization/archive/2008/07/02/Linux-Integration-Components-for-Windows-Server-2008-Hyper_2D00_V-.aspx" target="_blank">happened once already in July</a>, so it is not unreasonable.<br />
</span></li>
<li>The production-quality version is finally ready for download from the main Microsoft Download Center, so the beta bits have been removed from Connect.</li>
<li>Linux support in Hyper-V is a very low priority.</li>
</ol>
<p>A quick search of the Microsoft Download Center reveals the following, currently ruling out possibility #2:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/02/ms_download_search_results.png"><img class="alignnone size-medium wp-image-715" title="Microsoft Download search results." src="http://www.vcritical.com/wp-content/uploads/2009/02/ms_download_search_results-300x151.png" alt="Microsoft Download search results." width="300" height="151" /></a></p>
<p>That leaves option<span style="text-decoration: line-through;">s 1 and</span> 3.  <span style="text-decoration: line-through;"><em>Select all that apply</em>.</span></p>
<p><strong>UPDATE</strong>:  The ICs were not pulled &#8212; they are<em> </em>available for download from the Connect beta site.  Supported by &#8220;newsgroup only&#8221; (code for &#8220;no support&#8221;) and lacking mouse, heartbeat, OS shutdown, and time sync functionality.</p>
<p>Do you really need the integration components?  That depends.  Do you want the maximum performance from your guest OS?  Do you want to use a mouse over a remote connection?</p>
<p><img class="alignnone size-full wp-image-717" title="Mouse not captured without Linux ICs." src="http://www.vcritical.com/wp-content/uploads/2009/02/mouse_not_captured.png" alt="Mouse not captured without Linux ICs." width="443" height="292" /></p>
<p>Frankly, I&#8217;m not even sure the mouse will work if you <em>did </em>find and install the Linux ICs &#8212; at least based on some <a href="http://techrepublic.com.com/5208-13583-0.html?forumID=102&amp;threadID=276898&amp;messageID=2627506" target="_blank">quick observations</a>.<strong> UPDATE:</strong> Confirmed.</p>
<h2>Linux Guest Customization</h2>
<p>The price of admission for virtual machine management is the ability to create templates in order to deploy customized instances of a master VM.  I wrote about this recently when I found that <a href="http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/" target="_self">SUSE Enterprise Linux is not customizable by SCVMM</a>.  I bet Red Hat hopes they get better treatment in this area.</p>
<h2>Linux Physical to Virtual (P2V)</h2>
<p>Finally, the old virtualization standby: consolidation.  Do you want to automatically convert your old physical Linux servers to virtual machines?  Don&#8217;t expect Hyper-V or SCVMM to come to your rescue here.  Nope, P2V in Microsoft parlance is strictly Windows-only.  If you need to convert Linux, look no further than <a href="http://www.vmware.com/support/converter/doc/releasenotes_conv40.html#guestos" target="_blank">VMware Converter 4</a>.</p>
<h2>Conclusion</h2>
<p>It is not clear if Red Hat will get better support than SUSE on Hyper-V.  But that is not something you need to worry about &#8212; you can run your Red Hat Enterprise Linux workloads on VMware ESX <strong>today</strong>, not after some vague future milestone.  You also get full support for guest customization, P2V, and if you happen to need it &#8212; a mouse!</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/hyper-v-linux-integration-components-no-longer-connected/' rel='bookmark' title='Hyper-V Linux integration components no longer Connected'>Hyper-V Linux integration components no longer Connected</a></li>
<li><a href='http://www.vcritical.com/2009/03/of-mice-and-xen/' rel='bookmark' title='Of Mice and Xen'>Of Mice and Xen</a></li>
<li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='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='Which guest operating systems can be customized by SCVMM?'>Which guest operating systems can be customized by SCVMM?</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/2009/02/hyper-v-linux-smokescreen/#respond">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/linux/" rel="tag">Linux</a>, <a href="http://www.vcritical.com/tag/microsoft/" rel="tag">Microsoft</a>, <a href="http://www.vcritical.com/tag/scvmm/" rel="tag">SCVMM</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a>, <a href="http://www.vcritical.com/tag/windows/" rel="tag">Windows</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/">Hyper-V Linux Smokescreen</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Which guest operating systems can be customized by SCVMM?</title>
		<link>http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/</link>
		<comments>http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 16:22:52 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=506</guid>
		<description><![CDATA[Although SLES 10 is supposedly supported by SCVMM 2008, administrators must look elsewhere for a Linux guest customization solution.]]></description>
			<content:encoded><![CDATA[<p>A crucial virtualization management feature is the ability to easily configure a new virtual machine&#8217;s identity as it is provisioned from a template.  This is commonly known as guest operating system customization.</p>
<p>I was poking around with the System Center Virtual Machine Manager 2008 (SCVMM) PowerShell functionality and came across an interesting cmdlet that can be used to reveal which guest operating systems are customizable:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">PS</span> C:\Windows\System32<span style="color: pink;">&gt;</span> Get<span style="color: pink;">-</span>OperatingSystem <span style="color: pink;">|</span>
<span style="color: pink;">&gt;&gt;</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span> <span style="color: #000080;">$_</span>.IsCustomizationAllowed <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;">sort</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">ft</span> Name</pre></div></div>

<p>Which yields the following list:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">Name
----
64-bit edition of Windows Server 2008 Datacenter
64-bit edition of Windows Server 2008 Enterprise
64-bit edition of Windows Server 2008 Standard
64-bit edition of Windows Vista
Windows 2000 Advanced Server
Windows 2000 Server
Windows Server 2003 Datacenter Edition (32-bit x86)
Windows Server 2003 Datacenter x64 Edition
Windows Server 2003 Enterprise Edition (32-bit x86)
Windows Server 2003 Enterprise x64 Edition
Windows Server 2003 Standard Edition (32-bit x86)
Windows Server 2003 Standard x64 Edition
Windows Server 2003 Web Edition
Windows Server 2008 Datacenter 32-Bit
Windows Server 2008 Enterprise 32-Bit
Windows Server 2008 Standard 32-Bit
Windows Small Business Server 2003
Windows Vista
Windows Web Server 2008
Windows XP 64-Bit Edition
Windows XP Professional</pre></div></div>

<p>Interesting.  No Linux?  I thought SCVMM and Hyper-V were embracing at least one Linux distribution.  Let&#8217;s try the converse of that command:<span id="more-506"></span></p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">PS</span> C:\Windows\System32<span style="color: pink;">&gt;</span> Get<span style="color: pink;">-</span>OperatingSystem <span style="color: pink;">|</span>
<span style="color: pink;">&gt;&gt;</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span> <span style="color: #000080;">$_</span>.IsCustomizationAllowed <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$false</span> <span style="color: #000000;">&#125;</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">sort</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">ft</span> Name</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">Name
----
None
Novell NetWare 5.1
Novell NetWare 6.x
Open Enterprise Server
Other (32 bit)
Other (64 bit)
Other Linux (32 bit)
Other Linux (64 bit)
Red Hat Enterprise Linux 2
Red Hat Enterprise Linux 3
Red Hat Enterprise Linux 3 (64 bit)
Red Hat Enterprise Linux 4
Red Hat Enterprise Linux 4 (64 bit)
Red Hat Enterprise Linux 5
Red Hat Enterprise Linux 5 (64 bit)
Sun Solaris 10 (32 bit)
Sun Solaris 10 (64 bit)
Suse Linux Enterprise Server 10 (32 bit)
Suse Linux Enterprise Server 10 (64 bit)
Suse Linux Enterprise Server 9 (32 bit)
Suse Linux Enterprise Server 9 (64 bit)
Ubuntu Linux (32 bit)
Ubuntu Linux (64 bit)
Windows NT Server 4.0</pre></div></div>

<p>Whoa!  Why is SLES 10 is on that list?  That is a <a href="http://www.microsoft.com/windowsserver2008/en/us/hyperv-supported-guest-os.aspx" target="_blank">supported guest OS</a>.</p>
<p><strong>Sometimes supported doesn&#8217;t mean fully functional. </strong>For a virtualization platform that treats Linux workloads like first-class citizens, choose VMware ESX with vCenter Server:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-546" title="VMware vCenter Guest Customization Wizard" src="http://www.vcritical.com/wp-content/uploads/2009/01/linux-customize.png" alt="VMware vCenter Guest Customization Wizard" width="312" height="135" /></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/02/hyper-v-linux-smokescreen/' rel='bookmark' title='Hyper-V Linux Smokescreen'>Hyper-V Linux Smokescreen</a></li>
<li><a href='http://www.vcritical.com/2010/04/what-is-red-hat-enterprise-virtualization/' rel='bookmark' title='What is Red Hat Enterprise Virtualization?'>What is Red Hat Enterprise Virtualization?</a></li>
<li><a href='http://www.vcritical.com/2010/04/rhev-manager-its-not-just-a-clever-name/' rel='bookmark' title='RHEV Manager &#8212; It&#8217;s not just a clever name'>RHEV Manager &#8212; It&#8217;s not just a clever name</a></li>
<li><a href='http://www.vcritical.com/2010/04/dear-red-hat/' rel='bookmark' title='Dear Red Hat&#8230;'>Dear Red Hat&#8230;</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/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/#respond">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/customization/" rel="tag">customization</a>, <a href="http://www.vcritical.com/tag/hyper-v/" rel="tag">Hyper-V</a>, <a href="http://www.vcritical.com/tag/linux/" rel="tag">Linux</a>, <a href="http://www.vcritical.com/tag/powershell/" rel="tag">PowerShell</a>, <a href="http://www.vcritical.com/tag/scvmm/" rel="tag">SCVMM</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/">Which guest operating systems can be customized by SCVMM?</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/01/which-guest-operating-systems-can-be-customized-by-scvmm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finding thin-provisioned virtual disks with PowerShell</title>
		<link>http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/</link>
		<comments>http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 18:26:39 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VI Client]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=514</guid>
		<description><![CDATA[Even though the VI Client does not offer creation of VMs with thin-provisioned disks, they may exist.  Use a PowerShell script to identify them.]]></description>
			<content:encoded><![CDATA[<p>By default, all virtual hard disks in VI3 are <strong>thick disks</strong> &#8212; space is allocated on the VMFS datastore for the entire disk.  <strong>Thin disks</strong>, on the other hand, grow dynamically according to guest OS demand.  There is a slight performance penalty with thin disks, but the real risk when using them is inadvertently filling up datastores after overcommitting storage resources.</p>
<p>The VI Client interface will not let administrators create new virtual machines with thin-provisioned disks.  Even so, it is entirely possible that your environment contains such disks.  Let&#8217;s take a look at a couple of ways to create these disks and then use a VI Toolkit (for Windows) PowerShell script to see if any exist.<span id="more-514"></span></p>
<h2>Manual VMDK Creation</h2>
<p>One way that thin disks may be introduced into an environment is by manually creating a VMDK file and then attaching that file to a virtual machine.  This can be accomplished by the vmkfstools command with the -d thin option.  This procedure is not for beginners, so if you have used it you presumably evaluated the risks of overcommitting your storage.  But what if one of your colleagues did this without telling you?</p>
<h2>Compact Clones</h2>
<p><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  class="alignleft size-full wp-image-515" title="VI Client - Clone to template" src="http://www.vcritical.com/wp-content/uploads/2009/01/clone-to-template-menu.png" alt="VI Client - Clone to template" width="181" height="207" />Another source of thin disks requires a little background first:</p>
<p>There is a prominent option in the VI Client interface to convert a virtual machine to template (and vice versa).  But if you right-click a VM in the inventory, you are presented with a variation of that feature:  <strong>Clone to Template</strong>.</p>
<p>The wizard that launches in response to that option allows an administrator to optionally choose the <strong>Compact</strong> disk format &#8212; this is a thin-provisioned disk.  If your template has a 50GB virtual disk but only 8GB are actually used, this feature can provide significant storage savings.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-516" style="border: 1px solid black;;  display: block; margin-right: auto; margin-left: auto;" title="Clone to Template Wizard - Compact disk" src="http://www.vcritical.com/wp-content/uploads/2009/01/wizard-compact.png" alt="Clone to Template Wizard - Compact disk" width="499" height="347" /></p>
<p>So far so good.  Now, what do you suppose happens if you decide to convert that template to a VM?  Nothing happens &#8212; it just works.  You are free to use that VM just like any other in your inventory.  But this VM keeps its thin-provisioned disk, a fact that is not discernible through the user interface.</p>
<h2>Find the Thin-Provisioned Disks</h2>
<p>I wrote a small VI Toolkit (for Windows) PowerShell script that identifies latent thin disks in both VMs and templates.  I hope you find it useful:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># FindThinDisks.ps1</span>
<span style="color: #008000;">#</span>
<span style="color: #008000;"># Identifies VMs and templates that are using thin-provisioned</span>
<span style="color: #008000;"># virtual disks.</span>
&nbsp;
<span style="color: #008000;"># Version 1.0  January 14, 2009</span>
<span style="color: #008000;"># Eric Gray</span>
&nbsp;
<span style="color: #800080;">$vmtp</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>VM
<span style="color: #800080;">$vmtp</span> <span style="color: pink;">+=</span> Get<span style="color: pink;">-</span>Template
&nbsp;
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vm</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$vmtp</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>View<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
  <span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$dev</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$vm</span>.Config.Hardware.Device<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
    <span style="color: #0000FF;">if</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$dev</span>.GetType<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>.Name <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;VirtualDisk&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
      <span style="color: #0000FF;">if</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$dev</span>.Backing.ThinProvisioned <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$true</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #800080;">$vm</span>.Name <span style="color: pink;">+</span> <span style="color: #800000;">&quot;<span style="color: #008080; font-weight: bold;">`t</span>&quot;</span> <span style="color: pink;">+</span> <span style="color: #800080;">$dev</span>.Backing.FileName
      <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p style="text-align: left;">Thin-provisioning is a great tool to have in your toolbox, when used properly.</p>
<p style="text-align: right;"><em>Script inspired by <a href="http://communities.vmware.com/message/1136794" target="_blank">this thread</a>.</em></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/' rel='bookmark' title='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='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='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/powershell-prevents-datastore-emergencies/' rel='bookmark' title='PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</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/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/#respond">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/powercli/" rel="tag">PowerCLI</a>, <a href="http://www.vcritical.com/tag/powershell/" rel="tag">PowerShell</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/technical/" rel="tag">Technical</a>, <a href="http://www.vcritical.com/tag/templates/" rel="tag">templates</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/vi-client/" rel="tag">VI Client</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/">Finding thin-provisioned virtual disks with PowerShell</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

