Hello
I have A VCENTER vsphere Vm and I normally to a task in Vcenter to CLone the VM in case I have a problem
I would like do find the powershell script to do that
the cmd must clone the vm to another datastore
is there a way to do that
I want also to do a P2v schedule task
If I do it with Converter, the task dont work because the p2v vm exist ???
There is a good cloning set of scripts here.
And a discussion of some necessary changes here. These scripts can clone between different datacenters but require them all to be on one VI server. If you have multiple VI servers you will need to modify the scripts to open a connection to each VI server.
The scripts mentioned are a bit old. You should be able to do everything you want with the New-VM cmdlet. New-VM can clone a running VM. You can use -datastore to tell it what datastore to use.
=====
Carter Shanklin
Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]
Hello
I tryied the new-vm but i jave the following error
D:\Program Files\VMware\Infrastructure\vSphere PowerCLI> New-
VM -vmHost "140.104.16.139" -Name clonevcuat -VM chdcvvsp8306 -datastore tg_vmfs
uat03 -location vc_cloneNew-VM : 09/03/2010 12:02:47 New-VM Could not find VMHost with name '
140.104.16.139'.
At line:1 char:7
+ New-VM <<<< -vmHost "140.104.16.139" -Name clonevcuat -VM chdcvvsp8306 -data
store tg_vmfs_uat_03 -location vc_clone
New-VM : Value cannot be found for the mandatory parameter VMHost
At line:1 char:7
+ New-VM <<<< -vmHost "140.104.16.139" -Name clonevcuat -VM chdcvvsp8306 -data
store tg_vmfs_uat_03 -location vc_clone
D:\Program Files\VMware\Infrastructure\vSphere PowerCLI>
I dont find the solution