Ben,

Thank you for your input. However, this does not work for me.

$ host worker 10.0.3.1
Using domain server:
Name: 10.0.3.1
Address: 10.0.3.1#53
Aliases: 

Host worker not found: 3(NXDOMAIN)


I did notice this error when starting the container non-deamonized:

<30>udevd[136]: starting version 175
error: unexpectedly disconnected from boot status daemon



-- 
Jean Mertz


Op maandag 15 april 2013, om 23:00 heeft Ben Butler-Cole het volgende 
geschreven:

> Hi Jean
> 
> You should be able to get the container's IP address from
> 
> host worker 10.0.3.1
> 
> I use this on 12.04 and I believe that it should work for other versions.
> 
> -Ben
> 
> 
> 
> On 15 April 2013 20:56, Mertz, Jean <j...@mertz.fm (mailto:j...@mertz.fm)> 
> wrote:
> > 
> > Hello,
> > 
> > 
> > I've been trying to set up an EC2 hosted network of LXC containers to use 
> > with
> > our company's Jenkins CI infrastructure. I've been successful at creating 
> > and
> > running lxc containers, but it appears that assigning IP addresses behaves
> > radically.
> > 
> > 
> > I tested this on EC2 Ubuntu 12.04, 12.10 and 13.04. All three gave somewhat
> > equal results, meaning IP addresses aren't always assigned to the 
> > containers,
> > but they do work sometimes, so the setup seems correct.
> > 
> > 
> > Here are the steps I tried:
> > 
> > Boot up EC2 instance
> > sudo -i
> > apt-get update
> > apt-get upgrade
> > apt-get install xlc
> > Create container, I tried several ways:
> > lxc-create -n worker -t ubuntu
> > lxc-create -n worker -t ubuntu-cloud
> > lxc-create -n worker -t ubuntu-cloud -- -C
> > 
> > 
> > lxc-start -n worker -d
> > 
> > 
> > After this, I've always managed to get into the worker instance using lxc- 
> > console -n worker, however, ssh'ing has been hit-or-miss for the past 
> > several
> > days that I've worked with lxc and tried getting it to work correctly.
> > 
> > 
> > On < ubuntu 13.04 I've been using cat /var/lib/misc/dnsmasq.leases.
> > Sometimes, this gave me back the name of the container and its ip address, 
> > but
> > often times, the file stayed empty and no address was assigned. I also 
> > checked
> > ifconfig but it too gave me back no ip4 address.
> > 
> > 
> > On ubuntu 13.04 I used lxc-ls --fancy to show the ip address, but it too
> > often times only showed a dash, and no assigned ip address for a running
> > container.
> > 
> > 
> > Using ps aux | grep dns shows dnsmasq running:
> > 
> > dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces 
> > --pid-file=/var/run/lxc/dnsmasq.pid --conf-file= --listen-address 10.0.3.1 
> > --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override 
> > --except-interface=lo --interface=lxcbr0
> > 
> > I've scoured the web, but haven't found any other sources explaining this
> > situation, and given the widespread use of lxc, I can hardly believe this 
> > is a
> > known non-fixed bug.
> > 
> > 
> > I haven't set up any special networking other than the ones installed with 
> > the
> > lxc package. Any thoughts on how to solve this?
> > 
> > 
> > -- 
> > Jean Mertz
> > 
> > 
> > ------------------------------------------------------------------------------
> > Precog is a next-generation analytics platform capable of advanced
> > analytics on semi-structured data. The platform includes APIs for building
> > apps and a phenomenal toolset for data science. Developers can use
> > our toolset for easy data analysis & visualization. Get a free account!
> > http://www2.precog.com/precogplatform/slashdotnewsletter
> > _______________________________________________
> > Lxc-users mailing list
> > Lxc-users@lists.sourceforge.net (mailto:Lxc-users@lists.sourceforge.net)
> > https://lists.sourceforge.net/lists/listinfo/lxc-users
> > 
> 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to