When your Cloud Assembly 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
yumto install cloud-init on CentOs, or
apt-getto 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: When
cloud-init cleanfinishes, do not modify the virtual machine any further.
- Shut down the virtual machine and convert it to a template.