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





------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to