cmwalolo
Contributor
Contributor

Scripts after VM creation

By example I have a SharePoint Template I can deploy automatically with specifiing IPs, and some other Hardware configuration. But once the Virttual Machine is created and started, I would like to run some scripts to configure some specific applications or to install additional tools ? Is there any tool running on VMWare to help me to run scripts after a Virtual Machine Creation?

Thanks to all for any advice Smiley Happy

0 Kudos
1 Reply
lamw
Community Manager
Community Manager

You can take a look at VMware VIX: http://www.engr.ucsb.edu/~duonglt/vmware/#vmware_vix which allows you to execute commands within the guestOS, so long as you have VMware Tools installed. The current version 1.6.2 supports up to ESX 3.5, but not vSphere, I've heard the next version will fully support vSphere in case you were looking to deploy VMs on ESX(i) 4.0

You could also use Windows run once reg. keys and if you have the scripts stored in some shared accessible repository such as an NFS server, you could easily copy them over and execute them. I also think if you deploy from a template, you have an option in the customization to run custom scripts as part of the deployment, I'm not 100% sure but I believe that is the case for Windows.

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

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

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

0 Kudos