Prepare Ubuntu Image with cloud-init
This tutorial describes how to prepare a Ubuntu 12.04 LTS image using cloud-init.
Cloud-init is the de-facto multi-distribution package standard that handles early initialization of a cloud instance. For more information on cloud-init, refer here: https://cloudinit.readthedocs.org/en/latest/
IMPORTANT - The version of cloud-init specific to Ubuntu 12.04 LTS has several unresolved bugs currently, including the following:
- The static IP allocation through cloud-init fails because the cloud-init process is unable to parse the cloud metadata supplied by OpenStack.
- There are issues with network re-initialization that cause problems with networking configuration.
In this tutorial, we also offer a patch specific to the cloud-init version corresponding to 12.04 which addresses these issues.
Step 1 - Get the Prerequisites
Download Ubuntu 12.04 cloud image for your configuration. We recommend using 12.04.4.
Download the attached patch and deb file for Ubuntu 12.04 cloud-init package 0.6.3_1.15.
Step 2 - Prepare Ubuntu 12.04 Image with Cloud-init
- Boot the Ubuntu cloud image. (You might want to look at this gist: https://gist.github.com/smoser/4756561)
- Copy the attached deb file that we previously download into the instance.
- Uninstall existing version of cloud-init, and install the new package just copied.
Optional - Download Prebuilt Images
Navigate to Images > Download Prebuilt Images. Find the desired image and click Download.
Thank you for your feedback! What did you like about this article?
Thank you for your feedback! How could this article be improved?
Thank you for your feedback!