Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-03 Thread Bekir Dogan
Hi; On Sat, Mar 3, 2012 at 16:31, Serge Hallyn wrote: [...] > No, no.  As soon as 0.8.0 comes out, I need to produce a reasonable > debdiff from debian->ubuntu and propose it for merge into debian. > Please don't put the onus on Daniel right now, it's my fault. I've talked with Daniel about impl

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-03 Thread Serge Hallyn
Quoting Bekir Dogan (beki...@gmail.com): > Hi; > > On Fri, Mar 2, 2012 at 19:27, Serge Hallyn wrote: > [...] > > Right now in ubuntu precise, it's > > > >    lxc-create -t ubuntu -n p1 > >    lxc-start -n p1 > [...] > > If you want to deploy a bunch of cloned images, you can > > > >    lxc-create

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-03 Thread Bekir Dogan
Hi; On Fri, Mar 2, 2012 at 19:27, Serge Hallyn wrote: [...] > Right now in ubuntu precise, it's > >    lxc-create -t ubuntu -n p1 >    lxc-start -n p1 [...] > If you want to deploy a bunch of cloned images, you can > >    lxc-create -t ubuntu -n plain -B lvm >    < customize /dev/lxc/plain image

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Serge Hallyn
Quoting Bekir Dogan (beki...@gmail.com): > Hi Daniel, > > On Thu, Mar 1, 2012 at 23:20, Daniel Lezcano wrote: > > [...] > > With the 0.8.0 version, you will be able to setup the gateway directly > > from the configuration file. > > Can we see project plans or a todo list or something like these

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Bekir Dogan
Hi Daniel, On Thu, Mar 1, 2012 at 23:20, Daniel Lezcano wrote: > [...] > With the 0.8.0 version, you will be able to setup the gateway directly > from the configuration file. Can we see project plans or a todo list or something like these which gives us about the future features should come in n

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Serge Hallyn
Quoting Daniel Lezcano (daniel.lezc...@free.fr): > On 03/02/2012 11:18 AM, Arun M wrote: > > > > > >>With the 0.8.0 version, you will be able to setup the gateway directly > >>from the configuration file. > > > >Cool. I wanted to try this so tested with the latest code from repository. > > > >Howev

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Daniel Lezcano
On 03/02/2012 11:18 AM, Arun M wrote: > > >> With the 0.8.0 version, you will be able to setup the gateway directly >> from the configuration file. > > Cool. I wanted to try this so tested with the latest code from repository. > > However hit another issue now. > > $ lxc-execute -n alpha -f n1.conf

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Daniel Lezcano
On 03/02/2012 11:18 AM, Arun M wrote: > > >> With the 0.8.0 version, you will be able to setup the gateway directly >> from the configuration file. > > Cool. I wanted to try this so tested with the latest code from repository. > > However hit another issue now. > > $ lxc-execute -n alpha -f n1.conf

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Arun M
7:16 AM > Subject: RE: [Lxc-users] adding a default gateway inside a container as a non > root user > > My tactical work around was to inject the route add into /etc/rc.d/rc.local > in the rootfs template for my LXC containers, so when I create each > container rc.local is stage

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-02 Thread Arun M
> > With the 0.8.0 version, you will be able to setup the gateway directly > from the configuration file. Cool. I wanted to try this so tested with the latest code from repository. However hit another issue now. $ lxc-execute -n alpha -f n1.conf -l DEBUG -o log -- /bin/busybox ash lxc-exec

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-01 Thread Jäkel , Guido
Dear Arun, You may also use a DHCP environment to setup the containers network IP, routing, DNS-Servers etc. This approach will ease any changes of the network infrastructure and will help you to make your templates more generic. For that, you have the to assign a fix MAC address to the contain

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-01 Thread Schorschi
My tactical work around was to inject the route add into /etc/rc.d/rc.local in the rootfs template for my LXC containers, so when I create each container rc.local is staged, did the same with /etc/resolv.conf as well. Schorschi -Original Message- From: Arun M [mailto:arun_...@yahoo.com]

Re: [Lxc-users] adding a default gateway inside a container as a non root user

2012-03-01 Thread Daniel Lezcano
On 03/01/2012 08:32 PM, Arun M wrote: > Hi, > > I am trying to add a default gateway inside a lxc container so that the > application can talk to outside network. > > I used lxc-setcap to set capabilities and started the container as a non-root > user. > > lxc-execute -n alpha -f a.conf -- /bin/