How do I set the hostname of an instance in GCE permanently? I can set it via hostname,but after reboot it is gone again.
I tried to feed in metadata (hostname:f.q.d
An easy way to fix this is to set up a startup script with custom metadata.
Key :startup-script Value: #! /bin/bash hostname