We're rolling out a new testbed in the office, and need to spin up ~30-40 Linux VMs (mostly RHEL 5/6, some SuSE). Running on VMware ESXi 5.5, we'd like to automate the process. There's a pre-made answer file for the installer, the question is how to have VMware tell the script how to configure the machine (based on hostname).
Basically, there should be some PowerCLI script for VMware that creates machines and mounts the installer .iso. It should then start the machine, pass some parameters to the answer file and be off and running (pending completion, it should kick off the next one).
Any ideas/best practices? Have we missed anything?
Edit: To be clear the question is this: "how do I pass parameters from the VMware PowerCLI to an unattended installer answer file?"