<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	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>Comments on: Quick and Dirty PowerShell to create a large number of test VMs with sequential names</title>
	<atom:link href="http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/</link>
	<description>My ramblings on the stuff that holds it all together</description>
	<lastBuildDate>Tue, 24 Apr 2012 00:23:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Gurjit Dhillon</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-5837</link>
		<dc:creator><![CDATA[Gurjit Dhillon]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 15:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-5837</guid>
		<description><![CDATA[Hi,

First of thanks for wonderfull script, I am able to deploy the multiple vm by this script but also also getting some error. I am not sure why these error are coming, is it possible to get some infomation ?

Creating
vmtest01001
New-VM : 10/27/2011 5:40:48 PM    New-VM        Operation is not valid due to the current state of the object.    
At C:\Users\gudhillo\AppData\Local\Temp\1d2ba134-a7e1-440b-9d45-c1e30bbc396e.ps1:32 char:7
+ New-VM &lt;&lt;&lt;&lt;  -Name $string -Template $(get-template $strTemplate) -location (get-folder $strLocation) -pool (get-resourcepool $strPool) -VMHost $(Get-VMHos
t $strDestinationHost) -Datastore $(Get-Datastore $strDatastore) -OSCustomizationSpec $(Get-OSCustomizationSpec $strCustomSpec)
    + CategoryInfo          : NotSpecified: (:) [New-VM], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
 
Regards
Gurjit Dhillon]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of thanks for wonderfull script, I am able to deploy the multiple vm by this script but also also getting some error. I am not sure why these error are coming, is it possible to get some infomation ?</p>
<p>Creating<br />
vmtest01001<br />
New-VM : 10/27/2011 5:40:48 PM    New-VM        Operation is not valid due to the current state of the object.<br />
At C:\Users\gudhillo\AppData\Local\Temp\1d2ba134-a7e1-440b-9d45-c1e30bbc396e.ps1:32 char:7<br />
+ New-VM &lt;&lt;&lt;&lt;  -Name $string -Template $(get-template $strTemplate) -location (get-folder $strLocation) -pool (get-resourcepool $strPool) -VMHost $(Get-VMHos<br />
t $strDestinationHost) -Datastore $(Get-Datastore $strDatastore) -OSCustomizationSpec $(Get-OSCustomizationSpec $strCustomSpec)<br />
    + CategoryInfo          : NotSpecified: (:) [New-VM], VimException<br />
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM</p>
<p>Regards<br />
Gurjit Dhillon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinf.net</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-4631</link>
		<dc:creator><![CDATA[vinf.net]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 11:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-4631</guid>
		<description><![CDATA[@Maqsood - that would work from a script point of view allowing you to create the VMs but you won&#039;t be able to start any of the vmESX nodes running inside another vmESXi running on workstation as you can&#039;t have a 64-bit nested VM (VM inside another VM)

You could have an ESXi and a vCenter VM on your physical machine then use this script then talks to the vCenter (which controls the vmESXi) and create a bunch of x86 VMs that would run inside the vmESXi VM - that would work, just doesn&#039;t work with x64 VMs.

HTH]]></description>
		<content:encoded><![CDATA[<p>@Maqsood &#8211; that would work from a script point of view allowing you to create the VMs but you won&#8217;t be able to start any of the vmESX nodes running inside another vmESXi running on workstation as you can&#8217;t have a 64-bit nested VM (VM inside another VM)</p>
<p>You could have an ESXi and a vCenter VM on your physical machine then use this script then talks to the vCenter (which controls the vmESXi) and create a bunch of x86 VMs that would run inside the vmESXi VM &#8211; that would work, just doesn&#8217;t work with x64 VMs.</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maqsood</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-4617</link>
		<dc:creator><![CDATA[maqsood]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 08:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-4617</guid>
		<description><![CDATA[but where do i need to run this script,

i have PC with 8Gb memory but due to h/w incompaitability i am unable to install esx on thats, so can i run ESXi on Vmware wks(on win7) and then create mutiple ESi host inside Main ESXi(which will be running on vmware wks)]]></description>
		<content:encoded><![CDATA[<p>but where do i need to run this script,</p>
<p>i have PC with 8Gb memory but due to h/w incompaitability i am unable to install esx on thats, so can i run ESXi on Vmware wks(on win7) and then create mutiple ESi host inside Main ESXi(which will be running on vmware wks)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Top Virtualization Blog Voting Time &#171; Virtualization, Windows, Infrastructure and all that stuff in-between</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-2125</link>
		<dc:creator><![CDATA[Top Virtualization Blog Voting Time &#171; Virtualization, Windows, Infrastructure and all that stuff in-between]]></dc:creator>
		<pubDate>Tue, 14 Sep 2010 21:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-2125</guid>
		<description><![CDATA[[...] http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequ... [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequ" rel="nofollow">http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequ</a>&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinf</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1611</link>
		<dc:creator><![CDATA[vinf]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 11:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1611</guid>
		<description><![CDATA[Thanks Thomas, the examples you have on your site are probably the most useful I have found... thanks!]]></description>
		<content:encoded><![CDATA[<p>Thanks Thomas, the examples you have on your site are probably the most useful I have found&#8230; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Lee</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1609</link>
		<dc:creator><![CDATA[Thomas Lee]]></dc:creator>
		<pubDate>Tue, 16 Mar 2010 23:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1609</guid>
		<description><![CDATA[Nice Script. 

I have a couple of suggestions that would make the code a tad more elegant, as follows:

#Variables
$NameVM =&quot;vmNested-&quot;
$NameTemplate =&quot;TPL – vmNested-01&quot;
$Datacenter=&quot;v.T.A.R.D.I.S&quot;
$Datastore=&quot;SSD-iSCSI&quot;
$ESX=&quot;vmESXi-4.lab&quot;
$HOW_MANY_TO_CREATE=4

$Date=get-date -uformat &quot;%Y%m%d&quot;

$NumArray = (1..$HOW_MANY_TO_CREATE)

for ([int]$seq=1;$seq -le $HOW_MANY_TO_CREATE;$seq++)
{
  $string = $NameVM + ($seq.tostring(&quot;0##&quot;))
  &quot;Creating $string&quot;
  # Create the VM
  New-VM -template (Get-template $NameTemplate) -Name $string -Datastore (Get-datastore $Datastore) -VMHost $ESX
}]]></description>
		<content:encoded><![CDATA[<p>Nice Script. </p>
<p>I have a couple of suggestions that would make the code a tad more elegant, as follows:</p>
<p>#Variables<br />
$NameVM =&#8221;vmNested-&#8221;<br />
$NameTemplate =&#8221;TPL – vmNested-01&#8243;<br />
$Datacenter=&#8221;v.T.A.R.D.I.S&#8221;<br />
$Datastore=&#8221;SSD-iSCSI&#8221;<br />
$ESX=&#8221;vmESXi-4.lab&#8221;<br />
$HOW_MANY_TO_CREATE=4</p>
<p>$Date=get-date -uformat &#8220;%Y%m%d&#8221;</p>
<p>$NumArray = (1..$HOW_MANY_TO_CREATE)</p>
<p>for ([int]$seq=1;$seq -le $HOW_MANY_TO_CREATE;$seq++)<br />
{<br />
  $string = $NameVM + ($seq.tostring(&#8220;0##&#8221;))<br />
  &#8220;Creating $string&#8221;<br />
  # Create the VM<br />
  New-VM -template (Get-template $NameTemplate) -Name $string -Datastore (Get-datastore $Datastore) -VMHost $ESX<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VMware vSphere - виртуализация ЦОД &#187; Как создать сразу несколько тестовых виртуальных машин из шаблона на VMware vSphere / ESX.</title>
		<link>http://vinf.net/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1529</link>
		<dc:creator><![CDATA[VMware vSphere - виртуализация ЦОД &#187; Как создать сразу несколько тестовых виртуальных машин из шаблона на VMware vSphere / ESX.]]></dc:creator>
		<pubDate>Sun, 28 Feb 2010 23:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://vinf.wordpress.com/2010/02/25/quick-and-dirty-powershell-to-create-a-large-number-of-test-vms-with-sequential-names/#comment-1529</guid>
		<description><![CDATA[[...] коллега с vinf.net предлагает &#8220;быстрый и грязный&#8221; скрипт PowerCLI / PowerShell, который позволяет создать множество виртуальных [...]]]></description>
		<content:encoded><![CDATA[<p>[...] коллега с vinf.net предлагает &#8220;быстрый и грязный&#8221; скрипт PowerCLI / PowerShell, который позволяет создать множество виртуальных [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

