VMware Cloud Community
mashoj
Contributor
Contributor
Jump to solution

Problem; how to clone vm by powercli

I am trying to create clone virtual machine by NEW-VM cmdlet at my ESXi 4.1 server.

but I received the following messages every time.

  [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> new-
  vm -name clone1 -datastore datastore1 -VM testvm1
  New-VM : 2011/04/18 14:33:01    New-VM        The operation for the entity VirtualMachine

  -144 failed with the following message: "The operation is not supported on the object."

I know a free ESXi server has some limitations as following,

  "Note that the free VMware vSphere Hypervisor does not allow any configuration changes through the vCLI."

but also powercli has this limitation.

so,I registered license "vSphere 4 Enterprise Plus" on my ESXi server.

but there is no change. I received the same messages again and again.

how can I do this operation? pls help.

Reply
0 Kudos
1 Solution

Accepted Solutions
ykalchev
VMware Employee
VMware Employee
Jump to solution

Hi,

Clone operation is only supported by vCenter Server, so you can't perform clone vm when connected directly to Esx(i).

Regards,

Yasen

Yasen Kalchev, vSM Dev Team

View solution in original post

Reply
0 Kudos
4 Replies
Zsoldier
Expert
Expert
Jump to solution

There seems to be something about testvm1 that it's not liking.  Can you do a 'get-vm testvm1 | format-list *' and post? 

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Reply
0 Kudos
ykalchev
VMware Employee
VMware Employee
Jump to solution

Hi,

Clone operation is only supported by vCenter Server, so you can't perform clone vm when connected directly to Esx(i).

Regards,

Yasen

Yasen Kalchev, vSM Dev Team
Reply
0 Kudos
mashoj
Contributor
Contributor
Jump to solution

hi, Yasen-san,

exactly, you are right! my clone operation via ESXi direclty.

when I changed ESXi to vCenter for the connection server,  my clone operation performed successfully.

thanks.

regards,

Masao

Reply
0 Kudos
mashoj
Contributor
Contributor
Jump to solution

hi, Zsoldir-san,

thank you for posting. my problem was solved by Yasen's comment. I had simple mistake way of clone operation.

regards,

Masao

Reply
0 Kudos