VMware Cloud Community
DirkSchiller
Contributor
Contributor

How to clone a VMware Image with "vmrun" in an ESXi / vCenter Server Infrastructure ?

Hi there,

I try to get solved this:

1) If I run the "vmrun" against an ESXi Host I get this Error "Error: The opereation is not supported"

I tried this command:

vmrun -T esx -h http://1.1.1.1 -u user -p pass clone "[DATA01] vm1/vm1.vmx" "[DATA01] vm1-clone/vm1-clone.vmx" full

2) After a long term of reading, and talking and calling I get the Information to run this against a vCenter Server. So I tried this

against a vCenter Server:

vmrun -T vc -h http://2.2.2.2 -u user -p pass clone "[DATA01] vm1/vm1.vmx" "[DATA01] vm1-clone/vm1-clone.vmx" full

The Result: "Error: The opereation is not supported"

Also tried this:

vmrun -T server -h http://2.2.2.2 -u user -p pass clone "[DATA01] vm1/vm1.vmx" "[DATA01] vm1-clone/vm1-clone.vmx" full

and this:

vmrun -T server -h http://2.2.2.2/sdk -u user -p pass clone "[DATA01] vm1/vm1.vmx" "[DATA01] vm1-clone/vm1-clone.vmx" full

and this:

vmrun -T server -h http://2.2.2.2 -u user -p pass clone "[DATA01] vm1/vm1.vmx" "[DATA01] vm1-clone/vm1-clone.vmx" linked

Every time the same Error: "The operation is not supported"

Now I am very confused because I dont know what that should means. Does that mean, that the "vmrun" command from the VIX API does not support cloning... no that can not be. Or does that mean that the vCenter Server does not support cloning. That could be. So the question is: which VMware Software supports the command "vmrun ... clone ..." ? If anybody knows please let me know.

Do I have to install the VIX API on the vCenter Server ?

Thanks so much - cheers

Dirk

Reply
0 Kudos
2 Replies
weinstein5
Immortal
Immortal

Welcome to the Community - I move your query to a more approriate forum =

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Reply
0 Kudos
karthi81
Contributor
Contributor

Hi,

I also getting the same Error message while trying to clone a VM using vmrum command,

[root@cel-vm3 ~]# /usr/bin/vmrun -T vc -h https://cvss-esx-04.example.com/sdk -u root clone '[CEL-VMWARE-RTP1] CEL-5.90-BSH-PROD-x86_64/CEL-5.90-BSH-PROD-x86_64.vmx' '[CEL-VMWARE-RTP1] CEL-5.90-PROD-x86_64/CEL-5.90-PROD-x86_64.vmx' full --cloneName=CEL-5.90-PROD

Host password: <I have entered the password>

Error: The operation is not supported.

Can you please help me that why I'm getting this Error Message?

Thanks

Karthik

Reply
0 Kudos