How to disable cloud-init in Ubuntu
Prevent start
-
Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
Uninstall
-
Disable all services (uncheck everything except "None"):
sudo dpkg-reconfigure cloud-init
-
Uninstall the package and delete the folders
sudo dpkg-reconfigure cloud-init sudo apt-get purge cloud-init sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
-
Restart the computer
sudo reboot
This instruction no longer works, the errors you will get are: dpkg-reconfigure cloud-init (must be run from root)
If you type sudo in front of that command you will get into the cloud-init but you cannot select anything
Please update the instructions