Skip to content

Instantly share code, notes, and snippets.

@yoimbert
Created July 10, 2015 14:04
Show Gist options
  • Save yoimbert/416686b4c884fd15c425 to your computer and use it in GitHub Desktop.
Save yoimbert/416686b4c884fd15c425 to your computer and use it in GitHub Desktop.
hostname_ubuntu
You should be able to add the following line to the /etc/cloud/cloud.cfg near the top:
preserve_hostname: true
Then set the hostname in the /etc/hostname
The hostname should now persist after reboots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment