Removing cloud-init from Ubuntu 20.04

ObjectiveTo disable or remove cloud-init from your ubuntu 20.04 Server

Method 1: Disable cloud-init from file
This is the safest and the easiest method. We only need to create cloud-init.disabled file in /etc/cloud directory and reboot the system.
sudo touch /etc/cloud/cloud-init.disabled
init 6

Method 2: Remove cloud-init package and folder
This last method is not disabling cloud-init but completely removing cloud-init package from your Ubuntu Server machine.
sudo apt purge cloud-init -y
sudo rm -rf /etc/cloud && sudo rm -rf /var/lib/cloud/
init 6

 

You will see that boot time has dramatically decreased.


Revision #1
Created 5 January 2022 12:26:49 by Brian
Updated 5 January 2022 12:27:39 by Brian