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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1375252 Title: Hostname change is not preserved across reboot on Azure Ubuntu VMs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/walinuxagent/+bug/1375252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs