Remove AWS Cloudinit

0
52

When we copy all data from AWS instance without excluding the cloud-init you will see errors as follows but it will continue to boot with success:

On Ubuntu 20.04, these steps worked for me to disable and remove cloud-init:

Run this command to disable:

sudo touch /etc/cloud/cloud-init.disabled

Reboot machine.

Run these commands to remove:

sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/

LEAVE A REPLY

Please enter your comment!
Please enter your name here