Created
July 10, 2015 14:04
-
-
Save yoimbert/416686b4c884fd15c425 to your computer and use it in GitHub Desktop.
hostname_ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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