On 11/16/2012 09:26 AM, Serge Hallyn wrote: > Quoting Rintcius Blok (rintc...@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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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