<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VM /ETC &#187; scripts</title>
	<atom:link href="http://vmetc.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://vmetc.com</link>
	<description>Go Green with Virtualization. Go UGLY Green with vmetc.com.</description>
	<lastBuildDate>Tue, 27 Jul 2010 12:17:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>VIRTUMANIA Episode 20: Powershell is Latin to Me</title>
		<link>http://vmetc.com/2010/07/27/virtumania-episode-20-powershell-is-latin-to-me/</link>
		<comments>http://vmetc.com/2010/07/27/virtumania-episode-20-powershell-is-latin-to-me/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 12:15:54 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[events]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[sqlpass]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[virtumania]]></category>
		<category><![CDATA[vmetc.com]]></category>
		<category><![CDATA[@halr9000]]></category>
		<category><![CDATA[@vmguru]]></category>
		<category><![CDATA[hal rottenberg]]></category>
		<category><![CDATA[infosmack]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scott herold]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=6080</guid>
		<description><![CDATA[VIRTUMANIA Episode 20 was far from scripted, but some of the best known names in virtualization scripting join us for this show. The following is the podcast summary: VIRTUMANIA Podcast Episode 20 – Powershell is Latin to Me. Rich Brambley (@rbrambley) of VMETC and Marc Farley (@3parfarley) of StorageRap.com with special guests Scott Herold (@vmguru) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>VIRTUMANIA Episode 20 was far from scripted, but some of the best known names in virtualization scripting join us for this show. </strong>The following is the podcast summary:</p>
<p><strong>VIRTUMANIA Podcast Episode 20</strong> – <span style="text-decoration: underline"><strong>Powershell is Latin to Me</strong></span>. Rich Brambley (<a href="http://twitter.com/rbrambley" target="_blank">@rbrambley</a>) of <a href="http://www.vmetc.com/" target="_blank">VMETC</a> and Marc Farley (<a href="http://twitter.com/3parfarley" target="_blank">@3parfarley</a>) of <a href="http://www.storagerap.com/" target="_blank">StorageRap.com</a> with special guests Scott Herold (<a href="http://twitter.com/vmguru" target="_blank">@vmguru</a>) of <a href="http://www.vmguru.com/" target="_blank">vmguru.com</a> and Hal Rottenberg (<a href="http://twitter.com/halr9000" target="_blank">@halr9000</a>) of <a href="http://www.halr9000.com/" target="_blank">halr9000.com</a>. This week’s discussion focuses on using Powershell in virtual environments instead of a GUI, compares learning scripting to learning the verbs and nouns of a new language such as Latin, and highlights several Powershell sites and tools that every administrator should check out. Virtumania is an <a href="http://www.storagemonkeys.com/index.php?option=com_content&amp;view=category&amp;id=69&amp;Itemid=143" target="_blank">Infosmack</a> Production.</p>
<p>Before, between, and after the important stuff we also have some fun with using <strong>bots in first person shooter games, Mohitos, and the trial of former Illinois Governor Rod Blagojevich.</strong></p>
<p>Listen to the podcast with the embedded player or subscribe to get a weekly copy so you can listen when convenient.</p>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="210" height="25" id="mp3playerdarksmallv3" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.podbean.com/podcast-audio-video-blog-player/mp3playerdarksmallv3.swf?audioPath=http://virtumania.podbean.com/mf/play/g3ump9/Virtumania20-PowershellisLatintome.mp3&amp;autoStart=no" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><embed src="http://www.podbean.com/podcast-audio-video-blog-player/mp3playerdarksmallv3.swf?audioPath=http://virtumania.podbean.com/mf/play/g3ump9/Virtumania20-PowershellisLatintome.mp3&amp;autoStart=no" quality="high" width="210" height="25" name="mp3playerdarksmallv3" align="middle" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object>    <br /><a style="border-bottom-style: none; padding-left: 41px; font-family: arial, helvetica, sans-serif; color: #2da274; font-size: 11px; font-weight: normal; text-decoration: none" href="http://www.podbean.com">Powered by Podbean.com</a> </div>
<p><strong><a href="itpc://virtumania.podbean.com/feed" target="_blank"><img style="margin: 5px; display: inline" title="Subscribe to VIRTUMANIA with iTunes" alt="Subscribe to VIRTUMANIA with iTunes" src="http://www.podbean.com/wp-admin/images/subscribe_itunes_a.jpg" /></a><a href="http://fusion.google.com/add?feedurl=http://virtumania.podbean.com/feed" target="_blank"><img style="margin: 5px" alt="Add to my Google" src="http://www.podbean.com/wp-admin/images/add_google.png" /></a><a href="http://add.my.yahoo.com/rss?url=http://virtumania.podbean.com/feed" target="_blank"><img style="margin: 5px" alt="Add to my Yahoo" src="http://www.podbean.com/wp-admin/images/add_yahoo.jpg" /></a><a href="http://virtumania.podbean.com/feed/" target="_blank"><img style="margin: 5px" alt="rss2 podcast" src="http://www.podbean.com/wp-admin/images/rss_podcast.png" /></a></strong></p>
<p><strong>Check out the <a href="http://virtumania.net/" target="_blank">VM /ETC VIRTUMANIA Page</a> to listen to past episodes as well as episodes of Infosmack.</strong></p>
<p>The following links offer more information on some of the topics mentioned in VIRTUMANIA Episode 20:</p>
<p> <span id="more-6080"></span><center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center>
</p>
<h4><img style="border-bottom: medium none; border-left: medium none; display: inline; margin-left: 0px; border-top: medium none; margin-right: 0px; border-right: medium none" alt="Windows PowerShell" align="right" src="http://upload.wikimedia.org/wikipedia/en/7/7f/Windows_PowerShell_icon.png" width="256" height="256" /><strong><span style="text-decoration: underline">Microsoft’s Page on Powershell</span></strong></h4>
<h4><a href="http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx">http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx</a></h4>
<h4><strong><u></u></strong></h4>
<h4><strong><u>Virtualization and Powershell snapins</u></strong></h4>
<p>VMware &#8211; <a href="http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli" target="_blank">VMware vSphere PowerCLI</a></p>
<p>Hyper-V &#8211; <a href="http://blogs.msdn.com/b/virtual_pc_guy/archive/2009/02/10/enabling-powershell-on-hyper-v-server-2008-r2.aspx" target="_blank">Enabling PowerShell on Hyper-V Server 2008 R2</a></p>
<p>Citrix &#8211; <a href="http://community.citrix.com/display/ocb/2008/09/16/Announcing+XenServer+PowerShell+SnapIn">Announcing XenServer PowerShell SnapIn</a></p>
<p>RedHat &#8211; <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization/Red_Hat_Enterprise_Virtualization_for_Servers/2.1/pdf/API_Guide/API_Guide.pdf">API Guide &#8211; API, Scripting and Custom Actions</a></p>
<h4>&#160;</h4>
<h4><strong><span style="text-decoration: underline">Hal’s Book</span></strong></h4>
<h4><a href="http://www.scriptingoutpost.com/p-135-managing-vmware-infastructure-with-windows-powershell-tfm-print-book-ebook-bundle.aspx"><img style="margin: 5px" src="http://www.scriptingoutpost.com/images/PRODUCT/medium/129.jpg" /></a></h4>
<h4><strong><span style="text-decoration: underline"></span></strong></h4>
<h4><strong><span style="text-decoration: underline">Virtualization EcoShell</span></strong></h4>
<h4><a title="http://vcommunity.vizioncore.com/administration/vecoshell/default.aspx" href="http://thevesi.org/" target="_blank">thevesi.org</a></h4>
<h4><strong><span style="text-decoration: underline"></span></strong></h4>
<h4><strong><span style="text-decoration: underline">Other Powershell Sites and Tools Mentioned</span></strong></h4>
<ul>
<li><a href="http://virtu-al.net/" target="_blank">Alan Renouf</a>&#160; </li>
<li><a href="http://www.lucd.info/" target="_blank">LucD</a> </li>
<li><a href="http://poshcode.org/" target="_blank">poshcode.org</a> </li>
<li><a href="http://powergui.org/" target="_blank">powergui</a> </li>
<li><a href="http://powershellplus.com/" target="_blank">powershell plus</a> (combo editor and gui) </li>
<li><a href="http://powershell.com/cs/" target="_blank">powershell.com</a> (free ebook) </li>
<li><a href="http://technet.microsoft.com/en-us/scriptcenter/default.aspx" target="_blank">Microsoft TechNet scripting center</a> </li>
<li><a href="http://powerwf.com/" target="_blank">PowerWF</a> </li>
</ul>
<h4><strong><u></u></strong></h4>
<h4><strong><u>Jim Poshible</u></strong></h4>
<p><a href="http://www.twitter.com/jimposhible">http://www.twitter.com/jimposhible</a></p>
<p>&#160;</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<div style="margin-top: 10px; height: 15px" class="zemanta-pixie"><img style="border-bottom-style: none; border-right-style: none; border-top-style: none; float: right; border-left-style: none" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=bc728224-398b-44f5-97c0-0ca060d4d15a" /></div>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2010%2F07%2F27%2Fvirtumania-episode-20-powershell-is-latin-to-me%2F';
  addthis_title  = 'VIRTUMANIA+Episode+20%3A+Powershell+is+Latin+to+Me';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2010/07/27/virtumania-episode-20-powershell-is-latin-to-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Removal Of HP Server Utilities After P2V Migration</title>
		<link>http://vmetc.com/2010/01/21/easy-removal-of-hp-server-utilities-after-p2v-migration/</link>
		<comments>http://vmetc.com/2010/01/21/easy-removal-of-hp-server-utilities-after-p2v-migration/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 00:59:16 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[P2V]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[ctxadmintools]]></category>
		<category><![CDATA[hp smartstart]]></category>
		<category><![CDATA[proliant]]></category>
		<category><![CDATA[simon seagrave]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://vmetc.com/2010/01/21/easy-removal-of-hp-server-utilities-after-p2v-migration/</guid>
		<description><![CDATA[I’ve had my share of difficulties with the HP Server Utilities after a P2V migration. Granted, when you are building a new server the SmartStart CD makes life easy for completing the “Setup and installation for HP ProLiant ML and DL 300, 500 and 700 series and HP ProLiant BL Servers and supported server options”, [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve had my share of difficulties with the HP Server Utilities after a P2V migration. Granted, when you are building a new server the <a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&amp;cc=us&amp;prodTypeId=15351&amp;prodSeriesId=428936&amp;prodNameId=3288114&amp;swEnvOID=1005&amp;swLang=8&amp;mode=2&amp;taskId=135&amp;swItem=MTX-a29c8979569e442599c9570bda" target="_blank">SmartStart CD</a> makes life easy for completing the “Setup and installation for HP ProLiant ML and DL 300, 500 and 700 series and HP ProLiant BL Servers and supported server options”, but when that server restarts as a VM with the HP software still installed and running it is sluggish and slow. Extremely sluggish and slow in my experience. </p>
<p>After having to boot several VMs in Windows Safe Mode in order to prevent the various HP utilities and drivers from attempting to load I finally got a clue and made sure I disabled all HP Services before running the P2V conversion. That made the start up as a new VM better, but I still had to spend some quality time with Add/Remove Programs in the Windows Control Panel to uninstall all of those HP programs!</p>
<p>You may be thinking “OK. You should just uninstall all the HP Programs and Drivers before the P2V.” I could, but there goes my safety net, fall back plan. I want the physical server to remain operational exactly as it was in case something unexpected prevents the P2V from succeeding. It’s rare, but if it does happen I want to be able to power back on the physical server. Maintenance windows are short and I’m not one to make my night longer than necessary.</p>
<p>Looks like one of my GestaltIT Tech Field Day brothers has made my next late night date with HP server migrations a little easier. Simon Seagrave’s post <a href="http://www.techhead.co.uk/vmware-p2v-easy-method-to-remove-hp-agents-and-utilities">VMware P2V – Easy Method to Remove HP Agents and Utilities</a> is about the <a href="http://ctxadmtools.musumeci.com.ar/HPPSPCleaner/HPPSPCleaner11.html" target="_blank">HP Proliant Support Pack Cleaner v1.1 utility</a> available from <a title="http://ctxadmtools.musumeci.com.ar/Index.html" href="http://ctxadmtools.musumeci.com.ar/Index.html" target="_blank">ctxadmtools.musumeci.com.ar</a> – a site self described as full of “FREE Tools for Citrix, Microsoft and VMware Administrators and Consultants.” </p>
<p>I haven’t tried this utility myself yet, there doesn’t appear to be any documentation for it, and Seagrave doesn’t mention how/when he uses the utility, so I’ll have to figure out later if my process of disabling all the HP services works with this Support Pack Cleaner. I imagine it’ll work fine. I’ll just run it after I boot the migrated VM for the first time.</p>
<p>Sorry Windows Control Panel and Add/Remove Programs, we’ve spent a lot of time together over the years but it’s time for me to move on. Thanks Simon!</p>
<p>Seagrave has also previously <a href="http://www.techhead.co.uk/vmware-esx-removal-hp-agents-and-utilties-after-migration" target="_blank">posted about a script to do the same job</a>. Check out both of his posts!</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2010%2F01%2F21%2Feasy-removal-of-hp-server-utilities-after-p2v-migration%2F';
  addthis_title  = 'Easy+Removal+Of+HP+Server+Utilities+After+P2V+Migration';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2010/01/21/easy-removal-of-hp-server-utilities-after-p2v-migration/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VMware Code Central: New Community to Share Scripts</title>
		<link>http://vmetc.com/2009/06/23/vmware-codecentral-new-community-to-share-scripts/</link>
		<comments>http://vmetc.com/2009/06/23/vmware-codecentral-new-community-to-share-scripts/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:00:17 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmtn]]></category>

		<guid isPermaLink="false">http://vmetc.com/2009/06/23/vmware-codecentral-new-community-to-share-scripts/</guid>
		<description><![CDATA[I was notified by Nava Davuluri of VMware Product Marketing that a new VMTN community site and blog has been created for the purpose of centrally organizing freely available VMware product scripting and code samples. In Davuluri&#8217;s words: &#8220;These sample codes are related to products such as the new vSphereCLI, vCLI, Perl toolkit, Java Webservices [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I was notified by Nava Davuluri of VMware Product Marketing that a new VMTN community site and blog has been created for the purpose of centrally organizing freely available VMware product scripting and code samples</strong>. In Davuluri&#8217;s words:</p>
<blockquote><p><span>&#8220;These sample codes are related to products such as the new vSphereCLI, vCLI, Perl toolkit, Java Webservices SDK, etc. </span></p></blockquote>
<blockquote><p><span>I&#8217;m trying to involve the entire developer community in using(sharing/contributing) this site more.</span>&#8220;</p></blockquote>
<p>On the <a href="http://blogs.vmware.com/codecentral/" target="_blank">VMware Code Central Blog</a> he explains <strong>Code Central &#8220;</strong><span><strong>is intended for VMware community developers and system administrators who use VMware infrastructure and would like to have IT control through automation.&#8221;</strong> Apparently, <strong>the Code Central Blog will update what&#8217;s new on the Code Central Community Page on a weekly basis</strong>.</span><br />
<center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center><br />
After quickly checking the <a href="http://communities.vmware.com/community/developer/codecentral" target="_blank">CodeCentral Community page</a> one can see the potential for this to become a great site for VMware administrators and developers. For example, Davuluri already has featured links to the following, well known community contributions :</p>
<ul>
<li><a href="http://communities.vmware.com/docs/DOC-9984" target="_blank"><strong>lamw</strong>:</a><a href="http://communities.vmware.com/docs/DOC-9984" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-9984" target="_blank">Backing up VMs in ESX(i) 3.5 and 4.x</a> in vSphere SDK  for Perl</li>
<li><a href="http://communities.vmware.com/docs/DOC-7472" target="_blank"><strong>lucd</strong>:</a><a href="http://communities.vmware.com/docs/DOC-7472" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-7472" target="_blank">Guest Provisioning System</a> in vSphere PowerCLI</li>
<li><a href="http://communities.vmware.com/docs/DOC-7070" target="_blank"><strong>alanrenouf</strong>:</a><a href="http://communities.vmware.com/docs/DOC-7070" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-7070" target="_blank">Report into MS Word</a> in vSphere PowerCLI</li>
<li><a href="http://communities.vmware.com/docs/DOC-6970" target="_blank"><strong>esloof</strong>:</a><a href="http://communities.vmware.com/docs/DOC-6970" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-6970" target="_blank">Dynamic Resource Pool Calculator</a> in vSphere PowerCLI</li>
<li><a href="http://communities.vmware.com/docs/DOC-7473" target="_blank"><strong>tzamora</strong>:</a><a href="http://communities.vmware.com/docs/DOC-7473" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-7473" target="_blank">VMware Infrastructure Power Documeter</a> in vSphere  PowerCLI</li>
<li><a href="http://communities.vmware.com/docs/DOC-9614" target="_blank"><strong>stumpr</strong>:</a><a href="http://communities.vmware.com/docs/DOC-9614" target="_blank"> </a><a href="http://communities.vmware.com/docs/DOC-9614" target="_blank">FindDatacenterByHostname</a> in vSphere SDK for Perl</li>
</ul>
<p>Update your bookmarks and RSS readers. I&#8217;m sure the Code Central Blog and VMTN Community will become a great resource.<br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2009%2F06%2F23%2Fvmware-codecentral-new-community-to-share-scripts%2F';
  addthis_title  = 'VMware+Code+Central%3A+New+Community+to+Share+Scripts';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2009/06/23/vmware-codecentral-new-community-to-share-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate ESX documentation with ESX Healthcheck script</title>
		<link>http://vmetc.com/2008/12/29/generate-esx-documentation-with-esx-healthcheck-script/</link>
		<comments>http://vmetc.com/2008/12/29/generate-esx-documentation-with-esx-healthcheck-script/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 23:51:39 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[amikkelsen.com]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[healthcheck]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[yellow-bricks.com]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=11</guid>
		<description><![CDATA[If you are looking for a free and quick method to document your ESX 3.0.X  and ESX 3.5 server configurations without installing a scripting environment then don&#8217;t forget about A. Mikkelsen&#8217;s ESX Healthcheck script. An oldie but still a goodie, this script is simply transferred to your ESX 3.5 Console and then just run manually [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2375" class="wp-caption alignright" style="width: 202px"><a href="http://vmetc.com/wp-content/uploads/2008/12/esx-healthcheck-screenshot.png" target="_blank"><img class="size-medium wp-image-2375" title="esx-healthcheck-screenshot" src="http://vmetc.com/wp-content/uploads/2008/12/esx-healthcheck-screenshot-243x300.png" alt="esx-healthcheck-screenshot" width="192" height="238" /></a><p class="wp-caption-text">health_check.sh script report .html</p></div>
<p>If you are looking for a <strong>free and quick method to document your ESX 3.0.X  and ESX 3.5 server configurations</strong> without installing a scripting environment then don&#8217;t forget about <a href="http://www.amikkelsen.com/" target="_blank">A. Mikkelsen&#8217;s</a> <strong>ESX Healthcheck script.</strong> An oldie but still a goodie, this script is simply transferred to your ESX 3.5 Console and then just run manually or via a scheduled job. <strong>The end result is a .html report</strong> that is saved on your ESX host, or if you <strong>utilize the optional send_smtp.pl script the report can be mailed to you automatically.</strong></p>
<p>I&#8217;m not providing any new information in this post. In fact I am way behind  as Duncan Epping has covered this script on his blog at Yellow-bricks.com. Duncan <a href="http://www.yellow-bricks.com/2008/01/28/vmware-esx-healthcheck/" target="_blank">first posted about the esx healthcheck script</a> in January 2008 and recently mentioned it again in his post about his <a href="http://www.yellow-bricks.com/2008/12/18/health-check-tools-i-use/" target="_blank">tools he uses when conducting customer Healthcheck services</a>. The comments thread on Duncan&#8217;s January post walk through a year&#8217;s worth of feature development and support.</p>
<p>Download your copy of the script at <a href="http://sourceforge.net/projects/esxhealthscript/" target="_blank"> SourceForge.net: ESX Healthcheck Script </a></p>
<p>Once downloaded, the .zip file contains several helpful text files along with the script. The rest of this post walks through the install and configure steps and then explains how to run the script when ready.<span id="more-11"></span><center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center></p>
<p><span style="text-decoration: underline;"><strong>The INSTALL file explains configuration steps.</strong></span></p>
<p><span style="color: #99cc00;"><strong><em>You can ignore steps 1. and 2. if you do not want the report to be auto mailed via smtp.</em></strong></span><span style="text-decoration: underline;"><strong><br />
</strong></span></p>
<blockquote><p>How to quick install:</p>
<p>* 1. Get smtp_send.pl from http://www.vmguru.com/files/10/scripts/entry102.aspx</p>
<p>Put the file in the same folder as health_check.sh.<br />
Please read in smtp_send.pl about prerequesites (MIME::Lite) installation.</p>
<p>* 2. Get MIME::Lite from http://search.cpan.org/~yves/MIME-Lite-3.01/lib/MIME/Lite.pm</p>
<p>I had to create the MIME folder and copy file to /usr/lib/perl5/5.8.0/MIME/Lite.pm on my test system.</p>
<p># mkdir /usr/lib/perl5/5.8.0/MIME<br />
# cp MIME-Lite-3.01/lib/MIME/Lite.pm /usr/lib/perl5/5.8.0/MIME/Lite.pm</p>
<p>* 3. Copy health_check.conf.example to health_check.conf</p>
<p># cp health_check.conf.example health_check.conf</p>
<p>* 4. Edit health_check.conf with maildata (<span style="color: #99cc00;">set mailoutput=0 if you do not want to use email</span>) and other adjustments</p>
<p>* 5. Make sure to open firewall port 25 out</p>
<p># esxcfg-firewall -o 25,tcp,out,smtp_out</p>
<p>* 6. Make sure that health_check.sh and smtp_send.pl scripts has the right execute permissions</p>
<p># chmod 744 health_check.sh<br />
# chmod 744 smtp_send.pl</p></blockquote>
<p><span style="text-decoration: underline;"><strong>The USAGE file explains how to run it.</strong></span></p>
<p>Of course, you first have to place the health_check.sh amd file in a directory on your ESX 3.0 or 3.5 host. I recommend free file managemnt tools like WinSCP, FastSCP, or VMX Explorer to transfer the file.</p>
<p>Once the the files are in place</p>
<blockquote><p>* 1. Become root.</p>
<p>* 2. Run from within the folder with the script</p>
<p><strong> #./health_check.sh</strong></p>
<p>* 3. Check email or <strong>/var/log/esx*</strong> for output</p></blockquote>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2008%2F12%2F29%2Fgenerate-esx-documentation-with-esx-healthcheck-script%2F';
  addthis_title  = 'Generate+ESX+documentation+with+ESX+Healthcheck+script';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2008/12/29/generate-esx-documentation-with-esx-healthcheck-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux scripts to clone and rename VMware Server VMs</title>
		<link>http://vmetc.com/2008/10/25/linux-scripts-to-clone-and-rename-vmware-server-vms/</link>
		<comments>http://vmetc.com/2008/10/25/linux-scripts-to-clone-and-rename-vmware-server-vms/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 12:40:42 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware server]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=1176</guid>
		<description><![CDATA[If you run the free VMware Server on a Linux host then VMTN Communities user phxrider has created a couple of scripts that can make your life a little easier. Phxrider&#8217;s clone and rename scripts automate the process of two administrative tasks that are frankly a burden to do manually. Both VMware Server 1.x or [...]]]></description>
			<content:encoded><![CDATA[<p>If you run the free VMware Server on a Linux host then VMTN Communities user <a href="http://communities.vmware.com/people/phxrider;jsessionid=4F2A4B456FCAD49D172FC236CEE7E8D9" target="_blank">phxrider</a> has created a couple of scripts that can make your life a little easier. Phxrider&#8217;s clone and rename scripts automate the process of two administrative tasks that are frankly a burden to do manually. Both VMware Server 1.x or 2.0 do not offer any template or cloning abilities from their respective GUI interfaces, so these scripts are an essential tool to have if you want to duplicate VMs or change the VM&#8217;s files to match a renamed directory.</p>
<p>Check out either <a href="http://communities.vmware.com/docs/DOC-8050" target="_blank">http://communities.vmware.com/docs/DOC-8050</a> or the VMTN Forum thread at <a href="http://communities.vmware.com/thread/168266" target="_blank">http://communities.vmware.com/thread/168266</a> to download the scripts. Here&#8217;s some brief info from these links:</p>
<blockquote><p>&#8220;The clone script does a straight clone of a VM. It copies the directory, renames the files and tweaks all the text inside the files by using sed to replace the old name with the new one, then sets all the permissions to what they would be if you created a new VM.</p>
<p>The rename script basically does all but copy it. This is handy for if you tried to rename a directory manually or attempted a manual copy and then found it still shows up under the old name in the web console. Remember this one assumes you have already renamed the directory to the new name and it MUST be the same as what you intend for the new name to be.</p>
<p>Both work the same way&#8230; scriptname &lt;old name&gt; &lt;new name&gt;&#8221;</p></blockquote>
<p>I am not aware of equivalent scripts for VMware Server hosted on Windows, but if they exist please leave a comment with a link for VM /ETC readers.</p>
<p>The rest of this post is <strong>my example of using the clone_vm.sh script to make a template for future VMware Server 2.0 VM cloning</strong>. <span id="more-1176"></span><center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center></p>
<h3>Using the clone_vm.sh script to create a templatefor future cloning</h3>
<p>In this example I have a Windows 2003 Server VM that I want to create a template from for future VM clones. I want to keep the current VM as is, but clone it to a new VM and then clean it up and sysprep it so it can become a template to be cloned for future VMware Server VMs. For this example here are some things you need to know:</p>
<ul>
<li>VMware Server 2.0 is running on Ubuntu Server 8.0.4</li>
<li>The VM directory on host server is /home/hcrestadmin</li>
<li>Source VM is named winS01</li>
<li>Source VM directory is /home/hcrestadmin/winS01</li>
<li>New VM will be named winT2003</li>
<li>New VM directory will be /home/winT2003</li>
<li>I used winSCP to transfer the script files to my Ubuntu Server</li>
<li>I used Putty to log on remotely to run the script</li>
</ul>
<p>After downloading and transferring the clone_vm.sh script to the /home/hcrestadmin directory it was time to run the script. Since I was logged as in my hcrestadmin account I had to use super user privileges by entering &#8220;#su –&#8221; and my password. Then I was ready to start the script.</p>
<p style="margin-left: 36pt"><span style="font-size: 8pt; font-family: Courier New;">root@vmwS01:/home/hcrestadmin# sh clone_vm.sh winS01 winT2003<br />
</span></p>
<p>The following screen shot shows the script in progress.</p>
<p><img src="http://vmetc.com/wp-content/uploads/2008/10/102508-1227-linuxscript1.png" alt="" /></p>
<p>Once the script finished I was able to use the VMware Server web interface to add the new VM as an existing Virtual Machine. From the main Summary Tab select &#8220;Add Virtual Machine to Inventory&#8221; from the Commands section and you can browse to the new folder and .vmx file created by the script</p>
<p><img src="http://vmetc.com/wp-content/uploads/2008/10/102508-1227-linuxscript2.png" alt="" /></p>
<p>Then I could power on the VM, clean it up by removing services and programs, and then use Sysprep to reseal the OS and power it off. Once finished,  I was ready to deploy clones from this VM folder by repeating the vm_clone.sh process on this sysprep-ed template.</p>
<p>For help building an Ubuntu 8.0.4 Server and installing VMware Server 2.0 use the following links as references:</p>
<ul>
<li><a href="https://help.ubuntu.com/community/VMware/Server" target="_blank">https://help.ubuntu.com/community/VMware/Server</a></li>
<li><a href="https://help.ubuntu.com/8.04/serverguide/C/installation.html" target="_blank">https://help.ubuntu.com/8.04/serverguide/C/installation.html</a></li>
<li><a href="http://www.howtoforge.com/perfect-server-ubuntu8.04-lts" target="_blank">http://www.howtoforge.com/perfect-server-ubuntu8.04-lts</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=779934" target="_blank">http://ubuntuforums.org/showthread.php?t=779934</a></li>
<li><a href="http://www.howtoforge.com/how-to-install-vmware-server-2-on-an-ubuntu-8.04-desktop" target="_blank">http://www.howtoforge.com/how-to-install-vmware-server-2-on-an-ubuntu-8.04-desktop</a></li>
</ul>
<p>I am keeping copies (as of this post&#8217;s publish date) of the scripts here on VM /ETC for posterity, but be sure to check phxrider&#8217;s links for any current versions.</p>
<p><code><a class="downloadlink dlimg" href="http://vmetc.com/wp-content/plugins/download-monitor/download.php?id=20" title=" downloaded 1097 times" ><img src="http://vmetc.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download phxrider_vmwareserver_scripts.zip " /></a></code></p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2008%2F10%2F25%2Flinux-scripts-to-clone-and-rename-vmware-server-vms%2F';
  addthis_title  = 'Linux+scripts+to+clone+and+rename+VMware+Server+VMs';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2008/10/25/linux-scripts-to-clone-and-rename-vmware-server-vms/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Quick Migration PowerShell script for VMware VI Foundation</title>
		<link>http://vmetc.com/2008/10/01/quick-migration-powershell-script-for-vmware-vi-foundation/</link>
		<comments>http://vmetc.com/2008/10/01/quick-migration-powershell-script-for-vmware-vi-foundation/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 20:53:10 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[vi3]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[mikedatl.com]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[quickmigration]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[vifoundation]]></category>
		<category><![CDATA[vmworld2008]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=1024</guid>
		<description><![CDATA[I missed Mike DiPetrillo&#8217;s Deploying VMware in a Microsoft Shop session at VMworld 2008, but Mike apparently provided a PowerShell example of automating the migration of an Ubuntu VM between ESX hosts without using VMotion. This script would be a great alternative to a cold migration for VI Foundation customers. Mike has now posted his [...]]]></description>
			<content:encoded><![CDATA[<p>I missed Mike DiPetrillo&#8217;s <em>Deploying VMware in a Microsoft Shop</em> session at VMworld 2008, but Mike apparently provided a PowerShell example of automating the migration of an Ubuntu VM between ESX hosts without using VMotion. This script would be a great alternative to a cold migration for <a href="http://store.vmware.com/servlet/ControllerServlet;jsessionid=0980816F2FE66F1325DD348AABCE512A?Action=DisplayPage&amp;Env=BASE&amp;Locale=en_US&amp;SiteID=vmware&amp;id=ProductDetailsPage&amp;productID=83617500" target="_blank">VI Foundation</a> customers. Mike has now posted his script and a video of a demo on his blog.</p>
<p><a href="http://mikedatl.typepad.com/mikedvirtualization/2008/10/quick-migration.html">From the VMware Field: Mike D&#8217;s Virtualization Blog: Quick Migration for VMware &#8211; The Power of PowerShell</a> shows off the script and flirts with comparing this ability to the Microsoft Hyper-V Quick Migration feature.</p>
<blockquote><p>&#8220;One of the things that was also brought up over and over again in the debate was the fact that Quick Migration was free and came with Hyper-V since it was based on Microsoft Clustering whereas VMware VMotion was only available in the most expensive Enterprise SKU of VMware Infrastructure. So there it was &#8211; I need to create Quick Migration for the lower priced and free VMware solutions. I went off, built my little script, and showed it off at VMworld. There was a GREAT response to it so I&#8217;m posting it here for others to use or improve upon however you see fit.</p>
<p>The script works just like Microsoft Quick Migration &#8211; the virtual disk is stored on shared storage, the VM is suspended to disk, and the VM is then resumed on the destination.&#8221;</p></blockquote>
<p>Mike provides the various requirements and the links later in his post.</p>
<blockquote><p>To set this up in your environment you&#8217;ll need a few things:</p>
<p><span id="more-1024"></span><center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center></p>
<ol>
<li><a href="http://www.vmware.com/download/vi/">2 VMware Infrastructure 3 hosts</a></li>
<li><a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target="_blank">Windows PowerShell (and all of the pre-requirements for that if needed)</a></li>
<li><a href="http://www.vmware.com/support/developer/windowstoolkit/">VMware Infrastructure Toolkit (for Windows)</a></li>
<li><a href="http://mikedatl.typepad.com/vmmigrator-1.0.ps1.zip">The VM Migrator script from me</a></li>
<li>A VM you want to migrate &#8211; it doesn&#8217;t matter what the guest OS is</li>
</ol>
</blockquote>
<p>Read the entire post and watch the video at the link above. Mike comments at the end of his post that the shared storage requirement is actually not necessary, but without it makes the script take much longer when copying between local storage on ESX hosts. Obviously, if you are considering this script as an alternative for providing Quick Migration -like availability then shared storage is preferred.</p>
<p>I also noticed that Mike does not list VirtualCenter as a requirement, but the demo video shows one of the script&#8217;s first prompts is asking for the VC server name. The VI Foundation bundle provides a license for VC so it still makes this script appropriate for environments without VMotion, but Mike states that he created the script for the free versions of VMware products as well. I&#8217;m sure modifcation of Mike&#8217;s original PowerShell script used for the demo will make this work in any VMware Infrastructure.<center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2008%2F10%2F01%2Fquick-migration-powershell-script-for-vmware-vi-foundation%2F';
  addthis_title  = 'Quick+Migration+PowerShell+script+for+VMware+VI+Foundation';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2008/10/01/quick-migration-powershell-script-for-vmware-vi-foundation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automating VMware Tools Installs and Upgrades in Linux Guests</title>
		<link>http://vmetc.com/2008/08/31/automating-vmware-tools-installs-and-upgrades-in-linux-guests/</link>
		<comments>http://vmetc.com/2008/08/31/automating-vmware-tools-installs-and-upgrades-in-linux-guests/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 15:55:29 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vmtools]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[virtualcenter]]></category>
		<category><![CDATA[vmware tools]]></category>
		<category><![CDATA[vmworld]]></category>
		<category><![CDATA[vmworld2008]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=650</guid>
		<description><![CDATA[Last week I had a customer ask me for help with a repetitive administrative task that is extra aggravating for shops with a lot of Linux virtual machines (VMs). The customer was frustrated with the manual process of upgrading VMware Tools after kernel upgrades in their VMs. It&#8217;s a problem unique to Linux since the [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I had a customer ask me for help with a repetitive administrative task that is  extra aggravating for shops with a lot of Linux virtual machines (VMs). The customer was frustrated with the manual process of upgrading VMware Tools after kernel upgrades in their VMs. It&#8217;s a problem unique to Linux since the Windows operating system kernel does not change very frequently, but the development cycle of several Linux distributions can mean multiple kernel versions each year. After each upgrade and subsequent VM reboot the VMware tools must be re-installed so the tools are compiled correctly with the new kernel. Not exactly fun to do when you have a lot of Linux VMs.</p>
<p>I suggested 2 alternatives for the customer. The first is a scripted solution configured inside each Linux VM and the second is a built in feature of VirtualCenter and ESX for versions 2.0.1 and 3.0.1 or greater. I have not tested either of these solutions. My reason for writing this post is partly to explain the options, but also to get some feedback from the community. Let me know if you use or have tried either of these solutions or anything similar. If there is a better way please comment on this post! If you try one of these for your Linux virtual guests let me know what works and what doesn&#8217;t.</p>
<p>The following methods require that VMware tools are already installed in the Linux guests. For instructions for installing the tools check out the current VMware .pdf guide titled <a href="http://vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_admin_guide.pdf" target="_blank">Basic System Administration Update 2 Release for ESX 3.5, ESXi version 3.5, VirtualCenter 2.5</a>. if you are wondering if you should even install VMware tools in Linux guests than check out my post <a href="http://http://vmetc.com/2008/08/30/why-do-i-need-to-install-vmware-tools/" target="_blank">&#8220;Why do I need to install VMware Tools?&#8221;</a>.<span id="more-650"></span><br />
<center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center></p>
<h3>Script to detect Linux kernel change and re-install VMware tools</h3>
<p>I stumbled across this script from the post <a href="http://www.tuxyturvy.com/blog/index.php?/archives/48-Automating-VMware-modules-reinstall-after-Linux-kernel-upgrades.html" target="_blank">Automating VMware modules reinstall after Linux kernel upgrades &#8211; From the Recliner&#8230;</a></p>
<blockquote><p>&#8220;Now, most admins note about the &#8220;&#8211;default&#8221; option which can be used when running the vmware-config-tools.pl (or vmware-config.pl) script to cause the script automatically answer all the questions with the default answer.  All we need is a way to run this automatically when a new kernel is booted.  It turns out, at least with Redhat systems (and I suspect other systems), that this is exceptionally easy.  For legacy reasons the Redhat init scripts check for the existence of a file called /etc/rc.modules and, if it exist, execute it.  The file is typically a simple shell script and thus all we need is a simple method for detecting if the currently booting kernel already has the VMware modules installed and, if not, run the vmware config script with the &#8220;&#8211;default&#8221; option.</p>
<p>Here&#8217;s the script that I&#8217;m currently using with Linux VM&#8217;s running in VMware ESX/Server:</p>
<p><span style="font-family: arial;"><span style="font-family: Courier New;">#!/bin/bash</span><br style="font-family: Courier New;" /><br style="font-family: Courier New;" /><span style="font-family: Courier New;">if [ ! -e /lib/modules/`uname -r`/misc/.vmware_installed ]; then</span><br style="font-family: Courier New;" /><span style="font-family: Courier New;"> /usr/bin/vmware-config-tools.pl &#8211;default</span><br style="font-family: Courier New;" /><span style="font-family: Courier New;"> touch /lib/modules/`uname -r`/misc/.vmware_installed</span><br style="font-family: Courier New;" /><span style="font-family: Courier New;">fi</span></span></p>
<p>Simply place these lines in /etc/rc.modules and make sure it is executable and your good to go.  Note that it&#8217;s possible you may already have a rc.modules file so in that case you should just add the lines to the existing file.  When you install a new kernel and reboot the &#8220;.vmware_installed&#8221; file will be missing from the /lib/modules directory for that kernel and it will run the vmware-config-tools.pl (or vmware-config.pl) with the &#8220;&#8211;default&#8221; option to reinstall the VMware kernel modules.  Even better, because this is called very early during startup, long before the VMware services are started, eveything will work the first time with no interaction whatsoever.</p>
<p>One thing to look out for, if you install an upgraded vmware-tools (or VMware Workstation/Server release) without upgrading the kernel and you want the new modules to be installed on the next reboot you need to remove the &#8220;.vmware_installed&#8221; file.  Simply run the following command and the new modules will be installed on the next boot:</p>
<div style="margin-left: 40px;"><span style="font-family: Courier New;">rm </span><span style="font-family: Courier New;">-f /lib/modules/`uname -r`/misc/.vmware_installed</p>
<p></span></div>
<p>One major drawback, if your system uses a separate partition/logical volume for /usr, which is common, then the rc.modules script will probably be called before that system is mounted.  Possible solutions include adding a command to mount /usr at least read-only before attempting to run the vmware-config script or, you could just move the commands to rc.local.  The disadvantage of rc.local is that, for Linux guest VM&#8217;s using the &#8220;flexnet&#8221; adapter they will have already loaded the pcnet32 module in place of the vmxnet driver.  You could easily script unloading this module and restarting the vmware-tools service, but I&#8217;ve seen a few applications that behave poorly if you stop networking after they&#8217;ve already been started.<span style="font-family: arial;"><span style="font-family: Courier New;">&#8220;</span><br />
</span></p></blockquote>
<p>The concept of this solution is solid. If would recommend that you create a gold image template with the script already configured and deploy new VMs from this template. I imagine that slight variances in the script benefit different distributions. Read the entire post and it&#8217;s comments at the link above for some additional advice and user feedback.</p>
<h3>Use the VI Client to update VMware Tools in multiple VMs simultaneously</h3>
<p>The built in feature of VirtualCenter and ESX to bulk upgrade VMware tools works great for Windows VMs. VMware&#8217;s documentation confirms the process works for supported Linux guests as well. For a table of all supported guest operating systems go <a href="http://pubs.vmware.com/guestnotes/GuestOS_install.3.3.html" target="_blank">here</a>.</p>
<p><strong>Here are the step by step instructions for using the VI Client:</strong></p>
<ol>
<li>Launch the VI Client and log in to the VirtualCenter  Server.</li>
<li>Click Inventory in the navigation bar and expand the inventory.</li>
<li>In the inventory list, select the host on which virtual machines you want to upgrade reside.</li>
<li>Click the Virtual Machines tab.</li>
<li>Select the virtual machines you want to upgrade with the new version of VMware Tools.</li>
<li>Right?click the virtual machines and choose Install/Upgrade Tools.</li>
</ol>
<p><strong>VirtualCenter provides two options to upgrade VMware tools:</strong></p>
<ul>
<li><strong>Interactive tools upgrade </strong>- Requires some user interaction and requires you to reboot the guest operating system manually.</li>
<li><strong>Auto tools upgrade</strong> &#8211; Upgrades tools without user interaction and reboots the guest operating system, if required. Auto tools upgrade is supported for tools version ESX 3.0.0 and above on Windows and Linux guest operating systems.</li>
<li>Note: the field for <strong>Advanced Options</strong> can use any of the command line options</li>
</ul>
<p><strong>Command line options:</strong></p>
<table border="1" cellspacing="1" cellpadding="0">
<tbody>
<tr>
<td align="left" valign="bottom"><strong>Option<br />
</strong></td>
<td id="tc954332" align="left" valign="bottom"><a title="954332" name="954332"></a><strong>Description</strong></td>
</tr>
<tr>
<td id="tc954334" align="left" valign="top"><a title="954334" name="954334"></a>-u user</td>
<td id="tc954336" align="left" valign="top"><a title="954336" name="954336"></a>Specifies a user with sufficient privileges on the target virtual machine, including VirtualMachine.Config.*, VirtualMachine.Interact.*, and VirtualMachine.Provisioning.*</td>
</tr>
<tr>
<td id="tc954338" align="left" valign="top"><a title="954338" name="954338"></a>-p password</td>
<td id="tc954340" align="left" valign="top"><a title="954340" name="954340"></a>Specifies a password on the command line.   If this is omitted, the tool immediately prompts for a password.</td>
</tr>
<tr>
<td id="tc954342" align="left" valign="top"><a title="954342" name="954342"></a>-n vmname</td>
<td id="tc954796" align="left" valign="top"><a title="954344" name="954344"></a>Specified the name of the virtual machine to upgrade. This name corresponds to the display name of a virtual machine. Specify multiple virtual machines using multiple -n parameters. The -n option is ignored if -h is specified.<a title="954796" name="954796"></a></td>
</tr>
<tr>
<td id="tc954346" align="left" valign="top"><a title="954346" name="954346"></a>-h host</td>
<td id="tc954806" align="left" valign="top"><a title="954348" name="954348"></a>Attempts to upgrade all the virtual machines on a particular host. Fails if the specified host is not version ESX Server 3.0 or greater.<a title="954806" name="954806"></a>See</td>
</tr>
<tr>
<td id="tc954350" align="left" valign="top"><a title="954350" name="954350"></a>-m maxpowerons</td>
<td id="tc954352" align="left" valign="top"><a title="954352" name="954352"></a>On a particular host, powers on only this   number of virtual machines at a time.</td>
</tr>
<tr>
<td id="tc954937" align="left" valign="top"><a title="954937" name="954937"></a>-o port</td>
<td id="tc954939" align="left" valign="top"><a title="954939" name="954939"></a>Specifies the VirtualCenter Server port, if   a port other than the default port 902 has been configured.</td>
</tr>
<tr>
<td id="tc954354" align="left" valign="top"><a title="954354" name="954354"></a>-t maxpowerontime</td>
<td id="tc956408" align="left" valign="top"><a title="956414" name="956414"></a>Allows a user to set the maximum amount of time for a virtual machine to be powered on in case the guest is unable to power off the machine itself.<a title="956408" name="956408"></a>After the tools upgrade is scheduled on a virtual machine, the virtual machine is powered on and allowed to run through the tools installation process. In most cases, the guest powers down the machine automatically when the process completes.</td>
</tr>
<tr>
<td id="tc954358" align="left" valign="top"><a title="954358" name="954358"></a>-s</td>
<td id="tc954360" align="left" valign="top"><a title="954360" name="954360"></a>Skips the tools and does only the virtual   hardware upgrade.</td>
</tr>
<tr>
<td id="tc954362" align="left" valign="top"><a title="954362" name="954362"></a>-q</td>
<td id="tc954364" align="left" valign="top"><a title="954364" name="954364"></a>Works quietly. Doesn’t produce status or   completion messages on stdout.</td>
</tr>
</tbody>
</table>
<p>For more information about bulk upgrading VMware Tools and using the VirtualCenter command line as an alternative see my previous post <a rel="bookmark" href="http://vmetc.com/2008/04/29/use-the-vi-client-to-bulk-upgrade-vm-tools/">Use the VI Client to bulk upgrade VM tools.</a></p>
<h3>VMworld 2008 Session for VMware in a Linux Shop</h3>
<p>If you are <a href="http://vmetc.com/2008/08/18/vmworld-2008-schedule-builder-is-live-%e2%80%93-my-schedule/" target="_blank">attending VMworld 2008</a> next month the session listed below may provide complimentary recommendations for managing Linux VMs. The presenter, Mike DiPetrillo, maintains his own blog titled <a accesskey="1" href="http://mikedatl.typepad.com/mikedvirtualization/" target="_blank">From the VMware Field: Mike D&#8217;s Virtualization Blog</a> and is a fellow resident of Atlanta, GA. Check out both Mike&#8217;s blog and <a href="http://mikedatl.typepad.com/mikedvirtualization/2008/08/vmworld-2008--.html" target="_blank">his session</a> if you can. I have a schedule conflict but will keep this session on my &#8220;preferred switch list&#8221;. If you are reading this and VMworld 2008 was in the past look up the presentation at VMworld.com. (It feels weird writing a message for someone in the future!)</p>
<table id="resultsTable" class="listTable" border="1" cellspacing="0" cellpadding="1">
<tbody>
<tr class="odd">
<td>PO2575</td>
<td></td>
<td><strong> Deploying VMware in a Linux Shop</strong></td>
<td>Breakout</td>
<td>
<div class="fontSpeakerName">Mike <span class="formatSearchHighlight">DiP</span>etrillo</div>
<div class="fontSpeakerDetail">Principal Systems Engineer,</div>
<div class="fontSpeakerDetail">VMware, Inc.</div>
</td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<table border="1" cellspacing="1" cellpadding="3">
<tbody>
<tr>
<td class="formPromptTd">Session Title:</td>
<td class="formReqTd"></td>
<td class="formElementTd"><strong>Deploying VMware in a Linux Shop</strong></td>
</tr>
<tr>
<td colspan="3">
<input name="profileValueBaseKey" type="hidden" value="com.wingate.db.session.Session@10699927" /></td>
</tr>
<tr>
<td class="formPromptTd">Length:</td>
<td class="formReqTd"></td>
<td class="formElementTd">1 Hour</td>
</tr>
<tr>
<td class="formPromptTd">Level:</td>
<td class="formReqTd"></td>
<td class="formElementTd">Intermediate</td>
</tr>
<tr>
<td class="formPromptTd">Abstract:</td>
<td class="formReqTd"></td>
<td class="formElementTd">Are you a Linux shop? Come learn how well<br />
VMware fits into your existing environment. Learn how to integrate<br />
VMware with your existing monitoring and management platforms. Learn<br />
how to tweak VMware to get the best performance possible. Find out what<br />
VMware is doing with paravirtualization. Learn what applications to run<br />
in a virtual machine. See live demos on what you can and can&#8217;t manage<br />
in a VMware environment from 3rd party Open Source tools.</td>
</tr>
<tr>
<td class="formPromptTd">Speaker:</td>
<td class="formReqTd"></td>
<td class="formElementTd">Mike DiPetrillo</p>
<p><small>Principal Systems Engineer</small></p>
<p><span class="note">VMware, Inc.</span></td>
</tr>
</tbody>
</table>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2008%2F08%2F31%2Fautomating-vmware-tools-installs-and-upgrades-in-linux-guests%2F';
  addthis_title  = 'Automating+VMware+Tools+Installs+and+Upgrades+in+Linux+Guests';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2008/08/31/automating-vmware-tools-installs-and-upgrades-in-linux-guests/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PowerShell Scripting Examples for VMware Virtual Infrastructure</title>
		<link>http://vmetc.com/2008/08/27/powershell-scripting-examples-for-vmware-virtual-infrastructure/</link>
		<comments>http://vmetc.com/2008/08/27/powershell-scripting-examples-for-vmware-virtual-infrastructure/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 22:11:29 +0000</pubDate>
		<dc:creator>Rich Brambley</dc:creator>
				<category><![CDATA[esx]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[vi toolkit]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmworld2008]]></category>

		<guid isPermaLink="false">http://vmetc.com/?p=648</guid>
		<description><![CDATA[Like a lot of virtual infrastructure administrators already seem to be doing, I decided I better start learning about PowerShell scripting for VMware ESX and VirtualCenter. There has been a lot written on this topic in the recent months, but I have been just been speed reading through with the idea that &#8220;I&#8217;ll get around [...]]]></description>
			<content:encoded><![CDATA[<p>Like a lot of virtual infrastructure administrators already seem to be doing, I decided I better start learning about PowerShell scripting for VMware ESX and VirtualCenter. There has been a lot written on this topic in the recent months, but I have been just been speed reading through with the idea that &#8220;I&#8217;ll get around to understanding and learning this later when I have more time&#8221;. Now I am holding myself to this promise, so this post is my first steps to making myself learn. I am also looking forward to attending the <strong>Scripting VMware Infrastructure: Automating, Integrating, and Extending VI VMWorld Hands On Lab</strong> (Lab 09) already on <a href="http://vmetc.com/2008/08/18/vmworld-2008-schedule-builder-is-live-%e2%80%93-my-schedule/" target="_blank">my schedule for the conference</a>.</p>
<p>Here&#8217;s what little I know about Powershell for VMware so far:</p>
<ul>
<li>PowerShell is actually a Microsoft application that is the base of the <a href="http://www.vmware.com/download/download.do?downloadGroup=VI-WT" target="_blank">VMware VI Toolkit</a></li>
<li>The best way for getting started with PowerShell is to download the <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx" target="_blank">Windows PowerShell 1.0 Documentation Pack</a></li>
<li>The VMware Communities is home to the <a href="http://blogs.vmware.com/vipowershell" target="_blank">VI PowerShell Blog</a>. They are actually running a scripting contest right now.</li>
</ul>
<p>Here are links to several useful PowerShell scripts created by the user community:<span id="more-648"></span><br />
<center><p><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "8919425963";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p></center></p>
<h3><a href="http://blog.baeke.info/blog/_archives/2007/4/6/2862782.html" target="_blank">baeke.info :: <em>PowerShell script to check ESX patch status</em></a></h3>
<p><em>&#8220;You can use the simple PowerShell script below to check ESX server patching status from your Windows client.&#8221;</em></p>
<h3><em><a href="http://virtualfuture.info/2008/07/powershell-remove-connected-iso/" target="_blank">VMware Powershell script &#8211; remove connected iso</a></em></h3>
<p><em>&#8220;&#8230; is a script which can remove the connected iso files from the CD drive. Some administrators do not disconnect a CD drive when the have finished use the ISO, the side effects of this behavior are: the VM regularly polls the CD drive which creates a slight overhead and a VMotion may fail. This script can run unattended e.g. every night so even when an ISO file remains mounted it is ejected every night.&#8221;</em></p>
<h3><em><a href="http://blogs.vmware.com/vipowershell/2008/05/adding-and-re-a.html" target="_blank">Adding and re-adding ESX servers to VirtualCenter</a></em></h3>
<p><em>&#8220;This script automatically detects any disconnected host and reconnects it (be sure you connect to VirtualCenter before running it though!) On the first line, the script also allows setting a password Sometimes you can&#8217;t reconnect a host without a password, usually because the password has been changed. If this applies to you, set the password here and you&#8217;ll be re-connecting hosts faster than ever.&#8221;</em></p>
<p><em>[omitted]</em></p>
<p><em>If an ESX host you want to manage doesn&#8217;t appear in VirtualCenter, you need to add it. This is a bit tricker than reconnecting since there&#8217;s no inventory in VirtualCenter to tell you the IP addresses of all the hosts you use, and you also need to know a host&#8217;s password in order to add it. This is another case where entering things in a spreadsheet can really speed things up. I made just such a <a href="http://blogs.vmware.com/vipowershell/files/AddHosts.xls">spreadsheet</a>, and here&#8217;s a video of me using it.&#8221;<br />
</em></p>
<h3><em><a href="http://virtualgeek.typepad.com/virtual_geek/2008/08/powershell-scri.html" target="_blank">PowerShell Script for VDI Mass Replicas</a></em></h3>
<p><em>&#8220;Folks, many folks have asked <strong><em><span style="text-decoration: underline;">HOW</span></em></strong> we do the &#8220;thousands of desktops, instantly, consuming the space of one&#8221; that I demoed and described about <a href="http://virtualgeek.typepad.com/virtual_geek/2008/07/array-snapshots.html" target="_blank">here</a>.</em></p>
<p><em> </em></p>
<p><em>Here are the step-by-step instructions and PowerShell scripts we use.&#8221; </em></p>
<p><em></em></p>
<h3><em><a href="http://hyper9.com/blog/networks_powershell" target="_blank">Automatically Configure VirtualCenter Virtual Networking Using PowerShell</a></em></h3>
<p><em>&#8220;I wrote a little PowerShell script that goes out to a VirtualCenter instance and grabs a list of all the Port Groups in use by every ESX host under VC management. It ignores the default &#8216;VM Network&#8217;, &#8216;Service Console&#8217;, and &#8216;VMKernel&#8217; PortGroups. Then it goes out to each ESX host under management and makes sure that it has all of the VLans and that they are using the correct VLanId. It does some simple error checking. If the VLan ID&#8217;s don&#8217;t match up, the script prompts you to ask you to pick the right one. So now when I need to add a network, I can just add it to any host under management and then run my script to reconcile everything. I think its neat. Saves me time and human error.&#8221;</em></p>
<h3><em><a href="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1284061,00.html" target="_blank">Scripting VMware ESX servers to fail over to other ESX servers</a></em></h3>
<p><em>&#8220;The solution used in this article gets by the downtime limitation by using VMware Converter 3.0.1 Enterprise to schedule a &#8220;conversion&#8221; of the target virtual machine to a new location on another ESX server while the target virtual machine is still running. </em></p>
<p><em>VMware Converter 3.0.1 Enterprise allows you to use a tool called p2vtool.exe. This is a command-line interface for VMware Converter 3.0.1. It should be noted that there is only experimental support for p2vtool.exe. However, I have tested the scripted conversion presented in this article several times with no failures.&#8221;</em></p>
<p><em></em><center><script type="text/javascript"><!--
google_ad_client = "pub-9435712307568301";
google_ad_slot = "2700754787";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fvmetc.com%2F2008%2F08%2F27%2Fpowershell-scripting-examples-for-vmware-virtual-infrastructure%2F';
  addthis_title  = 'PowerShell+Scripting+Examples+for+VMware+Virtual+Infrastructure';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://vmetc.com/2008/08/27/powershell-scripting-examples-for-vmware-virtual-infrastructure/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
