How to make guest customization work on Ubuntu 18.04.x Live Server
search cancel

How to make guest customization work on Ubuntu 18.04.x Live Server

book

Article ID: 324763

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
Guest OS Customization fails for Ubuntu 18.04.x Live Server.

Environment

VMware vSphere ESXi 6.5

Cause

This issue occurs when:
  • There is conflict between cloud-init and VMware guest OS customization.
Customization fails because cloud-init is present in Ubuntu 18.04.x Live Server.
  • Guest customization package is cleaned after powering on customized virtual machines. This stops the customization process to complete correctly.
  • Sometimes, systemd services execution sequence on booting virtual machine causes failure.

Resolution

Currently, there is no resolution.

Workaround:
To work around this issue:
  • Use perl scripts as the customization engine
OR
  • Set cloud-init as the customization engine when customizing Ubuntu 18.04.x Live Server.

To use perl script as the customization engine:
  1. Disable cloud-init by running the command sudo touch /etc/cloud/cloud-init.disabled.
 OR
 
Remove cloud-init by running the command sudo apt-get purge cloud-init.
  1. Open the tmp.conf file under /usr/lib/tmpfiles.d/tmp.conf file.
Note: This step is not required on VMs for which the open-vm-tools version is 10.3.10 or later version.
Go to the line 11 and add the prefix # .

For example:
#D /tmp 1777 root root -

  1. If you have open-vm-tools installed, open the /lib/systemd/system/open-vm-tools.service file.
Note: This step is not required on vSphere 6.7 U3.

Add the line After=dbus.service under [Unit]

To set cloud-init as the customization engine:
  1. Add a new line with disable_vmware_customization: false in the /etc/cloud/cloud.cfg file.
  2. Remove the /var/lib/cloud/seed/nocloud-net directory.
  3. Remove the /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg file.
  4. Open the tmp.conf file under /usr/lib/tmpfiles.d/tmp.conf file.
Note: This step is not required on VM having open-vm-tools version 10.3.10 and later.

Go to the line 11 and add the prefix #.
For example: 
#D /tmp 1777 root root -