Cloud-init will reset hostname on every reboot. The hostname is stored in /var/lib/waagent/ovf-env.xml.
You could use the following command to change your hostname. sudo sed -e "s/your-old-hostname/your-new-hostname/" -i /var/lib/waagent/ovf-env.xml
Cloud-init will reset hostname on every reboot. The hostname is stored in /var/lib/ waagent/ ovf-env. xml.
You could use the following command to change your hostname. old-hostname/ your-new- hostname/ " -i /var/lib/ waagent/ ovf-env. xml
sudo sed -e "s/your-