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 serge.hal...@canonical.com 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

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 serge.hal...@canonical.com 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    

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 -l DEBUG

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 -l DEBUG

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. However hit another

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 daniel.lezc...@free.fr 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

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

2012-03-01 Thread Arun M
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/start.sh in start.sh :- #!/bin/sh route add default

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/start.sh

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