When your Automation Assembler template deploys an image based on a vSphere template, the vSphere template must be configured in advance to support cloud-init.
To configure a vSphere template to support cloud-init, take the following steps.
- On the virtual machine that will become the template, install cloud-init.
For example, use
yum
to install cloud-init on CentOs, orapt-get
to install on Ubuntu. - Set the CD-ROM of the virtual machine to passthrough mode.
- From the guest operating system command line, run
cloud-init clean
.Note: Whencloud-init clean
finishes, do not modify the virtual machine any further. - Shut down the virtual machine and convert it to a template.