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

Serge Hallyn serge.hallyn at canonical.com
Fri Nov 16 14:26:17 UTC 2012


Quoting Rintcius Blok (rintcius at gmail.com):
> 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?

Hm, I don't get this, either on 12.04 or 12.10.

-serge




More information about the lxc-users mailing list