- How to use vRealize Log Insight to retrieve logs from your Windows and Linux servers - Fri, Jul 23 2021
- Analyze basic log output from VMware vSphere 7 products - Wed, Jul 21 2021
- Analyze drmdump files with VMware DRS Dump Insight - Fri, Jul 9 2021
VM customization specification is a workflow wizard allowing you to prepare an answer file to use during the cloning process. You can customize Windows or Linux VMs. Customization of Linux guest operating systems requires installation of Perl.
Customizing guest operating systems lets you prevent conflicts that might happen if you were to deploy VMs with identical settings, for example, conflicts due to duplicate computer names. You can apply customization as part of VM deployment or later on.
To create our new customization specification, we navigate to Policies and Profiles in the vCenter Web Client or Flash client.
Since vSphere 6.7 U1, I've only used the vSphere HTML 5 Web Client because there is feature parity, which means they've now implemented all features that were missing in the past.
From the Menu, go to Policies and Profiles and click the New button to add a new customization specification.
Then a new wizard will start allowing you to choose some details and enter a description. You also can choose between Linux or Windows.
And then after filling in the registration information, in the next step, you'll have several choices, such as specifying a computer name or entering a VM name during the clone/deploy wizard. You can also hardcode a name you want the machine to take.
All of this workflow is basically a virtual machine personalization, executed after the clone.
It is not necessary to go through all of these screens. As you might imagine, it'll ask you about the time zone, network settings, whether you want to join a Microsoft domain, and whether you have any scripts you want to run after configuring the VM.
After applying all the settings, you can attach the VM to a Microsoft domain, reboot it, and have it ready for your clients to consume.
So basically, you can use VM customization specifications in two ways:
When cloning an existing VM: Again, you need to create a VM customization specification; then you can use this specification to clone and personalize the guest OS.
When personalizing an OS of a VM deployed from a template: A template is not a VM. This special object serves as model, and you can only use it to deploy new VMs.
When you deploy a VM from a template, you can customize the guest operating system after the deployment task is complete.
You can also customize any data center VM simply (depending on whether it's Windows or Linux) with the following workflow:
Right-click a VM in the vSphere inventory and select Guest OS > Customize Guest OS, which will open a wizard. Apply a customization specification to the VM.
Clone a VMware VM with a customization guest OS with just a few clicks ^
So finally, once we've created the customization specification, we can clone and automatically customize a VM with a few clicks.
Select any VM and go to Clone to Virtual Machine.
A new wizard will start, asking you to specify a name for your new VM.
Then pick a data store in which to store this VM.
And here you have the "Customize the Guest OS" option you must check to launch an overlay window that will bring up the guest OS specification list.
And the window looks like this—an overlay window presenting you with the list of different specifications you prepared at the beginning of the post.
The idea is to create a general template from which you can clone a new VM and apply the customization you want. This is because once you execute the specification on a particular data center VM, it will customize the VM, attach it to a domain, and apply all the customizations.
There is no way back—unless you revert these steps manually.
Final words ^
It's a very simple way to create an answer file for Sysprep to use to customize a deployed VM from templates or for cloning or deploying templates from the content library.
The customization specification created is listed in the customization specification manager.
You can use the specification to customize a VM guest OS. You can create any number of VM customization specifications, and it will add all of those to the list.
Subscribe to 4sysops newsletter!
Being able to have templates to clone and personalize according to your company's needs is a really convenient and fast way to provision new VMs.