[Lxc-users] sudo: unable to resolve host..

Rintcius Blok rintcius at gmail.com
Thu Nov 15 22:39:48 UTC 2012


Hi,

I am getting messages like this with every "sudo" I do in the container:

"sudo: unable to resolve host test.lxc"

It happens with every container I create on 12.10 (with 12.10 container).

Reproduction:

lxc-create -t ubuntu-cloud -n test.lxc -- --auth-key 
$HOME/.ssh/id_rsa.pub --userdata /root/my-userdata

with a simple userdata file like this:

#!/bin/sh
ifconfig eth0 > /ifconfig-eth0


It is easy to solve for me: just add the container name to /etc/hosts.
But I was wondering whether it would make sense to add it in a generic way?

Regards, Rintcius





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20121115/b9a070d6/attachment.html>


More information about the lxc-users mailing list