Instead of entering computer names and IP addresses for virtual NICs when you customize guest operating systems, you can create a custom application and configure it in such a way that vCenter Server generates the names and addresses.
The application can be an arbitrary executable binary or script file appropriate for the corresponding operating system in which vCenter Server is running. After you configure an application and make it available to vCenter Server, every time you initiate a guest operating system customization for a virtual machine, vCenter Server runs the application.
The application must comply with the reference XML file in the VMware knowledge base article at http://kb.vmware.com/kb/2007557.
Prerequisites
Verify that Perl is installed on vCenter Server.
Procedure
- Create the application and save it on the vCenter Server system's local disk.
- Select a vCenter Server instance in the inventory.
- Click the Configure tab, click Settings, and click Advanced Settings.
- Click Edit Settings and enter the configuration parameters for the script.
- In the Name text box, enter config.guestcust.name-ip-generator.arg1.
- In the Value text box, enter c:\sample-generate-name-ip.pl and click Add.
- In the Name text box, enter config.guestcust.name-ip-generator.arg2.
- In the Value text box, enter the path to the script file on the vCenter Server system and click Add. For example, enter c:\sample-generate-name-ip.pl.
- In the Name text box, enter config.guestcust.name-ip-generator.program.
- In the Value text box, enter c:\perl\bin\perl.exe and click Add.
- Click Save.
Results
You can select the option to use an application to generate computer names or IP addresses during guest operating system customization.