<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Call for Script Ideas: VMware PowerShell Toolkit</title>
	<atom:link href="http://halr9000.com/article/464/feed" rel="self" type="application/rss+xml" />
	<link>http://halr9000.com/article/464</link>
	<description>(powershell &#38; other stuff)</description>
	<pubDate>Fri, 05 Sep 2008 19:40:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6901</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Fri, 29 Aug 2008 14:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6901</guid>
		<description>Most definitely.  

# list all templates in a single folder
get-folder "Templates" &#124; get-template

Datastores are not associated with clusters, they are attached to host servers, so we have to do this:
# list datastores avail to cluster member host server
(get-cluster "DRS cluster Foo" &#124; get-vmhost)[0] &#124; get-datastore

The (blah)[0] stuff grabs only the first host server in the cluster.  You could pipe get-vmhost to get-datastore, but you'd get duplicate results.</description>
		<content:encoded><![CDATA[<p>Most definitely.  </p>
<p># list all templates in a single folder<br />
get-folder &#8220;Templates&#8221; | get-template</p>
<p>Datastores are not associated with clusters, they are attached to host servers, so we have to do this:<br />
# list datastores avail to cluster member host server<br />
(get-cluster &#8220;DRS cluster Foo&#8221; | get-vmhost)[0] | get-datastore</p>
<p>The (blah)[0] stuff grabs only the first host server in the cluster.  You could pipe get-vmhost to get-datastore, but you&#8217;d get duplicate results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: new-to-powershell</title>
		<link>http://halr9000.com/article/464#comment-6900</link>
		<dc:creator>new-to-powershell</dc:creator>
		<pubDate>Fri, 29 Aug 2008 13:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6900</guid>
		<description>is it possible to create a script that will  display list of available templates (all in "template" folder) and list of all clusters and a list of all datastore that are available to the chosen cluster - so that a remote admin can simply deploy a vm from a template he selected?</description>
		<content:encoded><![CDATA[<p>is it possible to create a script that will  display list of available templates (all in &#8220;template&#8221; folder) and list of all clusters and a list of all datastore that are available to the chosen cluster - so that a remote admin can simply deploy a vm from a template he selected?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMWareLearner</title>
		<link>http://halr9000.com/article/464#comment-6899</link>
		<dc:creator>VMWareLearner</dc:creator>
		<pubDate>Thu, 28 Aug 2008 19:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6899</guid>
		<description>Yes, that is a bummer, when you have to deploy 30 VMs at a time with static IP addresses.

When I did try with a known good customization tempate and the following command line command line, 
get-template w2k3stdR2-template &#124; new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD

the process runs to about 95% then fails with this error:
8/28/2008 3:48:01 PM	New-VM	BB572FA5-355A-4225-BBEF-8A035305A24E	The operation for the entity vm-2663 failed with the following message: "Customization failed."	
At line 3, position 99
get-template w2k3stdR2-template &#124; new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD

Thoughts?</description>
		<content:encoded><![CDATA[<p>Yes, that is a bummer, when you have to deploy 30 VMs at a time with static IP addresses.</p>
<p>When I did try with a known good customization tempate and the following command line command line,<br />
get-template w2k3stdR2-template | new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD</p>
<p>the process runs to about 95% then fails with this error:<br />
8/28/2008 3:48:01 PM	New-VM	BB572FA5-355A-4225-BBEF-8A035305A24E	The operation for the entity vm-2663 failed with the following message: &#8220;Customization failed.&#8221;<br />
At line 3, position 99<br />
get-template w2k3stdR2-template | new-vm -vmhost mytestesx01.internal.dev.org -name ScriptVM01 -OSCustomizationSpec PCK_W2k3_32BIT_STD</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6898</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6898</guid>
		<description>Right now you actually can't change the IP during a clone using the VI Toolkit.  This is a big glaring hole unfortunately.

Template is a VM that is marked as a template.  It's identical underneath the covers.  But you can do more stuff with a template with regards to VM deployment.</description>
		<content:encoded><![CDATA[<p>Right now you actually can&#8217;t change the IP during a clone using the VI Toolkit.  This is a big glaring hole unfortunately.</p>
<p>Template is a VM that is marked as a template.  It&#8217;s identical underneath the covers.  But you can do more stuff with a template with regards to VM deployment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMWareLearner</title>
		<link>http://halr9000.com/article/464#comment-6897</link>
		<dc:creator>VMWareLearner</dc:creator>
		<pubDate>Thu, 28 Aug 2008 18:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6897</guid>
		<description>How about changing the IP address during the cloning process?
What is the difference between a Template and a virtual machine?</description>
		<content:encoded><![CDATA[<p>How about changing the IP address during the cloning process?<br />
What is the difference between a Template and a virtual machine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Dearden</title>
		<link>http://halr9000.com/article/464#comment-6866</link>
		<dc:creator>Chris Dearden</dc:creator>
		<pubDate>Fri, 15 Aug 2008 16:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6866</guid>
		<description>The London one - They mentioned the book - look forward to its release !</description>
		<content:encoded><![CDATA[<p>The London one - They mentioned the book - look forward to its release !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6865</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Fri, 15 Aug 2008 14:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6865</guid>
		<description>I like it.  That would not be very hard to do, I think.  Which user group meeting was this?</description>
		<content:encoded><![CDATA[<p>I like it.  That would not be very hard to do, I think.  Which user group meeting was this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Dearden</title>
		<link>http://halr9000.com/article/464#comment-6864</link>
		<dc:creator>Chris Dearden</dc:creator>
		<pubDate>Fri, 15 Aug 2008 11:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6864</guid>
		<description>A slight variation on the templating one.

I'd like to maintain a machine as a live template - sitting idle on my network , picking up security updates / build tweaks and AV data.

Untill "hot cloning to template" is available ( not gone to update 2 yet ) I'm looking for a script that I can run as a scheduled task to shut a specified guest down , and clone to a template ( overwriting the last template ), then boot it back up.

I'm a complete powershell virgin but have seen the light at a recent usergroup meeting :)</description>
		<content:encoded><![CDATA[<p>A slight variation on the templating one.</p>
<p>I&#8217;d like to maintain a machine as a live template - sitting idle on my network , picking up security updates / build tweaks and AV data.</p>
<p>Untill &#8220;hot cloning to template&#8221; is available ( not gone to update 2 yet ) I&#8217;m looking for a script that I can run as a scheduled task to shut a specified guest down , and clone to a template ( overwriting the last template ), then boot it back up.</p>
<p>I&#8217;m a complete powershell virgin but have seen the light at a recent usergroup meeting <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6857</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Thu, 14 Aug 2008 13:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6857</guid>
		<description>Script?  That's a one-liner!  :)

get-template MyTemplate &#124; new-vm -vmhost esxserver01 -name MyVM -OSCustomizationSpec MySpec</description>
		<content:encoded><![CDATA[<p>Script?  That&#8217;s a one-liner!  <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>get-template MyTemplate | new-vm -vmhost esxserver01 -name MyVM -OSCustomizationSpec MySpec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMWareLearner</title>
		<link>http://halr9000.com/article/464#comment-6856</link>
		<dc:creator>VMWareLearner</dc:creator>
		<pubDate>Thu, 14 Aug 2008 12:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6856</guid>
		<description>How about a script that creates a new VM based on a template and the settings in the customization wizard?</description>
		<content:encoded><![CDATA[<p>How about a script that creates a new VM based on a template and the settings in the customization wizard?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6855</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Wed, 13 Aug 2008 19:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6855</guid>
		<description>"I started work on this a while ago but have not had time to finish it."

yeah, me too.  :)

I'm pretty sure we'll see a script to do this come out of the VI PowerShell contest (http://vmware.com/go/powershellcontest/).</description>
		<content:encoded><![CDATA[<p>&#8220;I started work on this a while ago but have not had time to finish it.&#8221;</p>
<p>yeah, me too.  <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m pretty sure we&#8217;ll see a script to do this come out of the VI PowerShell contest (http://vmware.com/go/powershellcontest/).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6854</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Wed, 13 Aug 2008 19:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6854</guid>
		<description>You can edit the SAN multipath policy and other related stuff via the VI toolkit.  I'll have to write about that someday.</description>
		<content:encoded><![CDATA[<p>You can edit the SAN multipath policy and other related stuff via the VI toolkit.  I&#8217;ll have to write about that someday.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://halr9000.com/article/464#comment-6853</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 13 Aug 2008 18:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6853</guid>
		<description>How about a config script that can be used after a host has been created (initial ESX installation) that copies all the network configuration info from an existing ESX host (i.e. vswitches, portgroups, service consoles, etc) to the new host(s). (autoincrement/user input IP addresses?) or if you have made an update on one host, the script can just update all other hosts.

make it so that it can copy to all new servers or just one.  I started work on this a while ago but have not had time to finish it.</description>
		<content:encoded><![CDATA[<p>How about a config script that can be used after a host has been created (initial ESX installation) that copies all the network configuration info from an existing ESX host (i.e. vswitches, portgroups, service consoles, etc) to the new host(s). (autoincrement/user input IP addresses?) or if you have made an update on one host, the script can just update all other hosts.</p>
<p>make it so that it can copy to all new servers or just one.  I started work on this a while ago but have not had time to finish it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joose</title>
		<link>http://halr9000.com/article/464#comment-6570</link>
		<dc:creator>Joose</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6570</guid>
		<description>It would be nice if esxcfg-mpath commands could be used.</description>
		<content:encoded><![CDATA[<p>It would be nice if esxcfg-mpath commands could be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6551</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Fri, 21 Mar 2008 01:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6551</guid>
		<description>From the VITK forum: "I want CPU Ready information, i.e. the amount of time a VM is READY to RUN but must WAIT for a the right number of cores to become available."</description>
		<content:encoded><![CDATA[<p>From the VITK forum: &#8220;I want CPU Ready information, i.e. the amount of time a VM is READY to RUN but must WAIT for a the right number of cores to become available.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6548</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Tue, 18 Mar 2008 17:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6548</guid>
		<description>@Mark, cool idea, I'll see if that's doable.  @Gabrie, try this:
&lt;code&gt;$snap = get-vm &#124; get-snapshot
$snap &#124; ft @{l = "VM"; e = {$_.vm.name} },name,created,description&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@Mark, cool idea, I&#8217;ll see if that&#8217;s doable.  @Gabrie, try this:<br />
<code>$snap = get-vm | get-snapshot<br />
$snap | ft @{l = "VM"; e = {$_.vm.name} },name,created,description</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabrie</title>
		<link>http://halr9000.com/article/464#comment-6545</link>
		<dc:creator>Gabrie</dc:creator>
		<pubDate>Tue, 18 Mar 2008 08:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6545</guid>
		<description>Hi

I would love to have a list of all active snapshots, the time they are running (or creation date), comment and VM they belong to.

Gabrie</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I would love to have a list of all active snapshots, the time they are running (or creation date), comment and VM they belong to.</p>
<p>Gabrie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Schill</title>
		<link>http://halr9000.com/article/464#comment-6544</link>
		<dc:creator>Mark Schill</dc:creator>
		<pubDate>Tue, 18 Mar 2008 02:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6544</guid>
		<description>A way to create a snapshot that expires in a specified number of hours would be awesome.</description>
		<content:encoded><![CDATA[<p>A way to create a snapshot that expires in a specified number of hours would be awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halr9000</title>
		<link>http://halr9000.com/article/464#comment-6501</link>
		<dc:creator>halr9000</dc:creator>
		<pubDate>Sat, 01 Mar 2008 17:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6501</guid>
		<description>Thanks Andrew, I'll add that to my list.</description>
		<content:encoded><![CDATA[<p>Thanks Andrew, I&#8217;ll add that to my list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Kutz</title>
		<link>http://halr9000.com/article/464#comment-6500</link>
		<dc:creator>Andrew Kutz</dc:creator>
		<pubDate>Sat, 01 Mar 2008 17:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://halr9000.com/article/464#comment-6500</guid>
		<description>You could write one to add multiple port groups across many host servers. This is so nice when trunking many VLANs at once.</description>
		<content:encoded><![CDATA[<p>You could write one to add multiple port groups across many host servers. This is so nice when trunking many VLANs at once.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
