Remove cloud-init Permanently From Ubuntu

If you do a start VM using Ubuntu VM with KVM, you will get long boot times. That is because cloud-init trying to auto initialization for your cloud instance. You can remove cloud-init permanently, by following this guide

1. Disable all cloud-init service

dpkg-reconfigure cloud-init

Then, disable all data sources. By pressing “space” in box section. Then press “Tab” and press “enter” for choose OK

2. After that, uninstall the package and delete the cloud-init folder

sudo apt remove cloud-init --autoremove && sudo apt purge cloud-init* && sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/

3. Restart your VM

sudo reboot

That’s it. Now cloud-init is totally removed from your VM ^_^

Proudly powered by WordPress | Theme: Outfit Blog by Crimson Themes.