Read more

How to remove cloud init from ubuntu

Claus-Theodor Riegg
October 12, 2016Software engineer at makandra GmbH

If you're trying to start a cloud-init based Ubuntu VM with KVM you will suffer long boot times and confusing output on the terminal. If you want to get rid of it you need to remove cloud-init.

  1. wait until the VM boots
  2. login
  3. echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
  4. sudo apt-get purge cloud-init
  5. sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/
  6. reboot

Disable only

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show snapshot

Touch the file /etc/cloud/cloud-init.disabled or use the kernel parameter cloud-init=disabled to disable cloud-init without completely removing it.

Posted by Claus-Theodor Riegg to makandra Operations (2016-10-12 21:38)