<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ICT-Freak.nl</title>
	<atom:link href="http://ict-freak.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://ict-freak.nl</link>
	<description>VMware, Windows, Citrix, Linux, Scripting...</description>
	<lastBuildDate>Thu, 12 Nov 2009 09:46:20 +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>
		<url>http://www.gravatar.com/blavatar/9f0af381794bfe42194f4bc92c8e84b9?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>ICT-Freak.nl</title>
		<link>http://ict-freak.nl</link>
	</image>
			<item>
		<title>Event: Dutch VMUG Event 2009</title>
		<link>http://ict-freak.nl/2009/11/12/event-dutch-vmug-event-2009/</link>
		<comments>http://ict-freak.nl/2009/11/12/event-dutch-vmug-event-2009/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:46:20 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMUG]]></category>
		<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/11/12/event-dutch-vmug-event-2009/</guid>
		<description><![CDATA[ 
11 December aanstaande is het weer tijd voor het jaarlijkse VMUG event.&#160; De voorlopige agenda staat al een tijdje online en wordt per week beter en beter.&#160; Wat het leuke aan dit event is dat er&#160; presentaties worden gegeven door mensen uit de communitie zelf. Eric Sloof, Viktor van den Berg, Joep Piscaer, Bouke [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4444&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/11/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/11/image_thumb11.png?w=150&#038;h=58" width="150" height="58" /></a> </p>
<p>11 December aanstaande is het weer tijd voor het jaarlijkse VMUG event.&#160; De voorlopige <a href="http://www.vmug.nl/cms/index.php?option=com_content&amp;view=article&amp;id=85&amp;Itemid=47" target="_blank">agenda</a> staat al een tijdje online en wordt per week beter en beter.&#160; Wat het leuke aan dit event is dat er&#160; presentaties worden gegeven door mensen uit de communitie zelf. <em>Eric Sloof</em>, <em>Viktor van den Berg, Joep Piscaer, Bouke Groenescheij, Gabrie van Zanten</em> en <em>Luc Dekens.</em> Deze sessie zullen technisch van aard zijn. </p>
<p>Nieuw dit jaar is de workshop.&#160; Deze workshop gaat over het product vCenter Heartbeat. Wil je kennis maken met dit product, dan is de je kans. Tijdens deze workshop krijg je kort wat theorie en daarna kun je zelf met het product aan de slag.</p>
<p>Mocht je nog niet zijn ingeschreven, doe dit dan snel want ik heb gehoord dat er al bijna 400 inschrijvingen binnen zijn en er is plaats voor 600 deelnemers. Dus wacht niet langer en schrijf je snel in: <a title="http://www.vmug.nl/modules.php?name=Inschrijven" href="http://www.vmug.nl/modules.php?name=Inschrijven">http://www.vmug.nl/modules.php?name=Inschrijven</a></p>
Posted in VMUG Tagged: Events <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4444/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4444&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/11/12/event-dutch-vmug-event-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware Tools: Default disk timeout settings</title>
		<link>http://ict-freak.nl/2009/11/12/vmware-tools-default-disk-timeout-settings/</link>
		<comments>http://ict-freak.nl/2009/11/12/vmware-tools-default-disk-timeout-settings/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:14:56 +0000</pubDate>
		<dc:creator>afokkema</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[disk timeout]]></category>
		<category><![CDATA[VMware Tools]]></category>

		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/11/12/vmware-tools-default-disk-timeout-settings/</guid>
		<description><![CDATA[&#160;
On a new Windows Server 2003 server without the VMware Tools installed, there are no TimeOut settings configured.
You can find this setting in the following registry key: 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Disk\

The picture below, you’ll see the default settings from Microsoft:
 
After the installation of the VMware Tools, a new dword value called TimeoutValue is added with the hexadecimal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4440&subd=ictfreak&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://ictfreak.files.wordpress.com/2009/11/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb6.png?w=204&#038;h=38" width="204" height="38" /></a>&#160;</p>
<p>On a new Windows Server 2003 server without the VMware Tools installed, there are no TimeOut settings configured.</p>
<p>You can find this setting in the following registry key: </p>
<blockquote><p>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Disk\</p>
</blockquote>
<p>The picture below, you’ll see the default settings from Microsoft:</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb7.png?w=619&#038;h=368" width="619" height="368" /></a> </p>
<p>After the installation of the VMware Tools, a new dword value called TimeoutValue is added with the hexadecimal value of 3c. This value represents a timeout of 60 seconds. </p>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb8.png?w=652&#038;h=262" width="652" height="262" /></a> </p>
<p>On a Linux VM the default timeout is 60 seconds (on a CentOS setup). You can find the timeout settings in:</p>
<blockquote><p>/sys/block/&lt;disk&gt;/device/timeout</p>
</blockquote>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb9.png?w=501&#038;h=55" width="501" height="55" /></a> </p>
<p>After the installation of the VMware Tools, the timeout value is changed to 180 seconds.</p>
<p><a href="http://ictfreak.files.wordpress.com/2009/11/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://ictfreak.files.wordpress.com/2009/11/image_thumb10.png?w=508&#038;h=53" width="508" height="53" /></a> </p>
<p>&#160;</p>
</p>
<p>More info about this subject can be found here:</p>
<ul>
<li><a title="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1014" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1014" target="_blank">KB1014</a> </li>
</ul>
Posted in VMware Tagged: disk timeout, VMware Tools <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ictfreak.wordpress.com/4440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ictfreak.wordpress.com/4440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ictfreak.wordpress.com/4440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ictfreak.wordpress.com/4440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ictfreak.wordpress.com/4440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ictfreak.wordpress.com/4440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ictfreak.wordpress.com/4440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ictfreak.wordpress.com/4440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ictfreak.wordpress.com/4440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ictfreak.wordpress.com/4440/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ict-freak.nl&blog=427991&post=4440&subd=ictfreak&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ict-freak.nl/2009/11/12/vmware-tools-default-disk-timeout-settings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">afokkema</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://ictfreak.files.wordpress.com/2009/11/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>vCenter 4.0 and SQL 2008 as a Database server</title>
		<link>http://ict-freak.nl/2009/11/01/vcenter-4-0-and-sql-2008-as-a-database-server/</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>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/68a6ca0e4e1bf2d16d6db8cae5db2c7c?s=96&#38;d=&#38;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>
	</item>
		<item>
		<title>vSphere: False alarms on high VM Memory usage in vCenter 4.0</title>
		<link>http://ict-freak.nl/2009/10/21/vsphere-false-alarms-on-high-vm-memory-usage-in-vcenter-4-0/</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&#38;d=&#38;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>
	</item>
		<item>
		<title>PowerCLI: Virtual Machine Disk (VMDK) info v2: Analyze data with Excel</title>
		<link>http://ict-freak.nl/2009/10/11/powercli-virtual-machine-disk-vmdk-info-v2-analyze-data-with-excel/</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&#38;d=&#38;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>
	</item>
		<item>
		<title>PowerCLI: Virtual Machine Disk (VMDK) info</title>
		<link>http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/</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&#38;d=&#38;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>
	</item>
		<item>
		<title>PowerCLI: Set-dvSwitch</title>
		<link>http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/</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&#38;d=&#38;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>
	</item>
		<item>
		<title>PowerCLI: Check CPU/Memory Hot Add</title>
		<link>http://ict-freak.nl/2009/10/05/powercli-check-cpumemory-hot-add/</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&#38;d=&#38;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&#38;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>
	</item>
		<item>
		<title>PowerCLI: Enable/Disable the VM Hot Add features</title>
		<link>http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/</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&#38;d=&#38;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&#38;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>
	</item>
		<item>
		<title>How To: Install VMware Tools on CentOS 5.3</title>
		<link>http://ict-freak.nl/2009/10/03/how-to-install-vmware-tools-on-centos-5-3/</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&#38;d=&#38;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>
	</item>
	</channel>
</rss>