[Bug 1375252] Re: [SRU] Hostname change is not preserved across reboot on Azure Ubuntu VMs
Joe Clifford
joeclifford at gmail.com
Wed Jun 10 13:01:01 UTC 2015
On 10/06/15 13:31, Dan Watkins wrote:
> Hi Joe,
>
> On 10/06/15 10:52, Joe Clifford wrote:
>> Apologies for the tardy feedback. Many thanks to all involved,
>> gratefully and much appreciated. From my perspective, this issue is now
>> resolved.
>
> Thanks for the feedback. Great to hear that we've resolved this for you!
>
>> I've just tried this on a freshly deployed Trusty VM in Azure - a
>> change to the hostname with 'hostnamectl' is now preserved when the VM
>> is rebooted.
>>
>> I would like to point out though that, if not editing the /etc/hostname
>> file directly, the 'hostnamectl' command must be used to set the
>> hostname; using the 'hostname' command doesn't work (presumably because
>> the hostname command doesn't change /etc/hostname).
>
> As per the 'hostname' manpage:
>
> When called with one argument ..., the commands set the host name ...
> Note, that this is effective only until the next reboot. Edit
> /etc/hostname for permanent change.
>
> So that sounds like expected behaviour. :)
Indeed! It's been a long time since I read that manpage.
Thanks again.
>
>
> Thanks,
>
> Dan
>
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1375252
Title:
[SRU] Hostname change is not preserved across reboot on Azure Ubuntu
VMs
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1375252/+subscriptions
More information about the Ubuntu-server-bugs
mailing list