Ask Your Question

Revision history [back]

You can use User data scripts. The user data scripts that starts with #cloud-config is interpreted by cloud-init as cloud-config format and it cloud-init is a package that is specifically designed for configurations at boot time.

#cloud-config 
hostname: xyz

This will simply change your hostname to provided name, you need to supply this script in userdata section.

Quoted from official site:

After the server is built, if you change the server name in the API or change the host name directly, the names are not updated in the dashboard.

You can use User data scripts. The user data scripts that starts with #cloud-config is interpreted by cloud-init as cloud-config format and it cloud-init is a package that is specifically designed for configurations at boot time.

#cloud-config 
hostname: xyz

This will simply change your hostname to provided name, you need to supply this script in userdata section.

Quoted from official site:

After the server is built, if you change the server name in the API or change the host name directly, the names are not updated in the dashboard.