Etuprika
Contributor
Contributor

how to clone virtula machine by vSphere Power CLI?

hi,everybody

I introduced vSphere (ESXi4.1) and vSphere Power CLI in these days.

But problem is occured at cloning virtula machine by vSphere Power CLI (@4.1 Updata 1) .

I tried to clone virtual machine using cmdlet "new-vm".

( vSphere Power CLI is installed at Windows 7 Ultimate)

----command----

「connect-VIserver -server <ESX host IP addr> -protocol https -user <user> -password <password>」

「New-VM -Name test -VM Server_01_VM -Datastore <datastore>」

( I Used as reference "Online Cmdlet Reference" http://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/index.html )

   

but error is occured and cmdlet is refused

「New-VM:2011/04/06 17:16:57 New-VM The Operation is not supported on the object.」

I analized it, but had no known cause...

what is conceivable cause ?

Sincerely,Etuprika

Tags (2)
0 Kudos
2 Replies
RvdNieuwendijk
Leadership
Leadership

You are probably using the free version of ESXi. That version doesn't allow you to make changes using PowerCLI. That is why the New-VM cmdlet gives this error message.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
mattboren
Expert
Expert

Hello, Etuprika-

It seems as though you might be using the free version of ESXi -- is that the case?

If so, "the free VMware vSphere Hypervisor does not allow any configuration changes through the vCLI" [or PowerCLI], per the FAQ.

There was recently a similar thread, http://communities.vmware.com/thread/309038, that has a bit more info.

Kind of a bummer when trying to get familiar with the product before buying.  But, you could download a vCenter Server eval (good for 60 days), add your host to the vCenter Server, and do your testing against that (for a while, at least).

Message was edited by mattboren:  Doh, I see that RvdNieuwendijk already replied as I was composing my reply...