Change hostnames

To change a hostname, you should first login into the node using SSH and then type

sudo nano /etc/cloud/cloud.cfg

Then findpreserve_hostname: falseand change it topreserve_hostname: true

Save and exit.

Then type the following command in your terminal window

sudo nano /etc/hostname

Change the hostname toworker01, for example.

Save, exit, and reboot.

sudo reboot

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Article is closed for comments.