Computing: Computer Administration

Disabling cloud-init on Ubuntu Server.

cloud-init is the Ubuntu package that handles early initialization of a cloud instance. It is installed in the official Ubuntu live server images since the release of 18.04, Ubuntu Cloud Images and also in the official Ubuntu images available on EC2. Click the following link for cloud-init details in the official Ubuntu documentation.

cloud-init is only useful if you do use some cloud technology. If this is not the case, there is no reason not to get rid of the cloud-init package and the annoying notifications on every boot. There are several possibilities to do this, as explained in the Web article How to remove cloud-init from Ubuntu Server 20.04. Here the one, that worked well for me (and that continued working after I updated my server).

A safe and really easy method to get rid of cloud-init is to create a cloud-init.disabled file in the /etc/cloud directory. This may be done by the command
    sudo touch /etc/cloud/cloud-init.disabled.
All that remains to do is rebooting the server:
    init 6


If you find this text helpful, please, support me and this website by signing my guestbook.