With VMware vCenter Server, you have the ability to clone virtual machines by automatically customizing the new virtual machine created using a set of configuration settings.
This feature of VMware vCenter Server is called "VM Customization Specifications" and allows you to automatically configure the computer name (NETBIOS name), license key / product key (on Windows), time zone to use, ... thanks to VMware ClonePrep, QuickPrep and Microsoft Sysprep (for Windows).
Info: this only works if the virtual machine's operating system is installed in a virtual hard disk connected to the location
To access this feature, click "vSphere Client" at the top left to view all shortcuts for this client, then click: VM Customization Specifications.
To be able to customize the guest operating system (Windows and Linux), it is necessary that the VMware Tools have been installed in it.
Additionally, the virtual hard disk must be connected to a virtual SCSI controller at slot 0:0.
If the guest operating system is Windows, the virtual machine must be running on a VMware ESXi 3.5 or later host.
If the guest operating system is Linux, it is necessary to have Perl installed in the guest operating system.
To find out if this package is installed on your Linux virtual machine, type the command:
Bash
dpkg -s perl
If this package is installed, this will be displayed:
Plain Text
Package: perl Status: install ok installed ...
Source : Guest Operating System Customization Requirements.
To begin, we'll create a new VM customization specification for Windows.
To do this, click on: New.
The “New VM Customization Specification” wizard appears.
In this form, provide:
For registration information, provide:
For the computer name (in other words, the NETBIOS name which will be configured in the guest Windows settings), you can choose:
For the Windows license, you will have the option to specify the product key to use.
In the case of using volume licenses (VL), you can for example indicate the generic KMS product key corresponding to the desired version of Windows available on the Microsoft site: KMS client installation keys.
Note: in case you are looking for KMS keys for Windows Vista, they are available on an old Microsoft page which is no longer updated: Appendix A: KMS Client Setup Keys.
For the Administrator account integrated into Windows (but which is disabled by default), you can set a password for it.
You can also choose to automatically log in as administrator one or more times by checking the "Automatically logon as Administrator" box and defining the number of times you should be automatically logged in as administrator.
Select your time zone, then click Next.
Allows you to execute commands (ref: sysprep Run Once) at the first connection of a user.
If you need administrator rights for these commands, remember to check the "Automatically logon as Administrator" box in step 5 of this wizard.
Note: the easiest way is to create a batch file (.bat) and add it here. So you can launch whatever you want with the desired settings without any problem.
For the network, you can:
In our case, our virtual machines will obtain an IP address automatically from our router's DHCP server.
Then, you can choose if your virtual machine should be located:
If you want your virtual machine to be automatically linked to your Active Directory domain, you will need to specify:
At the end of the wizard, a summary will be displayed with:
The created Windows customization specification appears in the list.
Source : Create a Customization Specification for Windows in the vSphere Web Client.
Now, we will create another VM customization specification, but for Linux.
To do this, click on: New.
For Linux, specify:
Note that the 2 options regarding SysPrep and Security Identity (SID) are grayed out, as these relate to features only available on Windows.
For the computer name (in the guest operating system), you will have the choice between:
For the time zone, you will need to select your zone.
For example: US for United States.
Next, select the city where you live.
For example: Alaska, Arizona, ...
Note : New York is in the "America" zone.
For network settings, you can choose to:
For DNS settings, you can specify:
Once you have added the desired DNS search paths, click Next.
A summary is displayed with:
The new customization specification for Linux appears in the list of customization specifications for the VM.
VMware 12/30/2022
VMware 9/19/2024
VMware 5/8/2024
VMware 6/5/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment