If you also get a static address, you should change 127.0.1.1 in /e/hosts to the proper address.
And you should use the full FQDN nsmr in /e/hosts as first name.
thank you for your input. I’m sure some of the readers will benefit from your comment. However, /etc/cloud/cloud.cfg does not seem to be a part of a default Ubuntu 18.04 Desktop/Server installation. From this reason /etc/cloud/cloud.cfg is not part of this guide as it not possible to cater for any possible custom configuration Ubuntu 18.04 users might have.
It’s definitely part of Ubuntu Server 18.04. I did a default install yesterday and then needed to change hostname, that’s why I ended up on this page in the first place.
thank you for your persistence. It appears that this is a recent change and I have been using “old” 18.04 server image. Downloaded and installed new Ubuntu 18.04 Server and sure enough the cloud config was there. The article will be updated shortly.
thank you again for your input. Much appreciated…!