This article provides the steps of switching vSphere Guest OS Customization engine for Linux virtual machine. Specifically, Perl based customization engine is used when disabling Guest OS Customization with cloud-init, cloud-init based customization engine is used when enabling Guest OS Customization with cloud-init.
To switch vSphere Guest OS Customization engine, please follow the guidelines given below:
Prerequisites:
Steps:
disable_vmware_customization: false
For example, below configuration disables network configuration by cloud-init.
network:
config: disabled
Please comment out these 2 lines to enable network configuration by cloud-init.
#network:
#config: disabled
By now, cloud-init based customization engine will be used when customizing this Linux virtual machine.
Prerequisites:
Perl based customization engine is the default engine when cloud-init is not installed.
If cloud-init is installed, please follow below steps to make sure Perl based customization engine is used:
network:
config: disabled
By now, Perl based customization engine will be used when customizing this Linux virtual machine.
Particularly, if cloud-init user data is provided and Linux virtual machine is also customized and powered-on, cloud-init could fail to apply user data since it's terminated by rebooting triggered by Perl based customization, please upgrade VMware Tools version 12.1.5 or later to avoid such conflict, for more information, please refer How does vSphere Guest OS Customization work with cloud-init to customize a Linux VM.
Notes: