Does anyone know of a way to run a OS script (.bat or perl) as soon as a VM is up and running in vCD? Can this be done with Standard vCD or is there another application with in the vCD Suite which can/does do this?
This would be a use case where we are attempting to automatically setup a test environment for developers or testers. Rather than have those users run the script, as soon as the VM is up and running, the script(s) would be run automatically.
I have found your solution I think!
According to VMware vCloud Director 5.5 Documentation Center
You can upload a customization script to the vm. The script runs before and after guest customization when you deploy a VM based on a vApp template. I believe this will do what you are looking for.