Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ubuntu cloud image: /etc/hosts file error

Hello everyone, i'm trying to launch an ubuntu cloud image, but i've seen that the /etc/hosts file doesn't contains my hostname. I need that the hostname is setted during the cloud-init, so not a manually configuration after starting ubuntu. Of course this problem push to the "sudo: unable to resolve host" problem. How to solve it?

I have setted in my OpenStack network the google dns in order to allow the external communication (for cloud-init phase), it could be a problem?