Skip to content

Instantly share code, notes, and snippets.

@pve84
Forked from zoilomora/README.md
Last active February 22, 2021 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pve84/abdaf256b717caab70ec974ef4b3c3da to your computer and use it in GitHub Desktop.
Save pve84/abdaf256b717caab70ec974ef4b3c3da to your computer and use it in GitHub Desktop.
How to disable cloud-init in Ubuntu

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 apt-get purge cloud-init
      sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
    
  • Restart the computer

      sudo reboot
    

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment