customization
Specifies the customization parameters for the guest operating system of the virtual machine.
The following table describes the child elements of customization:
Child elements customization
Element | Definition | Required |
---|---|---|
<identity> | Specifies the network identity and settings, similar to Microsoft's Sysprep tool | No |
<gui-unattended> | Contains the following elements for preparing the graphical user interface (GUI) for unattended setup
| Conditional; required if identity type is set to CustomizationSysprep |
<password> | Specifies the new administrator password for the virtual machine <password> <value></value> <plain-text></plain-text> </password> The <value> element contains the password string. The password is encrypted if the <plain-text> element is set to false.
| No; valid only if identity type is set to CustomizationSysprep |
<time-zone> | Specifies the time zone for the new virtual machine | No; valid only if identity type is set to CustomizationSysprep |
<auto-logon> | Specifies the flag that determines whether the machine automatically logs on as Administrator | No; valid only if identity type is set to CustomizationSysprep |
<auto-logon-count> | If the AutoLogon flag is set, the AutoLogonCount property specifies the number of times the machine should automatically log on as Administrator. | No; valid only if identity type is set to CustomizationSysprep |
<full-name> | Specifies the full name of the user | Conditional; valid only if identity type is set to CustomizationSysprep |
<computer-name> | Specifies the computer name of the Microsoft Windows virtual machine <computer-name> <name></name> </computer-name> | Conditional; valid only if identity type is set to CustomizationSysprep |
<org-name> | Specifies the name of the user's organization | Conditional; valid only if identity type is set to CustomizationSysprep |
<product-id> | Specifies the valid serial number that Microsoft Sysprep requires in the answer file when mini-setup runs. | No; valid only if identity type is set to CustomizationSysprep |
<join-workgroup> | Specifies the workgroup that the virtual machine must join | No; valid only if identity type is set to CustomizationSysprep |
<auto-mode> | Specifies the licensing mode for the server | No; valid only if identity type is set to CustomizationSysprep |
<auto-users> | Specifies the key that is valid only if the value of the AutoMode element is PerServer. The integer value specifies the number of client licenses purchased for the VMware VirtualCenter server installed. | No; valid only if identity type is set to CustomizationSysprep |
<host-name> | Specifies the computer name of the virtual machine (not running on Windows) <host-name> <name></name> </host-name> | Conditional; valid only if identity type is set to CustomizationSysprep |
<domain> | Specifies the fully qualified domain name | Conditional; valid only if identity type is set to CustomizationSysprep |
<dns-server-list> | Specifies the list of DNS servers for a virtual network adapter with a static IP address <dns-server-list> <dns-server-list></dns-server-list> <dns-server-list></dns-server-list> </dns-server-list> | No |
<dns-suffix-list> | Specifies the list of name resolution suffixes for the virtual network adapter <dns-suffix-list> <dns-suffix-list></dns-suffix-list> <dns-suffix-list></dns-suffix-list> </dns-suffix-list> | No |
<nic-setting-map> | Contains the <adapter> element which in turn contains the following virtual network adapter elements that must be customized:
| No |
<ip> | Specifies the unique IP address for the virtual network adapter
| No |
<subnet-mask> | Specifies the subnet mask for the virtual network adapter | No |
<gateway> | Specifies a list of gateways, in the order of preference for a virtual network adapter with a static IP address | No |
<dns-domain> | Specifies a DNS domain suffix such as vmware.com | No |
The following figure shows the sample for customization.
XML Sample for customization
<identity type="CustomizationSysprep">
<gui-unattended>
<password>
<value>abc123</value>
<plain-text>true</plain-text>
</password>
<time-zone></time-zone>
<auto-logon></auto-logon>
<auto-logon-count></auto-logon-count>
</gui-unattended>
<user-data>
<full-name></full-name>
<org-name></org-name>
<computer-name>
<name>A</name>
</computer-name>
<product-id></product-id>
</user-data>
<identification>
<join-workgroup></join-workgroup>
</identification>
<license-file-print-data>
<auto-mode></auto-mode>
<auto-users></auto-users>
</license-file-print-data>
<host-name>
<name></name>
</host-name>
<domain></domain>
</identity>
<globalIPSettings>
<dns-server-list>
<dns-server-list></dns-server-list>
<dns-server-list></dns-server-list>
</dns-server-list>
<dns-suffix-list>
<dns-suffix-list></dns-suffix-list>
<dns-suffix-list></dns-suffix-list>
</dns-suffix-list>
</globalIPSettings>
<nic-setting-map>
<adapter>
<ip type="CustomizationDhcpIpGenerator">
<ipAddress></ipAddress>
</ip>
<subnet-mask></subnet-mask>
<gateway></gateway>
<dns-domain></dns-domain>
</adapter>
</nic-setting-map>
<customization>