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

Stéphane Graber stgraber at ubuntu.com
Fri Nov 16 14:41:13 UTC 2012


On 11/16/2012 09:26 AM, Serge Hallyn wrote:
> 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

Can you attach the content of /etc/hosts and /etc/hostname in the container?


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20121116/1d50fbaf/attachment.pgp>


More information about the lxc-users mailing list