VMware

This Question is Answered

1 "helpful" answer available (6 pts)
4 Replies Last post: Nov 4, 2009 9:08 AM by lamw  

Cloning Guest Hosts via Automation posted: Nov 4, 2009 6:40 AM

Click to view boblucas's profile Novice 2 posts since
Dec 4, 2008
How is the best way to setup automated weekly clones of a guess host?

Re: Cloning Guest Hosts via Automation

1. Nov 4, 2009 6:49 AM in response to: boblucas
Click to view lamw's profile Champion 2,814 posts since
Nov 27, 2007
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: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Re: Cloning Guest Hosts via Automation

2. Nov 4, 2009 6:49 AM in response to: boblucas
Click to view Chamon's profile Master 822 posts since
Aug 15, 2007
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?

Re: Cloning Guest Hosts via Automation

4. Nov 4, 2009 9:08 AM in response to: boblucas
Click to view lamw's profile Champion 2,814 posts since
Nov 27, 2007
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: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities