Title says it all really - I want to change the hostname of a Google Compute Engine Cent OS instance.
I have tried the normal method...
- in
/etc/sysconfig/network
setHOSTNAME=my.new.hostname
- in
/etc/hosts
set127.0.1.1 my.new.hostname
- reboot
I have tried setting a hostname
key/value pair in the Custom metadata
of the Compute Engine
VM Instance
admin page.
Nothing sticks. Seems to use the instance name as hostname.