<?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; vCenter</title>
	<atom:link href="http://www.vcritical.com/tag/vcenter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Mon, 12 Jul 2010 22:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>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='Permanent Link: 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='Permanent Link: 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='Permanent Link: The Truth About Storage Hot Add and Remove'>The Truth About Storage Hot Add and Remove</a></li>
<li><a href='http://www.vcritical.com/2009/01/using-scvmm-to-attach-iso-images-to-vmware-esx-vms/' rel='bookmark' title='Permanent Link: Using SCVMM to attach ISO images to VMware ESX VMs'>Using SCVMM to attach ISO images to VMware ESX VMs</a></li>
</ol></p>]]></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>PowerShell Prevents Datastore Emergencies</title>
		<link>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/</link>
		<comments>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 10:30:03 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Storage VMotion]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

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

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

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

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

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


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Permanent Link: Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/02/vi-toolkit-for-windows-15-and-the-powershell-prompt/' rel='bookmark' title='Permanent Link: VI Toolkit (for Windows) 1.5 and the PowerShell prompt'>VI Toolkit (for Windows) 1.5 and the PowerShell prompt</a></li>
<li><a href='http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/' rel='bookmark' title='Permanent Link: VMware vSphere 4 has a Snapshot Alarm'>VMware vSphere 4 has a Snapshot Alarm</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>New: vSphere Resource Distribution Chart</title>
		<link>http://www.vcritical.com/2009/08/new-vsphere-resource-distribution-chart/</link>
		<comments>http://www.vcritical.com/2009/08/new-vsphere-resource-distribution-chart/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:48:52 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware DRS]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1384</guid>
		<description><![CDATA[vSphere makes it easy for administrators to see which virtual machines in a cluster are using CPU and memory.]]></description>
			<content:encoded><![CDATA[<p>While running some experiments on the ESXi 4 cluster that I created recently &#8212; with all <a href="http://www.vcritical.com/2009/08/create-esxi-4-usb-flash-drives-with-workstation/">hosts running from USB flash</a> &#8212; I noticed the new <a href="http://pubs.vmware.com/vsp40_i/wwhelp/wwhimpl/js/html/wwhelp.htm#href=resmgmt/c_vmware_drs_resource_distribution_section.html" target="_blank">VMware DRS Resource Distribution Chart</a>.  This graphical chart makes it easy to visualize which VMs are using CPU and memory resources on each host.</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/08/resource_distribution_chart.png"><img class="alignnone size-medium wp-image-1385" title="vCenter Server 4 - Resource Distribution Chart" src="http://www.vcritical.com/wp-content/uploads/2009/08/resource_distribution_chart-300x179.png" alt="vCenter Server 4 - Resource Distribution Chart" width="300" height="179" /></a></p>
<p>Yet another nice addition to VMware vSphere 4 &#8212; making your virtual infrastructure management and monitoring as simple as possible.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/07/awesome-performance-through-vmware-drs/' rel='bookmark' title='Permanent Link: Awesome performance through VMware DRS'>Awesome performance through VMware DRS</a></li>
<li><a href='http://www.vcritical.com/2008/12/dont-know-much-about-resource-pools/' rel='bookmark' title='Permanent Link: Don&#8217;t know much about resource pools'>Don&#8217;t know much about resource pools</a></li>
<li><a href='http://www.vcritical.com/2009/03/scvmm-damage-control/' rel='bookmark' title='Permanent Link: SCVMM Damage Control'>SCVMM Damage Control</a></li>
<li><a href='http://www.vcritical.com/2008/12/vm-resource-management-hyper-v-versus-scvmm/' rel='bookmark' title='Permanent Link: VM Resource Management: Hyper-V versus SCVMM'>VM Resource Management: Hyper-V versus SCVMM</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/08/new-vsphere-resource-distribution-chart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanna see a million ESX licenses?</title>
		<link>http://www.vcritical.com/2009/07/wanna-see-a-million-esx-licenses/</link>
		<comments>http://www.vcritical.com/2009/07/wanna-see-a-million-esx-licenses/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 16:59:13 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[licensing]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1303</guid>
		<description><![CDATA[If you have used VMware VI3 and vSphere 4, one thing you probably noticed right away is the difference in licensing.  To much applause, vSphere no longer uses a FLEXlm license server.
While you transition from VI3 to vSphere you will still need to keep the license server around, though.  Fortunately vCenter Server 4 is fully [...]]]></description>
			<content:encoded><![CDATA[<p>If you have used VMware VI3 <em>and </em>vSphere 4, one thing you probably noticed right away is the difference in licensing.  To much applause, vSphere no longer uses a FLEXlm license server.</p>
<p>While you transition from VI3 to vSphere you will still need to keep the license server around, though.  Fortunately vCenter Server 4 is fully equipped to handle the task of pointing your ESX 3 hosts to the appropriate licensing source.</p>
<h2>Behind the Scenes</h2>
<p>The new architecture is a welcome change, but internally it was always very convenient to point to a central license server to quickly set up new VC and ESX systems.  Take a look at this vCenter Server licensing report &#8212; pointing to one of the internal VMware servers with one million licenses of ESX Standard.</p>
<p><img class="alignnone size-full wp-image-1304" title="One million ESX licenses." src="http://www.vcritical.com/wp-content/uploads/2009/07/one_million_vi3_licenses.png" alt="One million ESX licenses." width="505" height="412" /></p>
<p><strong>Are you going to miss FLEXlm?</strong> I&#8217;m not.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2008/11/nice-writeup-on-windows-server-licensing/' rel='bookmark' title='Permanent Link: Nice writeup on Windows Server licensing'>Nice writeup on Windows Server licensing</a></li>
<li><a href='http://www.vcritical.com/2009/07/humble-but-dishonest/' rel='bookmark' title='Permanent Link: Humble&#8230; but dishonest'>Humble&#8230; but dishonest</a></li>
<li><a href='http://www.vcritical.com/2009/08/if-vmware-esxi-4-is-so-small-why-is-it-so-big/' rel='bookmark' title='Permanent Link: If VMware ESXi 4 is so small, why is it so big?'>If VMware ESXi 4 is so small, why is it so big?</a></li>
<li><a href='http://www.vcritical.com/2009/05/the-million-hypervisor-march/' rel='bookmark' title='Permanent Link: The Million Hypervisor March'>The Million Hypervisor March</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/wanna-see-a-million-esx-licenses/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/esx/" rel="tag">ESX</a>, <a href="http://www.vcritical.com/tag/licensing/" rel="tag">licensing</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/07/wanna-see-a-million-esx-licenses/">Wanna see a million ESX licenses?</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/wanna-see-a-million-esx-licenses/feed/</wfw:commentRss>
		<slash:comments>5</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[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 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='Permanent Link: 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='Permanent Link: Which guest operating systems can be customized by SCVMM?'>Which guest operating systems can be customized by SCVMM?</a></li>
<li><a href='http://www.vcritical.com/2009/07/even-gpl-cant-make-hyper-v-linux-vms-well/' rel='bookmark' title='Permanent Link: Even GPL can&#8217;t make Hyper-V Linux VMs well'>Even GPL can&#8217;t make Hyper-V Linux VMs well</a></li>
<li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Permanent Link: Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/07/dont-sysprep-me-bro/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>VMware vSphere 4 has a Snapshot Alarm</title>
		<link>http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/</link>
		<comments>http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:16:03 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1222</guid>
		<description><![CDATA[Snapshots have always been a powerful feature of VMware ESX &#8212; even in production deployments.  There are tons of innovative tools and scripts out there to monitor snapshots &#8212; just check out this new one from Virtu-Al.
If you happen to want a simple, built-in way to monitor your snapshots in VMware vSphere 4, look no [...]]]></description>
			<content:encoded><![CDATA[<p>Snapshots have always been a powerful feature of VMware ESX &#8212; <a href="http://www.vcritical.com/2009/04/hyper-v-snapshots-not-for-production/">even in production deployments</a>.  There are tons of innovative tools and scripts out there to monitor snapshots &#8212; just check out this <a href="http://www.virtu-al.net/2009/06/22/powercli-snapreminder/" target="_blank">new one from Virtu-Al</a>.</p>
<p>If you happen to want a simple, built-in way to monitor your snapshots in VMware vSphere 4, look no further than this new alarm:</p>
<p><img class="alignnone size-full wp-image-1223" title="VM Alarm for Snapshot Size" src="http://www.vcritical.com/wp-content/uploads/2009/06/vm_alarm_snapshot_size.png" alt="VM Alarm for Snapshot Size" width="406" height="219" /></p>
<p>Very nice addition.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Permanent Link: Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2008/12/half-the-vm-reboots-on-patch-tuesday/' rel='bookmark' title='Permanent Link: Half the VM reboots on Patch Tuesday'>Half the VM reboots on Patch Tuesday</a></li>
<li><a href='http://www.vcritical.com/2010/02/taking-snapshots-of-vmware-esx-4-running-in-a-vm/' rel='bookmark' title='Permanent Link: Taking snapshots of VMware ESX 4 running in a VM'>Taking snapshots of VMware ESX 4 running in a VM</a></li>
<li><a href='http://www.vcritical.com/2009/04/hyper-v-snapshots-not-for-production/' rel='bookmark' title='Permanent Link: Hyper-V snapshots: not for production'>Hyper-V snapshots: not for production</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/esx/" rel="tag">ESX</a>, <a href="http://www.vcritical.com/tag/snapshots/" rel="tag">snapshots</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/">VMware vSphere 4 has a Snapshot Alarm</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/06/vmware-vsphere-4-has-a-snapshot-alarm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware vCenter Server 4 task and event retention</title>
		<link>http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/</link>
		<comments>http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 04:09:03 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1046</guid>
		<description><![CDATA[As tasks and events happen in vCenter Server they are logged in the VC database.  After a while these tables can become quite large.
Prior to vCenter Server 4, customers wishing to prune their VC database down needed to do so manually.  VMware provides an SQL script via KB 1000125 that allows administrators to delete old [...]]]></description>
			<content:encoded><![CDATA[<p>As tasks and events happen in vCenter Server they are logged in the VC database.  After a while these tables can become quite large.</p>
<p>Prior to vCenter Server 4, customers wishing to prune their VC database down needed to do so manually.  VMware provides an SQL script via <a href="http://kb.vmware.com/kb/1000125">KB 1000125</a> that allows administrators to delete old tasks, events, and <a href="http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/">performance stats</a>.  <em>By the way, I am the author of that SQL Server purge script &#8212; fear my mad T-SQL skillz!</em></p>
<p>What a difference a vSphere makes&#8230;  Now in vCenter Server 4, there is a simple administrative option to configure the retention period for tasks and events.  By default, the data is retained indefinitely, but as you can see, it&#8217;s quite easy to set it up according to your needs:</p>
<p><img class="alignnone size-full wp-image-1047" title="vCenter Server database retention settings" src="http://www.vcritical.com/wp-content/uploads/2009/04/vcenterdatabaseretention.png" alt="vCenter Server database retention settings" width="484" height="374" /></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/' rel='bookmark' title='Permanent Link: VMware vCenter really needs an agent'>VMware vCenter really needs an agent</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/' rel='bookmark' title='Permanent Link: VMware vCenter Server performance stats levels'>VMware vCenter Server performance stats levels</a></li>
<li><a href='http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/' rel='bookmark' title='Permanent Link: PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-40-installation-video/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4.0 installation video'>VMware vCenter Server 4.0 installation video</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/database/" rel="tag">database</a>, <a href="http://www.vcritical.com/tag/sql-server/" rel="tag">SQL Server</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/">VMware vCenter Server 4 task and event retention</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/04/vmware-vcenter-server-4-task-and-event-retention/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware vCenter Server 4.0 installation video</title>
		<link>http://www.vcritical.com/2009/04/vmware-vcenter-server-40-installation-video/</link>
		<comments>http://www.vcritical.com/2009/04/vmware-vcenter-server-40-installation-video/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 03:25:58 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1020</guid>
		<description><![CDATA[VMware officially launched vSphere earlier this week, and it&#8217;s great!
I just took the gold vCenter Server 4.0 for a spin and rolled the camera while I was at it.  This video starts off with the installation of vCenter Server and the vSphere client, then I add an ESX 4 host and walk through the user [...]]]></description>
			<content:encoded><![CDATA[<p>VMware officially launched <a href="http://www.vmware.com/products/vsphere/overview.html">vSphere </a>earlier this week, and it&#8217;s great!</p>
<p>I just took the <em>gold</em> vCenter Server 4.0 for a spin and rolled the camera while I was at it.  This video starts off with the installation of vCenter Server and the vSphere client, then I add an ESX 4 host and walk through the user interface a bit.</p>
<p><embed src="http://www.youtube.com/v/oKLotQGgVGM&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/07/vmware-dpm-supported-by-all-major-server-vendors/' rel='bookmark' title='Permanent Link: VMware DPM supported by all major server vendors'>VMware DPM supported by all major server vendors</a></li>
<li><a href='http://www.vcritical.com/2009/12/vmware-vcenter-capacityiq-1-0-1-for-vsphere/' rel='bookmark' title='Permanent Link: VMware vCenter CapacityIQ 1.0.1 for vSphere'>VMware vCenter CapacityIQ 1.0.1 for vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
<li><a href='http://www.vcritical.com/2009/03/vcenter-for-linux-article-disappointing/' rel='bookmark' title='Permanent Link: vCenter for Linux article disappointing'>vCenter for Linux article disappointing</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/04/vmware-vcenter-server-40-installation-video/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/04/vmware-vcenter-server-40-installation-video/">VMware vCenter Server 4.0 installation video</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/04/vmware-vcenter-server-40-installation-video/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>VMware vCenter Server performance stats levels</title>
		<link>http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/</link>
		<comments>http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 17:43:54 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=976</guid>
		<description><![CDATA[VirtualCenter (vCenter) database storage requirements grow rapidly as administrators increase the levels from default settings.]]></description>
			<content:encoded><![CDATA[<p>In a recent post, I explained the <a href="http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/">essential role that your database job scheduler</a> (e.g., SQL Server Agent) plays in keeping the vCenter (VirtualCenter) database size under control.  The <strong>statistics level</strong> is another critical factor that affects your database storage and performance requirements.</p>
<p>The statistics levels are easily &#8212; perhaps <em>too </em>easily &#8212; configured by using the VI Client:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/vc_stats_config.png"><img class="alignnone size-medium wp-image-978" title="vCenter Server statistics configuration dialog" src="http://www.vcritical.com/wp-content/uploads/2009/04/vc_stats_config-300x238.png" alt="vCenter Server statistics configuration dialog" width="300" height="238" /></a></p>
<p>You can read in more depth about the performance statistics in the <a href="http://pubs.vmware.com/vi35u2/wwhelp/wwhimpl/js/html/wwhelp.htm">Basic System Administration</a> manual and the <a href="http://www.vmware.com/resources/techresources/771">VirtualCenter Monitoring and Performance Statistics</a> Tech Note, which has this to say about stats level selection:</p>
<blockquote><p>Level 1 has very low overhead on both the VirtualCenter server as well as the ESX Server hosts. Levels 2 – 4 have slightly greater overhead on ESX, but can adversely impact VirtualCenter performance if there are more than 10 ESX Server hosts. In particular Level 4 can quickly fill the VirtualCenter database, so it should only be turned on for limited periods of time.</p></blockquote>
<p>When it says <strong>Level 4 can quickly fill the VirtualCenter database</strong>, that&#8217;s not hyperbole.  Take a look at this chart to see what happens when the &#8220;5 minute&#8221; interval is changed from level 1 to level 4:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/level4_enabled.png"><img class="alignright size-medium wp-image-990" title="Statistics level 4 enabled" src="http://www.vcritical.com/wp-content/uploads/2009/04/level4_enabled-300x198.png" alt="Statistics level 4 enabled" width="300" height="198" /></a>The VPX_HIST_STAT1 table &#8212; the one that corresponds with the &#8220;5 minute&#8221; interval &#8212; immediately begins consuming many times its previous size.  After a day, the number of rows in that table increased about 20 times!  (The tick marks across the x-axis of this chart each represent an hour.)<span id="more-976"></span></p>
<p>Recovery is simple, but not immediate.  After resetting to level 1, the additional rows disappear through attrition as the rollup process does its job.</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/level4_recovered.png"><img class="size-medium wp-image-992 alignnone" title="Statistics level 1 re-enabled" src="http://www.vcritical.com/wp-content/uploads/2009/04/level4_recovered-300x199.png" alt="Statistics level 1 re-enabled" width="300" height="199" /></a></p>
<p>The statistics levels are configurable in order to collect more detailed performance data on your VMware infrastructure.  As with most things, there is a tradeoff &#8212; making it critical for administrators to know that a seemingly simple change via the UI can put a huge hit on your database &#8212; not only in storage requirements but performance, too.  Do yourself a favor and talk to your DBA before changing your vCenter Server performance stats levels.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/' rel='bookmark' title='Permanent Link: VMware vCenter really needs an agent'>VMware vCenter really needs an agent</a></li>
<li><a href='http://www.vcritical.com/2009/08/new-vsphere-resource-distribution-chart/' rel='bookmark' title='Permanent Link: New: vSphere Resource Distribution Chart'>New: vSphere Resource Distribution Chart</a></li>
<li><a href='http://www.vcritical.com/2008/10/upgrading-your-management-platform-from-the-entry-level-edition/' rel='bookmark' title='Permanent Link: Upgrading your management platform from the entry-level edition'>Upgrading your management platform from the entry-level edition</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware vCenter really needs an agent</title>
		<link>http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/</link>
		<comments>http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 02:24:26 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=954</guid>
		<description><![CDATA[As vCenter Server (VirtualCenter) collects performance data, it is stored in the VC database.  As the data ages, it is aggregated to save storage space.]]></description>
			<content:encoded><![CDATA[<p>One of the great features of VMware vCenter Server (a.k.a. VirtualCenter, or VC) is the performance charts for virtual machines and other objects in the inventory.  Here is a typical chart:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/performance_chart.png"><img class="alignnone size-medium wp-image-955" title="VMware vCenter Server performance chart" src="http://www.vcritical.com/wp-content/uploads/2009/04/performance_chart-300x161.png" alt="VMware vCenter Server performance chart" width="300" height="161" /></a></p>
<p>Managing the data behind these charts is actually a very demanding responsibility of vCenter: receiving, storing, and later aggregating to keep the database size under control.  Starting with VC 2.5, a couple of big changes were made in this area to help with scalability: the schema was modified to divide stats data into multiple tables, and the rollup duty (data aggregation) was delegated to the database server&#8217;s native job scheduling mechanism.  This article focuses on SQL Server and the SQL Server Agent; there is an equivalent capability in Oracle as you would suspect.</p>
<p><img class="size-full wp-image-958 alignright" title="SQL Server Agent vCenter jobs" src="http://www.vcritical.com/wp-content/uploads/2009/04/sql_agent_jobs.png" alt="SQL Server Agent vCenter jobs" width="255" height="204" /></p>
<p>The VC 2.5 installer creates a set of three jobs (for past day, month, and week) and throws up a notice reminding you to make sure the SQL Server Agent is running on your database server &#8212; for good reason, ignore it at your own peril.  You can see the jobs in the SQL Server Management Studio.</p>
<p>You&#8217;ll notice in this example there are actually three instances of each of the three jobs because there are multiple vCenter databases hosted on this SQL Server.  While not typical, it makes perfect sense in a test environment.<span id="more-954"></span></p>
<p style="padding-left: 30px;"><strong>Backstory</strong> In the initial VC 2.5 release, the jobs always had a static name, thus making it impossible to run multiple vCenter Servers against one SQL Server instance.  I knew that was going to annoy a lot of people, so I filed a bug to have it changed &#8212; finally got it in 2.5 Update 2.</p>
<p>What happens if the SQL Server Agent is stopped and these rollup jobs quit running?  A picture is worth a thousand words:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/sql_agent_jobs_disabled.png"><img class="size-medium wp-image-960 alignleft" title="SQL Agent jobs disabled" src="http://www.vcritical.com/wp-content/uploads/2009/04/sql_agent_jobs_disabled-300x199.png" alt="SQL Agent jobs disabled" width="300" height="199" /></a></p>
<p>In this chart, the abrupt increase in database rows corresponds to the point in time that the rollup jobs were disabled.  vCenter continues receiving performance stats from hosts and dutifully depositing them in VPX_HIST_STAT1.</p>
<p>Essentially, the most granular data (VPX_HIST_STAT1) starts piling up, never aggregating into the summarized tables for longer-term storage.  In a large environment, it is not uncommon to see millions of rows in these tables.  If something goes wrong with the rollup jobs, those millions start multiplying in a hurry.</p>
<p>One nice thing about having the rollups controlled by the SQL Agent is that VC does not even need to be running for the process to take place, which also takes some load off of the VC server.  After resuming the jobs, the data flood quickly subsides and things go back on track:</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/04/agent_jobs_resumed.png"><img class="alignnone size-medium wp-image-962" title="SQL Agent jobs resumed" src="http://www.vcritical.com/wp-content/uploads/2009/04/agent_jobs_resumed-300x200.png" alt="SQL Agent jobs resumed" width="300" height="200" /></a></p>
<p>One note about <strong>SQL Server Express</strong>, the bundled database included with VC: There is no SQL Agent in that product.  Before you panic, please realize that VMware engineers <em>know this</em>.  For those deployments, the rollup stored procedures are simply kicked off by vCenter Server (vpxd), just like VC 2.0.x.  I could not believe the creative workarounds some well-meaning folks have attempted to implement because of this situation &#8212; it had something to do with the Windows task scheduler.  Please do not do that!</p>
<p>Hopefully now you have a little better understanding of the relationship between your database job scheduler, vCenter Server, and the size of your vCenter database.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-performance-stats-levels/' rel='bookmark' title='Permanent Link: VMware vCenter Server performance stats levels'>VMware vCenter Server performance stats levels</a></li>
<li><a href='http://www.vcritical.com/2009/02/installing-vcenter-on-linux-technical-preview/' rel='bookmark' title='Permanent Link: Installing vCenter on Linux Technical Preview'>Installing vCenter on Linux Technical Preview</a></li>
<li><a href='http://www.vcritical.com/2009/03/vcenter-for-linux-article-disappointing/' rel='bookmark' title='Permanent Link: vCenter for Linux article disappointing'>vCenter for Linux article disappointing</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/04/vmware-vcenter-really-needs-an-agent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
