<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2dutchfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>ICT-Freak.nl</title>
	
	<link>http://ict-freak.nl</link>
	<description>VMware, Windows, Citrix, Linux, Scripting...</description>
	<lastBuildDate>Sun, 01 Nov 2009 15:57:35 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="ict-freak.nl" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image><link>http://creativecommons.org/licenses/by-nc-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image>
			<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Ict-freak" type="application/rss+xml" /><feedburner:emailServiceId>Ict-freak</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/Ict-freak" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FIct-freak" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>vCenter 4.0 and SQL 2008 as a Database server</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/j0KbEQUUlTo/</link>
		<comments>http://ict-freak.nl/2009/11/01/vcenter-4-0-and-sql-2008-as-a-database-server/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:57:35 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/11/01/vcenter-4-0-and-sql-2008-as-a-database-server/</guid>
		<description><![CDATA[ 
Last week I had to install a vCenter 4.0 server with a database on a SQL 2008 x64 server. Before you can connect to the SQL 2008 x64 you have to install the new SQL server 2008 Native client. You can find it here:

X86 Package
X64 Package

Download and install the package:
 
In my earlier post [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4423&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/11/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb.png?w=204&#038;h=38" width="204" height="38" /></a> </p>
<p>Last week I had to install a vCenter 4.0 server with a database on a SQL 2008 x64 server. Before you can connect to the SQL 2008 x64 you have to install the new SQL server 2008 Native client. You can find it here:</p>
<ul>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=123717&amp;clcid=0x409" target="_blank">X86 Package</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkId=123718&amp;clcid=0x409" target="_blank">X64 Package</a></li>
</ul>
<p>Download and install the package:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb1.png?w=516&#038;h=397" width="516" height="397" /></a> </p>
<p>In my earlier <a href="http://ict-freak.nl/2009/07/03/vcenter-4-on-windows-x64-and-32-bit-dsn/" target="_blank">post</a> about how to create an ODBC connection to use with vCenter 4 on a x64 version of Windows 2008. You already read about the “special” way of starting the ODBC data Source Administrator. Start it via: <strong>Start –Run -</strong> <strong>%systemdrive%\Windows\SysWoW64\Odbcad32.exe. </strong>The next step is to select the new Native Client version 10.0</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb2.png?w=482&#038;h=362" width="482" height="362" /></a>&#160; <br />The rest of the stuff is still the same <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
Posted in VMware Tagged: SQL, vCenter, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4423/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4423&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/11/01/vcenter-4-0-and-sql-2008-as-a-database-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/11/01/vcenter-4-0-and-sql-2008-as-a-database-server/</feedburner:origLink></item>
		<item>
		<title>vSphere: False alarms on high VM Memory usage in vCenter 4.0</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/W-ejpxJ-vD4/</link>
		<comments>http://ict-freak.nl/2009/10/21/vsphere-false-alarms-on-high-vm-memory-usage-in-vcenter-4-0/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 07:15:07 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Alarms]]></category>
		<category><![CDATA[AMD RVI]]></category>
		<category><![CDATA[Intel EPT]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/?p=4412</guid>
		<description><![CDATA[ 
Since the upgrade to vCenter 4.0 and ESX 4.0 we got a lot of false alarms on VM memory usage. If you take a look in the advanced performance tab, at VM level. You’ll see that the VM is using all the assigned memory. When you take a look on the host OS, you’ll [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4412&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/10/image16.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb16.png?w=204&#038;h=38" width="204" height="38" /></a> </p>
<p>Since the upgrade to vCenter 4.0 and ESX 4.0 we got a lot of false alarms on VM memory usage. If you take a look in the advanced performance tab, at VM level. You’ll see that the VM is using all the assigned memory. When you take a look on the host OS, you’ll see that there is less memory usage then vCenter reports to you. I asked on Twitter if anyone else had seen this behavior before. @DuncanYB responded with a <a href="http://www.yellow-bricks.com/2009/09/11/memory-alarms-triggered-with-amd-rvi-and-intel-ept/" target="_blank">post</a>, which he did earlier this year.&#160;&#160; </p>
<p>So with the information from @DuncanYB I started a search at <a title="http://kb.vmware.com/selfservice/microsites/microsite.do" href="http://kb.vmware.com/selfservice/microsites/microsite.do" target="_blank">http://kb.vmware.com/</a> and found the following KB article: <a href="http://kb.vmware.com/kb/1014019">http://kb.vmware.com/kb/1014019</a>. This article describes one of the symptoms that apply on our environment:</p>
<blockquote><h5>Summaries and Symptoms</h5>
<p>Issues fixed in this patch (and their relevant symptoms, if applicable) include:</p>
<ul>
<li><font color="#ff8000">Fixes an issue where a guest operating system&#8217;s memory usage might be overestimated on Intel systems that support EPT technology or AMD systems that support RVI technology. This issue might cause the memory alarms in vCenter to go off spuriously even if the guest is not actively accessing a lot of memory. </font></li>
<li>Fixes an issue where DVFilter API&#8217;s fail for particular message types during message reordering. </li>
<li>Fixes an issue where DVfilter socket reads might fail if zero bytes are returned due to a connection close. </li>
<li>Fixes an issue with a DVFilter API where ESX might fail if a guest operating system is moved from one vswitch port to another. This fix allows dropping frames which are accidentally or maliciously posted to a different portset. </li>
<li>Fixes an issue where incorrect SysAlert() messages might be displayed on certain systems if the number of cache colors is not calculated correctly. </li>
<li>Fixes an issue with monitor or vmkernel crashing when running certain guest operating systems with a 32-bit monitor running in binary translation mode. </li>
</ul>
<h5>Deployment Considerations </h5>
<p><strong>BEFORE INSTALLING THIS PATCH:</strong> If you have set <tt>Mem.AllocGuestLargePage</tt> to 0 to workaround the high memory usage issue detailed in the Summaries and Symptoms section, undo the workaround by setting <tt>Mem.AllocGuestLargePage</tt> to 1.</p>
</blockquote>
<p>I installed the patch on a Cluster whit this problem. After the installation of the patch mentioned in the KB article above, vCenter keeps sending false alarms. After a short search on the <a href="http://communities.vmware.com/message/1393426#1393426" target="_blank">vmtn communities</a> I found the following post of Paul1</p>
<blockquote><p>I go to the Top-Level in Vcenter, klick &quot;Alarms&quot; and than &quot;Definitions&quot;. Edit one of the definitions (don&#8217;t change anything) and then save it. After this the old alarms was gone in my environment</p>
</blockquote>
<p>After “changing” the VM Memory Alarm definition, vCenter stops sending out false alarms.</p>
Posted in VMware Tagged: Alarms, AMD RVI, Intel EPT, vCenter, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4412/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4412&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/21/vsphere-false-alarms-on-high-vm-memory-usage-in-vcenter-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/21/vsphere-false-alarms-on-high-vm-memory-usage-in-vcenter-4-0/</feedburner:origLink></item>
		<item>
		<title>PowerCLI: Virtual Machine Disk (VMDK) info v2: Analyze data with Excel</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/p23iwR9Y8AY/</link>
		<comments>http://ict-freak.nl/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 11:33:13 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Thin Provisioning]]></category>
		<category><![CDATA[VMDK]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/</guid>
		<description><![CDATA[ 
In my previous post about this subject I created a script to view the information on the PowerCLI console. With the v2 script you are able to export the data to a CSV file. 
$myCol = @()
$vms = get-view -ViewType VirtualMachine  &#124; Where-Object `
{-not $_.config.template}
foreach($vm in $vms){
    foreach($dev in $vm.config.hardware.Device){
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4409&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/10/image13.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb13.png?w=78&#038;h=66" width="78" height="66" /></a> </p>
<p>In my previous <a href="http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/" target="_blank">post</a> about this subject I created a script to view the information on the PowerCLI console. With the v2 script you are able to export the data to a CSV file. </p>
<pre><span style="color:#800080;">$myCol</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> @()
</span><span style="color:#800080;">$vms</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">get-view</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-ViewType</span><span style="color:#000000;"> </span><span style="color:#800000;">VirtualMachine</span><span style="color:#000000;">  | </span><span style="color:#5f9ea0;font-weight:bold;">Where-Object</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
{</span><span style="color:#ff0000;">-not</span><span style="color:#000000;"> </span><span style="color:#800080;">$_</span><span style="color:#000000;">.config.template}
</span><span style="color:#0000ff;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$vm</span><span style="color:#000000;"> </span><span style="color:#0000ff;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$vms</span><span style="color:#000000;">){
    </span><span style="color:#0000ff;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;"> </span><span style="color:#0000ff;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;">.config.hardware.Device){
    </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;&quot;</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Select-Object</span><span style="color:#000000;"> VMName, DeviceLabel, </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
    FileName, DiskMode, </span><span style="color:#800000;">ThinProvisioned</span><span style="color:#000000;">

       </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.VMName </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;">.Name

           </span><span style="color:#0000ff;">if</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;">.GetType().Name </span><span style="color:#ff0000;">-eq</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">VirtualDisk</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">){
                   </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.DeviceLabel </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.DeviceInfo.Label
                </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.FileName </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.FileName
                </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.DiskMode </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.DiskMode
                </span><span style="color:#0000ff;">if</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.ThinProvisioned){
                </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.ThinProvisioned </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">True</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}
                </span><span style="color:#0000ff;">else</span><span style="color:#000000;">{</span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">.ThinProvisioned </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">False</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}

                </span><span style="color:#800080;">$myCol</span><span style="color:#000000;"> </span><span style="color:#ff0000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$MYInfo</span><span style="color:#000000;">
               }
       }
}
</span><span style="color:#800080;">$myCol</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Export-CSV</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-NoTypeInformation</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">D:\scripts\vmdkinfo.csv</span><span style="color:#800000;">&quot;</span></pre>
<p>When the script is finished, you can import the CSV file into Excel.&#160; After the import, we can analyze the data with just a simple filter. With a few clicks,&#160; you’re able to view al the VM’s without Thin Provisioned disks.</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image14.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb14.png?w=600&#038;h=235" width="600" height="235" /></a> </p>
<p>Now we have a list with all the VM’s with Thin Provisioned disks:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image15.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb15.png?w=600&#038;h=103" width="600" height="103" /></a>&#160;</p>
<p>So with a small PowerCLI script and the help of Microsoft Excel, you’re able to generate a report with just the information you need. The best part is that it will only cost you couple of minutes of your time <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  . </p>
Posted in VMware Tagged: Excel, PowerCLI, Thin Provisioning, VMDK <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4409&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/</feedburner:origLink></item>
		<item>
		<title>PowerCLI: Virtual Machine Disk (VMDK) info</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/s9vLFaO6zsI/</link>
		<comments>http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 23:03:53 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Thin Provisioning]]></category>
		<category><![CDATA[VMDK]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/10/09/powercli-virtual-machine-disk-vmdk-info/</guid>
		<description><![CDATA[ 
I was creating a small reporting script about the Virtual Machine disk. The things I wanted to report where the File Name (the location of the VMX file), the disk mode (Independent –&#62; Persistent or nonPersistent) and if the disk is Thin Provisioned or not.&#160; But then I thought why reinventing the wheel if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4399&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/10/image10.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb10.png?w=78&#038;h=66" width="78" height="66" /></a> </p>
<p>I was creating a small reporting script about the Virtual Machine disk. The things I wanted to report where the File Name (the location of the VMX file), the disk mode (Independent –&gt; Persistent or nonPersistent) and if the disk is Thin Provisioned or not.&#160; But then I thought why reinventing the wheel if Mr PowerCLI LucD has already created such a script. So I started a search on the VMware communities and found a <a href="http://communities.vmware.com/message/1157784#1157784" target="_blank">post</a> of @LucD22 which contains the Thin Provisioned “Check”. So I added the items I wanted to see and came to the following script:</p>
<pre><span style="color:#5f9ea0;font-weight:bold;">get-view</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-ViewType</span><span style="color:#000000;"> </span><span style="color:#800000;">VirtualMachine</span><span style="color:#000000;">  | </span><span style="color:#5f9ea0;font-weight:bold;">Where-Object</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
{</span><span style="color:#ff0000;">-not</span><span style="color:#000000;"> </span><span style="color:#800080;">$_</span><span style="color:#000000;">.config.template} | </span><span style="color:#5f9ea0;font-weight:bold;">%</span><span style="color:#000000;"> {
</span><span style="color:#5f9ea0;font-weight:bold;">Write-Host</span><span style="color:#000000;"> </span><span style="color:#800080;">$_</span><span style="color:#000000;">.Name </span><span style="font-style:italic;color:#5f9ea0;">-ForegroundColor</span><span style="color:#000000;"> </span><span style="color:#800000;">Yellow</span><span style="color:#000000;">
    </span><span style="color:#0000ff;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;"> </span><span style="color:#0000ff;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$_</span><span style="color:#000000;">.config.hardware.Device){
        </span><span style="color:#0000ff;">if</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;">.GetType().Name </span><span style="color:#ff0000;">-eq</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">VirtualDisk</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">){
            </span><span style="color:#5f9ea0;font-weight:bold;">Write-Host</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">`t</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.DeviceInfo.Label </span><span style="color:#800000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.FileName
            </span><span style="color:#5f9ea0;font-weight:bold;">Write-Host</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">`t</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.DeviceInfo.Label </span><span style="color:#800000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.DiskMode

            </span><span style="color:#0000ff;">if</span><span style="color:#000000;">(</span><span style="color:#800080;">$dev</span><span style="color:#000000;">.Backing.ThinProvisioned){
            </span><span style="color:#5f9ea0;font-weight:bold;">Write-Host</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">`t</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.DeviceInfo.Label </span><span style="color:#800000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Is Thin Provisioned</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
            </span><span style="font-style:italic;color:#5f9ea0;">-ForegroundColor</span><span style="color:#000000;"> </span><span style="color:#800000;">Green</span><span style="color:#000000;">}
            </span><span style="color:#0000ff;">else</span><span style="color:#000000;">{
            </span><span style="color:#5f9ea0;font-weight:bold;">Write-Host</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">`t</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#800080;">$dev</span><span style="color:#000000;">.DeviceInfo.Label </span><span style="color:#800000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Is NOT ThinProvisioned</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
            </span><span style="font-style:italic;color:#5f9ea0;">-ForegroundColor</span><span style="color:#000000;"> </span><span style="color:#800000;">Red</span><span style="color:#000000;"> }
            }
    }
}</span></pre>
<p>This is the output of the script:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image12.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb12.png?w=600&#038;h=314" width="600" height="314" /></a></p>
Posted in VMware Tagged: PowerCLI, Thin Provisioning, VMDK <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4399&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/</feedburner:origLink></item>
		<item>
		<title>PowerCLI: Set-dvSwitch</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/3Nz7AcCKxoU/</link>
		<comments>http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:20:22 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[dvSwitch]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/10/06/powercli-set-dvswitch/</guid>
		<description><![CDATA[
Last weekend I was playing around with the new dvSwitch feature in vSphere. So I created a dvSwitch and wanted to migrate my VM’s to it. Unfortunately this was not possible with the current version of PowerCLI. Normally you should be able to change the Network switch via:
Get-VM &#124; Get-NetworkAdapter `
&#124; Set-NetworkAdapter -NetworkName "traditional vswitch" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4391&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/10/image6.png"><img style="display:inline;border-width:0;" title="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb6.png?w=78&#038;h=66" border="0" alt="image" width="78" height="66" /></a></p>
<p>Last weekend I was playing around with the new dvSwitch feature in vSphere. So I created a dvSwitch and wanted to migrate my VM’s to it. Unfortunately this was not possible with the current version of PowerCLI. Normally you should be able to change the Network switch via:</p>
<pre><span style="color:#5f9ea0;font-weight:bold;">Get-VM</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-NetworkAdapter</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
| </span><span style="color:#5f9ea0;font-weight:bold;">Set-NetworkAdapter</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-NetworkName</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">traditional vswitch</span><span style="color:#800000;">"</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-Confirm</span><span style="color:#000000;">:</span><span style="color:#800080;">$false</span></pre>
<p>There must be a way to do this with PowerCLI but I didn’t know that way. So I asked Luc Dekens and the other PowerCLI guru’s for a solution. A couple of hours later Luc send me a script which was able to do exactly what I wanted to do.</p>
<p>The function / script can be found over here: <a title="http://poshcode.org/1373" href="http://poshcode.org/1373">http://poshcode.org/1373</a></p>
<p>You can start the function like this: <strong>Set-dvSwitch VirtualMachine dvSwitchPortgroup</strong></p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image7.png"><img style="display:inline;border-width:0;" title="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb7.png?w=600&#038;h=49" border="0" alt="image" width="600" height="49" /></a></p>
<p>Just wait a couple of seconds till the Reconfigure virtual machine task is ready:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image8.png"><img style="display:inline;border-width:0;" title="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb8.png?w=455&#038;h=66" border="0" alt="image" width="455" height="66" /></a></p>
<p>You can also run this function against all your VM’s via the following command:</p>
<pre><span style="color:#800080;">$vms</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">Get-VM</span><span style="color:#000000;">
</span><span style="color:#0000ff;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$vmName</span><span style="color:#000000;"> </span><span style="color:#0000ff;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$vms</span><span style="color:#000000;">){
    Set-dvSwitch </span><span style="color:#800080;">$vmName</span><span style="color:#000000;"> dvPG_production
}</span></pre>
<p>Just wait a while and all your VM’s are migrated to the new dvSwitch:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image9.png"><img style="display:inline;border-width:0;" title="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb9.png?w=558&#038;h=119" border="0" alt="image" width="558" height="119" /></a></p>
<p>If you want to start testing with the dvSwitch, keep an eye on <a href="http://lucd.info!">http://lucd.info!</a> @LucD22 is going to post an article about what you can do with PowerCLI and the dvSwitch.</p>
Posted in VMware Tagged: dvSwitch, PowerCLI, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4391&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/</feedburner:origLink></item>
		<item>
		<title>PowerCLI: Check CPU/Memory Hot Add</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/2gZ56Jbihdc/</link>
		<comments>http://ict-freak.nl/2009/10/05/powercli-check-cpumemory-hot-add/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 05:46:41 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Hot Add]]></category>
		<category><![CDATA[One-Liner]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/?p=4378</guid>
		<description><![CDATA[
In my previous post I created a couple of functions to enable or disable the Hot Add features.&#160; To check these settings, you can run this one-liner:
Get-VM &#124; Get-View &#124; Select Name, `
@{N=&#34;CpuHotAddEnabled&#34;;E={$_.Config.CpuHotAddEnabled}}, `
@{N=&#34;CpuHotRemoveEnabled&#34;;E={$_.Config.CpuHotRemoveEnabled}}, `
@{N=&#34;MemoryHotAddEnabled&#34;;E={$_.Config.MemoryHotAddEnabled}}
The following output will be generated:

Posted in VMware Tagged: Hot Add, One-Liner, PowerCLI, vSphere      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4378&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/09/image.png"><img title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/09/image_thumb.png?w=89&amp;h=75&#038;h=75" width="89" height="75" /></a></p>
<p>In my previous <a href="http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/" target="_blank">post</a> I created a couple of functions to enable or disable the Hot Add features.&#160; To check these settings, you can run this one-liner:</p>
<pre><span style="color:#5f9ea0;font-weight:bold;">Get-VM</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-View</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Select</span><span style="color:#000000;"> Name, </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
@{N</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">CpuHotAddEnabled</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">;E</span><span style="color:#ff0000;">=</span><span style="color:#000000;">{</span><span style="color:#800080;">$_</span><span style="color:#000000;">.Config.CpuHotAddEnabled}}, </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
@{N</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">CpuHotRemoveEnabled</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">;E</span><span style="color:#ff0000;">=</span><span style="color:#000000;">{</span><span style="color:#800080;">$_</span><span style="color:#000000;">.Config.CpuHotRemoveEnabled}}, </span><span style="color:#5f9ea0;font-weight:bold;">`</span><span style="color:#000000;">
@{N</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">MemoryHotAddEnabled</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">;E</span><span style="color:#ff0000;">=</span><span style="color:#000000;">{</span><span style="color:#800080;">$_</span><span style="color:#000000;">.Config.MemoryHotAddEnabled}}</span></pre>
<p>The following output will be generated:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb4.png?w=538&#038;h=269" width="538" height="269" /></a></p>
Posted in VMware Tagged: Hot Add, One-Liner, PowerCLI, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4378&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/05/powercli-check-cpumemory-hot-add/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/image_thumb.png?w=89&amp;h=75" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/05/powercli-check-cpumemory-hot-add/</feedburner:origLink></item>
		<item>
		<title>PowerCLI: Enable/Disable the VM Hot Add features</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/p0K0S3JfqS4/</link>
		<comments>http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 05:27:47 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Hot Add]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/?p=4375</guid>
		<description><![CDATA[
Since the release of vSphere, you are able to Hot Add memory and vCPU. Quote from the VMware website:
Virtual Machine Hot Add Support— The new virtual hardware introduced in ESX/ESXi 4.0 supports hot plug for virtual devices and supports addition of virtual CPUs and memory to a virtual machine without powering off the virtual machine. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4375&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/09/image.png"><img title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/09/image_thumb.png?w=89&amp;h=75&#038;h=75" width="89" height="75" /></a></p>
<p>Since the release of vSphere, you are able to Hot Add memory and vCPU. Quote from the VMware website:</p>
<blockquote><p><b>Virtual Machine Hot Add Support</b>— The new virtual hardware introduced in ESX/ESXi 4.0 supports hot plug for virtual devices and supports addition of virtual CPUs and memory to a virtual machine without powering off the virtual machine. See the <a href="http://www.vmware.com/pdf/GuestOS_guide.pdf">Guest Operating System Installation Guide</a> for the list of operating systems for which this functionality is supported.</p>
</blockquote>
<p>&#160;</p>
<p>So I wanted to see, if I was able to enable/disable this settings via PowerCLI and came up with a couple of functions. </p>
<p>The first function enables the Memory Hot Add feature:</p>
<pre><span style="color:#0000ff;">Function</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;">Enable-MemHotAdd</span><span style="color:#000000;">(</span><span style="color:#800080;">$vm</span><span style="color:#000000;">){
    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">Get-vm</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-View</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.VirtualMachineConfigSpec</span><span style="color:#000000;">

    </span><span style="color:#800080;">$extra</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.optionvalue</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Key</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">mem.hotadd</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Value</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">true</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">.extraconfig </span><span style="color:#ff0000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$extra</span><span style="color:#000000;">

    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;">.ReconfigVM(</span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">)
}</span></pre>
<p>You can run the function via the following command:</p>
<pre><span style="color:#5f9ea0;">Enable-MemHotAdd</span><span style="color:#000000;"> vc01</span></pre>
<p>When you verify the settings in the vSphere Client, You’ll see that the Memory Hot Add feature is enabled. </p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb3.png?w=640&#038;h=383" width="640" height="383" /></a></p>
<p>There is only one problem, the setting doesn’t work. You have to shutdown and start the VM, before you are able to hot add memory to the VM. When the VM is started again, I was able to Hot Add extra memory <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb5.png?w=712&#038;h=628" width="712" height="628" /></a> </p>
<p>To add extra memory via PowerCLI, You have to run the following command:</p>
<pre><span style="color:#5f9ea0;font-weight:bold;">Get-VM</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-Name</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">vc01</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Set-VM</span><span style="color:#000000;"> </span><span style="font-style:italic;color:#5f9ea0;">-MemoryMB</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">3072</span><span style="color:#800000;">&quot;</span></pre>
<p>&#160;</p>
<p>You can use the next function to disable the setting:</p>
<pre><span style="color:#0000ff;">Function</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;">Disable-MemHotAdd</span><span style="color:#000000;">(</span><span style="color:#800080;">$vm</span><span style="color:#000000;">){
    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">Get-VM</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-View</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.VirtualMachineConfigSpec</span><span style="color:#000000;">

    </span><span style="color:#800080;">$extra</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.optionvalue</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Key</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">mem.hotadd</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Value</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">false</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">.extraconfig </span><span style="color:#ff0000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$extra</span><span style="color:#000000;">

    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;">.ReconfigVM(</span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">)
}</span></pre>
<p>&#160;</p>
<p>I have also created two functions which you can use to enable or disable the hot add feature for vCPU’s:</p>
<p>Enable:</p>
<pre><span style="color:#0000ff;">Function</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;">Enable-vCpuHotAdd</span><span style="color:#000000;">(</span><span style="color:#800080;">$vm</span><span style="color:#000000;">){
    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">Get-vm</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-View</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.VirtualMachineConfigSpec</span><span style="color:#000000;">

    </span><span style="color:#800080;">$extra</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.optionvalue</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Key</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">vcpu.hotadd</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Value</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">true</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">.extraconfig </span><span style="color:#ff0000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$extra</span><span style="color:#000000;">

    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;">.ReconfigVM(</span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">)
}</span></pre>
<p>Disable:</p>
<pre><span style="color:#0000ff;">Function</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;">Disable-vCpuHotAdd</span><span style="color:#000000;">(</span><span style="color:#800080;">$vm</span><span style="color:#000000;">){
    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">Get-vm</span><span style="color:#000000;"> </span><span style="color:#800080;">$vm</span><span style="color:#000000;"> | </span><span style="color:#5f9ea0;font-weight:bold;">Get-View</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.VirtualMachineConfigSpec</span><span style="color:#000000;">

    </span><span style="color:#800080;">$extra</span><span style="color:#000000;"> </span><span style="color:#ff0000;">=</span><span style="color:#000000;"> </span><span style="color:#5f9ea0;font-weight:bold;">New-Object</span><span style="color:#000000;"> </span><span style="color:#800000;">VMware.Vim.optionvalue</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Key</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">vcpu.hotadd</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$extra</span><span style="color:#000000;">.Value</span><span style="color:#ff0000;">=</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">false</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    </span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">.extraconfig </span><span style="color:#ff0000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$extra</span><span style="color:#000000;">

    </span><span style="color:#800080;">$vmview</span><span style="color:#000000;">.ReconfigVM(</span><span style="color:#800080;">$vmConfigSpec</span><span style="color:#000000;">)
}</span></pre>
Posted in VMware Tagged: Hot Add, PowerCLI, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4375&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/image_thumb.png?w=89&amp;h=75" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/</feedburner:origLink></item>
		<item>
		<title>How To: Install VMware Tools on CentOS 5.3</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/cexFuIsp-i0/</link>
		<comments>http://ict-freak.nl/2009/10/03/how-to-install-vmware-tools-on-centos-5-3/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 22:44:20 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[VMware Tools]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/10/03/how-to-install-vmware-tools-on-centos-5-3/</guid>
		<description><![CDATA[  
The first step after a fresh install of a CentOS 5.3 server is too install the packages gcc and kernel-devel. When these packages are installed, update them and reboot of the VM: 
yum install gcc kernel-devel –y      yum update –y       reboot  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4372&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/10/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb.png?w=204&#038;h=38" width="204" height="38" /></a> <a href="http://ictfreak.files.wordpress.com/2009/10/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb1.png?w=240&#038;h=50" width="240" height="50" /></a> </p>
<p>The first step after a fresh install of a CentOS 5.3 server is too install the packages <strong>gcc</strong> and <strong>kernel-devel</strong>. When these packages are installed, update them and reboot of the VM: </p>
<blockquote><p>yum install gcc kernel-devel –y      <br />yum update –y       <br />reboot       </p>
</blockquote>
<p>Now we have to create a new folder so we can mount the VMware Tools cd-rom.</p>
<blockquote><p>mkdir /media/cdrom –p</p>
</blockquote>
<p>Start the VMware Tools Installer via the GUI:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/10/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/10/image_thumb2.png?w=590&#038;h=187" width="590" height="187" /></a> </p>
<p>Mount the cd-rom:</p>
<blockquote><p>mount /dev/cdrom /media/cdrom</p>
</blockquote>
<p>create a folder and copy the tar.gz file from the cd-rom to the folder:</p>
<blockquote><p>mkdir /root/tarz –p      <br />cp /media/cdrom/VMwareTools-4.0.0-xxxxxx.tar.gz /root/tarz/</p>
</blockquote>
<p>Open the folder and extract the tar.gz file:</p>
<blockquote><p>cd /root/tarz      <br />tar zxvf VMwareTools-4.0.0-xxxxxx.tar.gz</p>
</blockquote>
<p>Open the vmware-tools-distrib folder and start the installer:</p>
<blockquote><p>cd vmware-tools-distrib      <br />./vmware-install.pl</p>
</blockquote>
<p>You can change the vnic to vmxnet via the following commands:</p>
<blockquote><p>/etc/init.d/network stop      <br />rmmod pcnet32       <br />rmmod vmxnet       <br />modprobe vmxnet       <br />/etc/init.d/network start</p>
</blockquote>
<p>The final step is to reboot the VM.</p>
Posted in VMware Tagged: CentOS, howto, VMware Tools <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4372/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4372&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/10/03/how-to-install-vmware-tools-on-centos-5-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/10/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/10/03/how-to-install-vmware-tools-on-centos-5-3/</feedburner:origLink></item>
		<item>
		<title>VMware: Performance Evaluation of VMXNET3 Virtual Network Device</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/5vCUplsrgGI/</link>
		<comments>http://ict-freak.nl/2009/09/15/vmware-performance-evaluation-of-vmxnet3-virtual-network-device/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 06:01:00 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMXNET3]]></category>
		<category><![CDATA[Whitepaper]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/09/15/vmware-performance-evaluation-of-vmxnet3-virtual-network-device/</guid>
		<description><![CDATA[ 
VMware published a new paper about the performance evaluation of VMXNET3 virtual network device.
This paper compares the networking performance of VMXNET3 to that of enhanced VMXNET2 (the previous generation of high performance virtual network device) on VMware vSphere 4 to help users understand the performance benefits of migrating to this next‐generation device.

You can find [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4363&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/09/image11.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/09/image_thumb11.png?w=183&#038;h=29" width="183" height="29" /></a> </p>
<p>VMware published a new paper about the performance evaluation of VMXNET3 virtual network device.</p>
<blockquote><p>This paper compares the networking performance of VMXNET3 to that of enhanced VMXNET2 (the previous generation of high performance virtual network device) on VMware vSphere 4 to help users understand the performance benefits of migrating to this next‐generation device.</p>
</blockquote>
<p>You can find the document here: <a title="http://www.vmware.com/resources/techresources/10065" href="http://www.vmware.com/resources/techresources/10065">http://www.vmware.com/resources/techresources/10065</a></p>
Posted in VMware Tagged: VMXNET3, Whitepaper <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4363/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4363&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/09/15/vmware-performance-evaluation-of-vmxnet3-virtual-network-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/09/15/vmware-performance-evaluation-of-vmxnet3-virtual-network-device/</feedburner:origLink></item>
		<item>
		<title>vSphere: You do not have permission to run this command</title>
		<link>http://feedproxy.google.com/~r/Ict-freak/~3/WOJxTLrCrb4/</link>
		<comments>http://ict-freak.nl/2009/09/10/vsphere-you-do-not-have-permission-to-run-this-command/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 20:00:45 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Hardware Status]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/09/10/vsphere-you-do-not-have-permission-to-run-this-command/</guid>
		<description><![CDATA[ 
Since the release of vSphere, there is a new feature called Hardware Status plug-in.
The new vCenter Sever 4 Hardware Status plug-in provides the ability to monitor the hardware health of your VMware ESX hosts,     including key components such as fans, system board, and power supply. The health information displayed by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4360&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/09/vmwarelogonew2009400300x48.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="vmware-logo-new-2009-400-300x48" border="0" alt="vmware-logo-new-2009-400-300x48" src="http://ictfreak.files.wordpress.com/2009/09/vmwarelogonew2009400300x48_thumb.png?w=183&#038;h=29" width="183" height="29" /></a> </p>
<p>Since the release of vSphere, there is a new feature called Hardware Status plug-in.</p>
<blockquote><p>The new vCenter Sever 4 Hardware Status plug-in provides the ability to monitor the hardware health of your VMware ESX hosts,     <br />including key components such as fans, system board, and power supply. The health information displayed by the vCenter Hardware      <br />Status plug-in are defined and provided by the server hardware vendor through the industry-standard Common Information Model      <br />(CIM) interface.</p>
</blockquote>
<p> You can find it on a new tab at the host level in vCenter server:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/09/image9.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/09/image_thumb9.png?w=644&#038;h=135" width="644" height="135" /></a> </p>
<p>But when I want to view the information in the Hardware Status tab I got the error: <strong>You do not have permission to run this command</strong></p>
<p>Luckily I was not the only one with this problem and there is already a topic about this error on the VMware Communities: <a title="http://communities.vmware.com/message/1360601#1360601" href="http://communities.vmware.com/message/1360601#1360601">http://communities.vmware.com/message/1360601#1360601</a></p>
<p>These are the steps I took to fix this issue:   </p>
<ol>
<li>Stop the <strong>VMware VirtualCenter Management Webservices</strong> service. </li>
<li>Delete the <strong>C:\Program Files (x86)\VMware\Infrastructure\tomcat\webapps\vws\data\VcCache-default-0.XhiveDatabase.DB</strong> file.</li>
<li>Start the <strong>VMware VirtualCenter Management Webservices</strong> service. </li>
<li>Reconnect to the vCenter Server     </li>
<p> After reconnecting to the vCenter server, I was able to view the Hardware Status again.<a href="http://ictfreak.files.wordpress.com/2009/09/image10.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/09/image_thumb10.png?w=644&#038;h=305" width="644" height="305" /></a> </ol>
<p>On Page 6 of <a title="http://www.vmware.com/files/pdf/what-is-new-in-vmware-vcenter-server-4.pdf" href="http://www.vmware.com/files/pdf/what-is-new-in-vmware-vcenter-server-4.pdf" target="_blank">what-is-new-in-vmware-vcenter-server-4.pdf</a> you can find more information about the Hardware Status tab.    </p>
Posted in VMware Tagged: Hardware Status, Plugin, vSphere <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4360&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/09/10/vsphere-you-do-not-have-permission-to-run-this-command/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&amp;d=&amp;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/vmwarelogonew2009400300x48_thumb.png" medium="image">
			<media:title type="html">vmware-logo-new-2009-400-300x48</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/09/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	<feedburner:origLink>http://ict-freak.nl/2009/09/10/vsphere-you-do-not-have-permission-to-run-this-command/</feedburner:origLink></item>
	</channel>
</rss>
