VMware Cloud Community
boblucas
Contributor
Contributor
Jump to solution

Cloning Guest Hosts via Automation

How is the best way to setup automated weekly clones of a guess host?

Reply
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

You can still use vmclone.pl for vCenter 2.5 and ESX(i) 3.5uX

Here are the VI Perl Toolkit utilities http://www.vmware.com/support/developer/viperltoolkit/viperl15/doc/perl_toolkit_utilities_idx.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".

View solution in original post

Reply
0 Kudos
4 Replies
lamw
Community Manager
Community Manager
Jump to solution

Depending on how you want to clone your VM, you can take a look at the vmclone.pl script which is part of the vSphere SDK for Perl Utilities and part of vCLI installation. You can setup a cron job to automate the cloning process based on your requirements. There is also a new 'scheduled task' in vSphere vCenter 4.0 that has a clone operation which you can set on your vCenter

It all depends on the requirements, much more customization can be done by writing your own script against the vSphere API's.

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

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".

Chamon
Commander
Commander
Jump to solution

If you want to clone a VM and have VC you can set a scheduled task in virtual center to do this for you. If not you can script it and set it up as a weekly cron job. What is your environment like?

Reply
0 Kudos
boblucas
Contributor
Contributor
Jump to solution

Still on ESX 3.5 and Vcenter 2.5

About to install Vsphere 4.0 in the next few weeks.

Thanks!

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

You can still use vmclone.pl for vCenter 2.5 and ESX(i) 3.5uX

Here are the VI Perl Toolkit utilities http://www.vmware.com/support/developer/viperltoolkit/viperl15/doc/perl_toolkit_utilities_idx.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