Hey guys , I download and installed powercli, Last night i was running a specfic command to clone from a template...
Foreach ($i in 1..15) {New-VM -Name "vmSvr$i” -Template win2k3 -VMHost 10.1.10.9 -Datastore storage1}
I was scripting a few clones to be created...
Today i get an error when i try to attempt to create more..
+ Foreach ($i in 5..15) {New-VM <<<< -Name "vmSvr$i" -Template win2k3 -VMHost
10.1.10.9 -Datastore storage1}
New-VM : 6/27/2009 3:35:41 AM New-VM Could not find Template with nam
e 'win2k3'.
At line:1 char:30
+ Foreach ($i in 5..15) {New-VM <<<< -Name "vmSvr$i" -Template win2k3 -VMHost
10.1.10.9 -Datastore storage1}
New-VM : 6/27/2009 3:35:41 AM New-VM Template parameter: Could not fi
nd any of the objects specified by name.
At line:1 char:30
+ Foreach ($i in 5..15) {New-VM <<<< -Name "vmSvr$i" -Template win2k3 -VMHost
10.1.10.9 -Datastore storage1}
New-VM : 6/27/2009 3:35:42 AM New-VM Could not find Template with nam
e 'win2k3'.
At line:1 char:30
+ Foreach ($i in 5..15) {New-VM <<<< -Name "vmSvr$i" -Template win2k3 -VMHost
10.1.10.9 -Datastore storage1}
New-VM : 6/27/2009 3:35:42 AM New-VM Template parameter: Could not fi
nd any of the objects specified by name.
At line:1 char:30
+ Foreach ($i in 5..15) {New-VM <<<< -Name "vmSvr$i" -Template win2k3 -VMHost
10.1.10.9 -Datastore storage1}
This loop generates the same error per attempt to create a vm within the specified total range...
What i started looking into was "Could not find Template with nam
e 'win2k3'."
This error means the template doesnt exist, however it does... i have
tried to convert the template to a vm, covert the vm back to a
template, create new templates from other machines, remove the host
from VC, re-add the host, I reinstalled VC to purge my SQL express 05
DB, reinstalled powercli... I have even create a new VM and attempted
to clone that.... for some reason I still get the error.
When I run other commandlets like Get-VM, Get-Dataceter, etc they all
return some sort of text output with the spefic requirments, however if
i try to run
Get-Template
no information is resturned, I just get the next command prompt..
Late night i was able to clone from template over 40 VMS and Delete all
40 of them with a similiar string today i cant even see a template is
availabe on my server except from the gui interface of VC...
Please help as i would like to continue using this application for its
simplicity and powerful functionality,,, especially when it comes to
cloning multiple VMS.. ty in advance.
Hey guys, I think there was a problem with the DB, just my opinion. I moved my virtual center instance and attempted connection and I am able to configure and use Get-Template function... SQL must hang on to the records in a hasty fashion, I guess when you repair VC the DB isnt completely purged. thanks for any considerations.