VMware Cloud Community
HQNetwork
Contributor
Contributor

ESXi 4 - vGhettoLinkedClone - Agent Error

Hello,

I'm trying to run the vGhettoLinkedClone.pl script and keep getting this error:

" Operation is not supported by the current agent "

I am trying this from a remote linux machine (not on the same server as the one I'm trying to clone)

I've installed the Perl SDK for VMWare - no errors there.

Trying to Clone VM: testvm (names changed to protect the innocent)

Snapshot name: PreInst_Snap_Before_lc (XP Pro)

Below is my command line entry for vGhettoLinkedClone.pl running from a remote linux machine:

./vGhettoLinkedClone.pl --server --username root --vmhost .localdomain --vmname testvm --vmname_destination "testvm-01" --snapname PreInst_Snap_Before_lc

(obviously on my server I used the server ip and server's hostname rather than and , etc. values above were taken out for privacy reasons.

So I get the error:

" Operation is not supported by the current agent "

After i hit enter on that command above, and after I enter my password. So it's getting TO the server, just not playing nice with it.

Besides a resolution to this error above, I'd like to be able to do linked clones in a range. We may want 3 of these linked clones, so it would be nice to tell it to start with testvm-01 and end with testvm-03

I believe this was possible with an older version of GhettoLinkedClone but not sure how to do it with this one (or at all).

Any advice is greatly appreciated.

Reply
0 Kudos
2 Replies
HQNetwork
Contributor
Contributor

The script code again, this time without formatting:

./vGhettoLinkedClone.pl --server (using server IP) --username root --vmhost (server.localdomain) --vmname testvm --vmname_destination "testvm-01" --snapname PreInst_Snap_Before_lc

Reply
0 Kudos
lamw
Community Manager
Community Manager

Cloning is a functionality of vCenter, you need to run this against a vCenter 4.0 instance.

http://engineering.ucsb.edu/~duonglt/vmware/vGhettoLinkedClone.html

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos