[lxc-devel] [GIT] lxc branch, master, updated. 9de28746a5edd2b9ba6fbd79956891ed4692e5d5

2010-07-23 Thread Daniel Lezcano
--- commit 9de28746a5edd2b9ba6fbd79956891ed4692e5d5 Author: Michel Normand Date: Fri Jul 23 17:17:14 2010 +0200 avoid compile warning in src/lxc/console.c src/lxc/console.c:143: warning : return type defaults to ‘int’ Signed-off-by: Michel Normand Signed-off-by: Dani

Re: [lxc-devel] segfault with insufficient network config

2010-07-23 Thread Daniel Lezcano
On 07/22/2010 10:08 PM, Ferenc Wagner wrote: > Daniel Lezcano writes: > > >> On 07/22/2010 09:44 PM, Ferenc Wagner wrote: >> >> >>> # lxc-execute --name net -s lxc.network.type=phys -s lxc.network.link=eth0 >>> bash >>> lxc-execute

Re: [lxc-devel] Very slow lxc-start

2010-07-25 Thread Daniel Lezcano
On 07/25/2010 01:57 PM, Denis Rizaev wrote: > Hi guys. > In last versions of lxc lxc-start is very slow. On my system with 15 > containers it stucks for ~20 seconds before actual container launch begins. > With strace i see that it does many umounts in /mnt. > Can anyone explain what happens? >

[lxc-devel] [GIT] lxc branch, master, updated. 547467bddbe54b7812f0df0e9c18a2e1b7091036

2010-07-26 Thread Daniel Lezcano
--- commit 547467bddbe54b7812f0df0e9c18a2e1b7091036 Author: Daniel Lezcano Date: Mon Jul 26 11:01:20 2010 +0200 version 0.7.2 Signed-off-by: Daniel Lezcano --- Summary of changes: configure.ac |2 +- 1 files changed, 1 insertions(+), 1

[lxc-devel] [GIT] lxc tag, lxc-0.7.2, created. 547467bddbe54b7812f0df0e9c18a2e1b7091036

2010-07-26 Thread Daniel Lezcano
it) - Log - commit 547467bddbe54b7812f0df0e9c18a2e1b7091036 Author: Daniel Lezcano Date: Mon Jul 26 11:01:20 2010 +0200 version 0.7.2 Signed-off-by: Daniel Lezcano --- hooks/po

Re: [lxc-devel] cgroup isolation

2010-08-30 Thread Daniel Lezcano
On 08/27/2010 05:52 PM, Denis Rizaev wrote: > Hi folks. > I tried to mount cgroup fs in container and was surprised that i can see all > cgroups tree. Also i can modify limits for my container and others!! > In my opinion container should see only it's own level of cgroup, not whole > tree. > Is it

Re: [lxc-devel] Fedora 13 & lxc-debian / lxc-fedora templates

2010-09-05 Thread Daniel Lezcano
On 09/02/2010 11:43 AM, v1t03k wrote: > Hi Guys, > > I'm testing here right now some lxc template scripts. > I have here some troubles with setting up a debian instance on Fedora 13 > (2.6.34.6-47.fc13.x86_64). > > First, I can't setup a lenny system on my Fedora 13 host. I get these > errors: > >

Re: [lxc-devel] LXC-Cgroup memory controller

2010-09-07 Thread Daniel Lezcano
On 09/07/2010 05:22 PM, jorge espada wrote: > Hi Guys I wanna know if it possible to set up a memory controller for each > container..if so..how can I do? any examples? > Thanks > When you start a container, there is a cgroup created automatically where all the processes of the container will

Re: [lxc-devel] LXC-Cgroup memory controller

2010-09-07 Thread Daniel Lezcano
On 09/07/2010 08:59 PM, jorge espada wrote: > Thank you Daniel, but in order to do this I must have kernel support , > right? > dev2:~# lxc-checkconfig | grep memory > Cgroup memory controller: disabled > I think I need this property enabled > Yep, but I suggest to double check with /proc/cgro

Re: [lxc-devel] [patch -lxc] configure container architecture

2010-09-13 Thread Daniel Lezcano
On 09/13/2010 01:23 PM, Ralf Schmitt wrote: > writes: > > >> From: Daniel Lezcano >> >> When a container is installed with 32bits binaries while we are >> running on a 64bits host, inside the container we are seen as >> 64bits arch. That leads t

[lxc-devel] [GIT] lxc branch, master, updated. cccc74b5146cb1b88facef29a530c653dbe0cb90

2010-09-13 Thread Daniel Lezcano
--- commit 74b5146cb1b88facef29a530c653dbe0cb90 Author: Daniel Lezcano Date: Mon Sep 13 15:36:20 2010 +0200 configure container architecture When a container is installed with 32bits binaries while we are running on a 64bits host, inside the container we are seen as 64bits arch. That leads to some proble

Re: [lxc-devel] [patch -lxc] configure container architecture

2010-09-13 Thread Daniel Lezcano
On 09/13/2010 01:23 PM, Ralf Schmitt wrote: > writes: > >> From: Daniel Lezcano >> >> When a container is installed with 32bits binaries while we are >> running on a 64bits host, inside the container we are seen as >> 64bits arch. That leads to some problem

[lxc-devel] [GIT] lxc branch, master, updated. 1e499b11584781b2eb29afa8dcfd171e920a2937

2010-10-01 Thread Daniel Lezcano
--- commit 1e499b11584781b2eb29afa8dcfd171e920a2937 Author: Cedric Le Goater Date: Fri Oct 1 17:00:45 2010 +0200 initialize capabilities in checkpoint and restart commands Signed-off-by: Cedric Le Goater Signed-off-by: Daniel Lezcano ---

[lxc-devel] [GIT] lxc branch, master, updated. 2a7c16dc03c36473717bbaccd302856bea559740

2010-10-01 Thread Daniel Lezcano
ow. - Log - commit 2a7c16dc03c36473717bbaccd302856bea559740 Author: Daniel Lezcano Date: Fri Oct 1 17:07:03 2010 +0200 improve lxc-debian template to specify the suite The attached patch adds a variable at the top of lxc-debian to change the SUITE. Currently tes

Re: [lxc-devel] Any reason i386 architecture is missing?

2010-10-02 Thread Daniel Lezcano
On 10/02/2010 02:24 AM, Scott Bronson wrote: > I'm surprised at lxc's choice of recognized architectures: x86, i686, > x86_64, and amd64. > > Any reason for omitting i386? > > Fedora uses i386 and x86_64 > Debian/Ubuntu use i686 and amd64. > I haven't seen x86 before but it does make sense. What d

[lxc-devel] [PATCH 2/8] use the rootfs mount point for the console

2010-10-03 Thread Daniel Lezcano
The rootfs is always located in the mount point now, let's use it. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index aae52f4..7755837 100644 --- a/src/lxc/conf.c +++ b/sr

[lxc-devel] [PATCH 3/8] use the rootfs mount point for the tty's

2010-10-03 Thread Daniel Lezcano
The rootfs is always located in rootfs->mount, let's use it for the tty. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 7755837..3da522f 100644 --- a/src/lxc/conf.c +++ b

[lxc-devel] [PATCH 1/8] mount the rootfs to the mount directory first

2010-10-03 Thread Daniel Lezcano
Split the rootfs setup by mounting the rootfs to the mount point. This mount point will be used as the facto place where the rootfs is placed. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 28 +--- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a

[lxc-devel] [PATCH 5/8] Use container's proc to setup the utmp watching

2010-10-03 Thread Daniel Lezcano
The /var/run/utmp is located in: /proc//root/var/run/utmp, let's use it. Signed-off-by: Daniel Lezcano --- src/lxc/utmp.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/lxc/utmp.c b/src/lxc/utmp.c index dca9d72..e6249ce 100644

[lxc-devel] [PATCH 8/8] allow to specify a image or a device block as rootfs

2010-10-03 Thread Daniel Lezcano
This patch allows to specify an image or a block device. The image or the block device is mounted on rootfs->mount. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 223 +--- 1 files changed, 132 insertions(+), 91 deletions(-) diff --

[lxc-devel] [PATCH 6/8] Don't display an error in lxc_file_for_each_line

2010-10-03 Thread Daniel Lezcano
Don't display an error when the callback returns an error different from zero. A value greater than zero may means "stop". Let's the caller to check the error. Signed-off-by: Daniel Lezcano --- src/lxc/parse.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)

[lxc-devel] [PATCH 4/8] Initialize default mount point

2010-10-03 Thread Daniel Lezcano
Let's initialize rootfs->mount to LXCROOTFSMOUNT. The value will be overwritten by the configuration in case it is specified. That will make the code nicer, instead of the ugly rootfs->mount checks. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 27 +++--

[lxc-devel] [PATCH 7/8] add rootfs mount dir variable to pkg-config

2010-10-03 Thread Daniel Lezcano
o pkg-config, so the user can use it to build a correct path to the rootfs. Signed-off-by: Daniel Lezcano --- lxc.pc.in |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lxc.pc.in b/lxc.pc.in index cd513c0..b99354b 100644 --- a/lxc.pc.in +++ b/lxc.pc.in @@ -2,6 +2,7 @@ bind...@b

Re: [lxc-devel] Erroneous "cgroup is not mounted" when using cgconfig (libcgroup)

2010-10-04 Thread Daniel Lezcano
On 10/03/2010 05:06 PM, Ward, David - 0663 - MITLL wrote: > The 'cgconfig' tool from libcgroup (http://libcg.sourceforge.net) can be used > to mount one or more instances of the cgroup virtual filesystem, instead of > using the 'mount' command. However, cgconfig does not update /etc/mtab, > alt

Re: [lxc-devel] Commits not showing up in git?

2010-10-04 Thread Daniel Lezcano
On 10/04/2010 08:49 PM, Scott Bronson wrote: > Hi, this commit and about 8 others haven't showed up in SourceForge's git > tree. > > http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=summary > > Is there another git tree that the project is using? No, I am just waiting a bit in case there

[lxc-devel] [GIT] lxc branch, master, updated. 49d3e78dceea24fcdd09529d1c748b69e19ef63f

2010-10-05 Thread Daniel Lezcano
y have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 49d3e78dceea24fcdd09529d1c748b69e19ef63f Author: Daniel Lezcano Date: Tue Oct 5 10:28:31 2010 +0200 update the lxc.con

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 09:30 AM, Stefan Tomanek wrote: > This commit adds an lxc.network.veth.script configuration option to > specify a script to be executed after creating or configuring the pair > of veth devices. The name of the host sided device is passed as first > argument, so the script can be used

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 12:32 PM, Stefan Tomanek wrote: > Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): > >> I suggest you add a lxc.network.script section where it will be >> called from each instanciate_* > > OK, that's what an earlier version of the patch d

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 01:19 PM, Stefan Tomanek wrote: >> I suggest you add a lxc.network.script section where it will be >> called from each instanciate_* >> > I thought about that, but I think that name is to generic - it might be > useful to provide several different locations to call a script. In

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 03:06 PM, Stefan Tomanek wrote: > Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): > > >>* lxc.network.script.pre: >> >> IMO, it does not make sense because that means it is the host itself >> which should be modified, so

Re: [lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Daniel Lezcano
On 10/08/2010 01:23 PM, Stefan Tomanek wrote: > This commit adds an configuration option to specify a script to be > executed before, during and after creating or configuring the pair of > veth devices. The name of the host sided device is passed as an > argument, so the script can be used to confi

Re: [lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Daniel Lezcano
On 10/08/2010 05:13 PM, Michael Tokarev wrote: > Stefan Tomanek wrote: > >> Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): >> >> >>> Are we sure, we want to add these hooks (pre and post) ? I am not >>> against adding them, but IMO it is

Re: [lxc-devel] Question on freezer.c

2010-10-11 Thread Daniel Lezcano
On 10/11/2010 08:48 AM, richard -rw- weinberger wrote: > Hi list, > > I've a question on freezer.c. > In freeze_unfreeze() is a while(1) loop which write()s "FROZEN" or > "THAWED" until read() returns the same. > Why do we need this loop? > It looks like a hack to me. The freezer documentation sp

Re: [lxc-devel] Question on freezer.c

2010-10-11 Thread Daniel Lezcano
On 10/11/2010 09:42 AM, Daniel Lezcano wrote: > On 10/11/2010 08:48 AM, richard -rw- weinberger wrote: > >> Hi list, >> >> I've a question on freezer.c. >> In freeze_unfreeze() is a while(1) loop which write()s "FROZEN" or >> "THAWED&quo

[lxc-devel] [PATCH 2/2] use popen and redirect script output

2010-10-12 Thread Daniel Lezcano
Change the run_script function to use popen and to redirect the output of the script to the log file. Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 75 +--- 1 files changed, 39 insertions(+), 36 deletions(-) diff --git a/src/lxc/conf.c

[lxc-devel] [PATCH 1/2] fix Coding Style

2010-10-12 Thread Daniel Lezcano
Fix the coding style, 80 chars lines, etc ... Fix indentation blocks if ... then ... else ... fi Signed-off-by: Daniel Lezcano --- src/lxc/conf.c | 78 1 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/lxc/conf.c b

[lxc-devel] [GIT] lxc branch, master, updated. abbfd20baa348ce1b6b26dd9c2627c5e2f500b69

2010-10-12 Thread Daniel Lezcano
ns in full, below. - Log - commit abbfd20baa348ce1b6b26dd9c2627c5e2f500b69 Author: Daniel Lezcano Date: Tue Oct 12 10:52:47 2010 +0200 use popen and redirect script output Change the run_script function to use po

[lxc-devel] [GIT] lxc branch, master, updated. b3ecde1ec3d7e7a1297d78746ef2604e00c60525

2010-10-12 Thread Daniel Lezcano
ns in full, below. - Log - commit b3ecde1ec3d7e7a1297d78746ef2604e00c60525 Author: Daniel Lezcano Date: Tue Oct 12 15:11:45 2010 +0200 Fix compilation error on fc12 The capability header makes the inclusion of the loop

Re: [lxc-devel] lxc.network.type = macvlan

2010-10-12 Thread Daniel Lezcano
On 10/12/2010 10:29 PM, jorge espada wrote: > Hi, I have a lxc container running on debian lenny (kernel 2.6.32) with the > following conf: > > lxc.network.type = macvlan > lxc.network.flags = up > lxc.network.link = vlan310 > lxc.network.name = vlan310 > lxc.network.macvlan.mode = vepa > lxc.netw

Re: [lxc-devel] lxc.network.type = macvlan

2010-10-13 Thread Daniel Lezcano
On 10/13/2010 02:42 PM, jorge espada wrote: > The error was ICMP "no route to host", but now i change the conf and > instead of vepa I used bridge...after destroy and create the containers with > the new conf, seems to be working as expected for a while, but from time to > time "the container beca

[lxc-devel] [GIT] lxc branch, master, updated. acb0e330161f9b02bd0b351e0a8cc193da4de330

2010-10-26 Thread Daniel Lezcano
red on any other notification email; so we list those revisions in full, below. - Log - commit acb0e330161f9b02bd0b351e0a8cc193da4de330 Author: Daniel Lezcano Date: Tue Oct 26 18:14:47 2010 +0200 set version to 0.7.3

[lxc-devel] [GIT] lxc tag, lxc-0.7.3, created. acb0e330161f9b02bd0b351e0a8cc193da4de330

2010-10-26 Thread Daniel Lezcano
it) - Log - commit acb0e330161f9b02bd0b351e0a8cc193da4de330 Author: Daniel Lezcano Date: Tue Oct 26 18:14:47 2010 +0200 set version to 0.7.3 Version 0.7.3 Signed-off-by: Dani

[lxc-devel] [GIT] lxc branch, master, updated. 968fbd36057db3132c68a63700e42929e5df5e2d

2010-10-30 Thread Daniel Lezcano
rt: Invalid argument - failed to mount ... errors. Signed-off-by: Sergey S. Kostyliov Signed-off-by: Daniel Lezcano --- Summary of changes: src/lxc/conf.c |5 + 1 files changed, 5 insertions(+), 0

Re: [lxc-devel] [PATCH] add support for dirsync mount option

2010-10-30 Thread Daniel Lezcano
On 10/30/2010 09:05 PM, Sergey S. Kostyliov wrote: > Add support for `dirsync' mount option. MS_DIRSYNC is on of the > mount(2) mountflags so don't send it as extra mount option to avoid: > > lxc-start: Invalid argument - failed to mount ... > > errors. > > Signed-off-by: Sergey S. Kostyliov

Re: [lxc-devel] How to make lxc

2010-11-08 Thread Daniel Lezcano
On 11/08/2010 10:48 AM, Yuji NISHIDA wrote: > Hi > > I found the following errors which I could find every version of LXC included > git one. > > gcc -DHAVE_CONFIG_H -I. -I../../src-fPIC -DPIC -I../../src -g -O2 -Wall > -MT liblxc_so-utmp.o -MD -MP -MF .deps/liblxc_so-utmp.Tpo -c -o > liblxc

Re: [lxc-devel] Fine grained resource control

2010-11-09 Thread Daniel Lezcano
On 11/08/2010 10:22 PM, Sagar Dixit wrote: > Hi, > > I am curious to know if there is fine grained resource control in LXC > containers. For ex. Can I allocate some fixed part of CPU (some %) to a > container and control this configuration while creating LXC container ? Or > can I update it dynam

Re: [lxc-devel] How to make lxc

2010-11-09 Thread Daniel Lezcano
On 11/09/2010 01:24 AM, Yuji NISHIDA wrote: > # rpm -q glibc > glibc-2.8-3.x86_64 > glibc-2.8-3.i686 > > Should that be the reason? > I need to add defines in utmp.c then it works. > > #define TFD_CLOEXEC O_CLOEXEC > #define TFD_NONBLOCK O_NONBLOCK hmm, weird. The man page says it is supported sin

Re: [lxc-devel] Fine grained resource control

2010-11-09 Thread Daniel Lezcano
On 11/09/2010 05:40 PM, Sagar Dixit wrote: > Thanks Daniel for reply. I'll go through directions of cgroup. I was just > curious to know, what happens if I spawn 2 LXC containers, and load 1 > container with lots of CPU intensive processes causing it's CPU usage to > exceed beyond some threshold wh

Re: [lxc-devel] relative paths in mounts?

2010-11-25 Thread Daniel Lezcano
On 11/23/2010 07:50 PM, Michael Tokarev wrote: > 23.11.2010 13:25, Michael Tokarev wrote: > >> Hello again. >> >> I asked this question before, but got no (satisfactory) >> answer. So here it goes again. >> >> Why not chdir into the root of container right when >> the root filesystem is (bind-)

Re: [lxc-devel] regular lxc development call?

2010-11-29 Thread Daniel Lezcano
On 11/29/2010 03:53 PM, Serge E. Hallyn wrote: > Hi, > > at UDS-N we had a session on 'fine-tuning containers'. The focus was > things we can do in the next few months to improve containers. The > meeting proeedings can be found at > https://wiki.ubuntu.com/UDSProceedings/N/CloudInfrastructure#Ma

Re: [lxc-devel] regular lxc development call?

2010-12-02 Thread Daniel Lezcano
On 11/30/2010 04:06 AM, Serge E. Hallyn wrote: > Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >> On 11/29/2010 03:53 PM, Serge E. Hallyn wrote: >> >>> Hi, >>> >>> at UDS-N we had a session on 'fine-tuning containers'. The f

Re: [lxc-devel] [Lxc-users] regular lxc development call?

2010-12-02 Thread Daniel Lezcano
On 12/02/2010 03:21 PM, Serge E. Hallyn wrote: > Quoting Daniel Lezcano (daniel.lezc...@free.fr): > >> On 11/30/2010 04:06 AM, Serge E. Hallyn wrote: >> >>> Quoting Daniel Lezcano (daniel.lezc...@free.fr): >>> Looks like we'll be starting small

Re: [lxc-devel] did the new kernel 2.6.36 support a full sysfs namespace for tun/tap device?

2010-12-07 Thread Daniel Lezcano
On 12/07/2010 11:10 AM, 贺鹏 wrote: > Hi, all: > did the new kernel 2.6.36 support a full sysfs namespace for tun/tap > device? > > I am not sure, but yes it should. sysfs per namespace is in place since 2.6.35 AFAIR. -

Re: [lxc-devel] [PATCH 1/4] Setting default suite to squeeze in debian template.

2010-12-15 Thread Daniel Lezcano
On 12/13/2010 11:15 PM, Daniel Baumann wrote: > Hi, > > please accept the following patch to set the default suite to squeeze > in debian template. Ok. I will before copy the lxc-debian script as a lxc-lenny script. Scott Bronson is working on improving the templates and he added a distro versio

[lxc-devel] [PATCH 4/6] encapsulate the ns_cgroup

2010-12-15 Thread Daniel Lezcano
Create a single API to create a cgroup which will switch to the old ns_cgroup automatically. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c | 10 ++ src/lxc/cgroup.h |4 ++-- src/lxc/lxc_unshare.c |2 +- src/lxc/start.c |4 ++-- 4 files changed, 15

[lxc-devel] [PATCH 3/6] Change nscgroup interface

2010-12-15 Thread Daniel Lezcano
Prepare the nscgroup to be converted to the clone_children changes. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c |4 ++-- src/lxc/cgroup.h |2 +- src/lxc/start.c |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index

[lxc-devel] [PATCH 2/6] Remove unused nscgroup field

2010-12-15 Thread Daniel Lezcano
This field is unused. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c |2 +- src/lxc/start.h |1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index cc57e71..96a8ecd 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -88,7

[lxc-devel] [PATCH 1/6] remove duplicate cgroup header

2010-12-15 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano --- src/lxc/start.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index b963b85..451d355 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -114,7 +114,6 @@ int signalfd(int fd, const sigset_t *mask

[lxc-devel] [PATCH 6/6] use clone_children cgroup's flag

2010-12-15 Thread Daniel Lezcano
If the ns_cgroup does not exist, we use the clone_children feature. Everytime a cgroup is created, we set this compatibility flag and we create the cgroup manually and add the child task to the cgroup. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c | 75

[lxc-devel] [PATCH 5/6] Move common code to lxc_cgroup_create

2010-12-15 Thread Daniel Lezcano
For both the ns_cgroup and the usual cgroup creation, we have to check if a previous does not exist and remove it if it is empty. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c | 82 +- 1 files changed, 38 insertions(+), 44 deletions

Re: [lxc-devel] [PATCH 1/4] Setting default suite to squeeze in debian template.

2010-12-16 Thread Daniel Lezcano
On 12/15/2010 06:36 PM, Daniel Baumann wrote: > On 12/15/2010 06:25 PM, Daniel Lezcano wrote: >> Ok. I will before copy the lxc-debian script as a lxc-lenny script. > > thanks. > >> Scott Bronson is working on improving the templates and he added a >> distro vers

Re: [lxc-devel] relative paths in mounts?

2010-12-16 Thread Daniel Lezcano
On 11/30/2010 11:39 PM, Michael Tokarev wrote: > 25.11.2010 15:53, Daniel Lezcano wrote: > >> On 11/23/2010 07:50 PM, Michael Tokarev wrote: >> >>> 23.11.2010 13:25, Michael Tokarev wrote: >>> >>> >>>> Hello again. >>

Re: [lxc-devel] Installing the man pages?

2010-12-16 Thread Daniel Lezcano
On 12/16/2010 05:19 AM, Rob Landley wrote: > Second attempt, remembering to tell this darn webmail interface _not_ to > spray HTML all over my email. (I switched it off as a global option, dunno > why it keeps ignoring that.) > > For some reason, the most recent lxc release really doesn't want t

Re: [lxc-devel] [PATCH 1/4] Setting default suite to squeeze in debian template.

2010-12-16 Thread Daniel Lezcano
On 12/16/2010 04:03 PM, Daniel Baumann wrote: > On 12/16/2010 02:56 PM, Daniel Lezcano wrote: >> Yes that makes sense. I will duplicate in order to apply your patches >> and then factor out the scripts to a minimal one. > > i've got another one for LANG where the loc

[lxc-devel] [GIT] lxc branch, master, updated. fd4f5a5688e511554ddd1f3fdbf1f05264b5b483

2010-12-17 Thread Daniel Lezcano
ow. - Log - commit fd4f5a5688e511554ddd1f3fdbf1f05264b5b483 Author: Daniel Lezcano Date: Fri Dec 17 11:43:37 2010 +0100 use clone_children cgroup's flag If the ns_cgroup does not exist, we use the clone_children feature. Everytime a cgroup is creat

Re: [lxc-devel] lxc 0.7.3 console problem

2010-12-23 Thread Daniel Lezcano
On 12/21/2010 12:28 PM, Erdem Bayer wrote: > Hi > > After an upgrade from lxc-0.7.2 to 0.7.3, I can not login to my > containers anymore. Containers boot fine, but denying and console > access: > > --- > # lxc-start -n test1 > INIT: vers

Re: [lxc-devel] Add shared subtrees to "kernel namespaces" page.

2010-12-28 Thread Daniel Lezcano
On 12/28/2010 02:49 AM, Rob Landley wrote: > One of the first containery bits that went into the vanilla kernel (in > 2.6.15) was process-local mount points (I.E. shared subtrees): > > http://lwn.net/Articles/159077/ > > But there's no mention of it on: > > http://lxc.sourceforge.net/index.

[lxc-devel] [GIT] lxc branch, master, updated. 57f61aa7504fc965b0c3dca2e1553ad535eacfd8

2010-12-28 Thread Daniel Lezcano
ow. - Log - commit 57f61aa7504fc965b0c3dca2e1553ad535eacfd8 Author: Daniel Baumann Date: Tue Dec 28 21:32:51 2010 +0100 Correcting charset argument when calling locale-gen. Signed-off-by: Daniel Lezcano commit 346645ef7435dd14a115684b95c2c29e6fcc1f07 Auth

Re: [lxc-devel] [PULL]: debian templates fixes

2010-12-28 Thread Daniel Lezcano
On 12/24/2010 10:51 AM, Daniel Baumann wrote: > Hi, > > I previously send some patches to fix the debian template in lxc. > Sorry I was in vacation. > For your convenience, I've put them in a repo on top of your current > master. Please pull from the 'progress' branch of the following repo: >

Re: [lxc-devel] How does the console work in most recent release?

2011-01-04 Thread Daniel Lezcano
On 01/04/2011 09:36 AM, Rob Landley wrote: > I'm attempting to write a simple HOWTO for setting up a container with > LXC. Unfortunately, console handling is really really brittle and the > only way I've gotten it to work is kind of unpleasant to document. > > Using lxc 0.7.3 (both in debian sid

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/05/2011 08:53 AM, Rob Landley wrote: > On 01/04/2011 06:52 AM, Daniel Lezcano wrote: >> On 01/04/2011 09:36 AM, Rob Landley wrote: >>> I'm attempting to write a simple HOWTO for setting up a container with >>> LXC. Unfortunately, console handling is really rea

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/04/2011 09:36 AM, Rob Landley wrote: > I'm attempting to write a simple HOWTO for setting up a container with > LXC. Unfortunately, console handling is really really brittle and the > only way I've gotten it to work is kind of unpleasant to document. > > Using lxc 0.7.3 (both in debian sid

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/05/2011 12:34 PM, Rob Landley wrote: > On 01/05/2011 03:37 AM, Daniel Lezcano wrote: >> On 01/05/2011 08:53 AM, Rob Landley wrote: >>> On 01/04/2011 06:52 AM, Daniel Lezcano wrote: >>>> On 01/04/2011 09:36 AM, Rob Landley wrote: >>>>> I'm a

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
Rob thanks for the howto ! I have a few comments/questions: In step 6: I guess you can change the "lxc's console bug" by specifying the correct inittab for busybox. There is a typo in the last sentence of this section: "... Repeat: you hae to run lxc-start, ..." ^^^ In step

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/05/2011 03:20 PM, Daniel Lezcano wrote: > Rob thanks for the howto ! One other comment: "... (I don't know why lxc-start ignores everything but "kill -9". I think it's another bug.) ..." Actually, lxc-start forwards the signals to the init proce

Re: [lxc-devel] How does the console work in most recent release?

2011-01-07 Thread Daniel Lezcano
On 01/07/2011 02:29 PM, Rob Landley wrote: > On 01/05/2011 05:19 AM, Daniel Lezcano wrote: >> there is a small bug when installing the template in the inittab, it should >> be: >> >> ::sysinit:/etc/init.d/rcS >> tty1::respawn:/bin/getty -L tty1 115200 v

[lxc-devel] [GIT] lxc branch, master, updated. 429a84f4ab9eb0e5b85b9fe94336c56746279b28

2011-01-10 Thread Daniel Lezcano
ow. - Log - commit 429a84f4ab9eb0e5b85b9fe94336c56746279b28 Author: Daniel Lezcano Date: Mon Jan 10 17:58:32 2011 +0100 fix cgroup directory removal Fix the name of the directory to remove. Signed-off-by: Daniel Lezcan

[lxc-devel] [GIT] lxc branch, master, updated. 03d56dffa66e1fca819d259c5b1fe4fe7da6993e

2011-01-13 Thread Daniel Lezcano
--- commit 03d56dffa66e1fca819d259c5b1fe4fe7da6993e Author: Daniel Lezcano Date: Thu Jan 13 16:25:14 2011 +0100 add missing template in Makefile Missed to add lxc-lenny to the template. Signed-off-by: Daniel Lezcano commit 0016af974df9f47a3f15a9b57e4d223451d0547c Author: Daniel Lezcano Date: Thu

Re: [lxc-devel] lxc-stop related bug in 2.6.37?

2011-01-13 Thread Daniel Lezcano
On 01/13/2011 08:30 PM, Andreas Philipp wrote: > Hi all, > > After upgrading a machine to kernel version 2.6.35.8 to 2.6.37 my system > froze each time when I issued a lxc-stop command. Unfortunately, I was > not able to get any more information out of my box due to it freezing > totally (no logs w

[lxc-devel] [GIT] lxc branch, master, updated. e46595367719fc0a5a2e4c87f434cde9b00b46e5

2011-01-13 Thread Daniel Lezcano
--- commit e46595367719fc0a5a2e4c87f434cde9b00b46e5 Author: Daniel Lezcano Date: Thu Jan 13 23:45:22 2011 +0100 fix clone_children path This line is at the wrong place ... Signed-off-by: Daniel Lezcano --- Summary of changes: src/lxc/cgrou

[lxc-devel] [GIT] lxc branch, master, updated. 91656ce587b99ae193e5de7e12ec9d9a5a78caa0

2011-01-16 Thread Daniel Lezcano
and others from container.fstab and a ssh login does not work (only ssh container bash -i gives you a shell) The cause is that conf.c does not initialize mntflags. Signed-off-by: Daniel Lezcano commit 2175f8936cc7c1e8cc451da040aa57d5dd6ad088 Author: Daniel Lezcano Date: Fri Jan 1

Re: [lxc-devel] [PATCH] Mounting of filesystems from fstab file

2011-01-16 Thread Daniel Lezcano
On 01/16/2011 07:00 PM, Joerg Gollnick wrote: > Dear all, > while setting up a container on x86_64 (archlinux host/guest) I had trouble > with mounting dev/pts and others from container.fstab and a ssh login does not > work (only ssh container bash -i gives you a shell) > The cause is that conf.c d

[lxc-devel] [GIT] lxc branch, master, updated. b0efbac48e8646ba62aca04b43acaa887ef4ec81

2011-01-17 Thread Daniel Lezcano
erator was being used to test the IFF_UP flag. Signed-off-by: David Ward Signed-off-by: Daniel Lezcano commit 6e35af2e3911b5e8dc6e9091391beb8adfe449c6 Author: Daniel Lezcano Date: Mon Jan 17 10:18:50 2011 +0100 set veth host's side always up We should always have

Re: [lxc-devel] [PATCH] Only bring up network interface if IFF_UP is set

2011-01-17 Thread Daniel Lezcano
On 01/17/2011 03:51 AM, David Ward wrote: > Each network interface was brought up regardless of the configuration, > as the wrong boolean operator was being used to test the IFF_UP flag. > > Signed-off-by: David Ward > --- Applied. Thanks for the fix ! -- Daniel -

[lxc-devel] [GIT] lxc branch, master, updated. fb4c7e28291f013ae30e21108177556fdff870d1

2011-01-18 Thread Daniel Lezcano
f1a4a0d8222d1 Signed-off-by: Daniel Lezcano --- Summary of changes: src/lxc/lxc-checkconfig.in |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) hooks/post-re

Re: [lxc-devel] [patch] Fix lxc-checkconfig for kernel >2.6.32

2011-01-18 Thread Daniel Lezcano
On 01/18/2011 01:13 AM, Reto Gantenbein wrote: > Dear developers > > I'm trying lxc on my gentoo 2.6.37 and this patch fixes a small thing > that makes people unsure [1]. Please apply it. It's against lxc git > master. > > Thanks for your effort in lxc. It's nice to see a native linux container > v

[lxc-devel] [GIT] lxc branch, master, updated. 27b39fd49dade95796fc05f1583e4a6f6fcbc598

2011-01-22 Thread Daniel Lezcano
on a kernel which supports sysfs tagging for /sys/class/net, as udev will be running in the container. The natty template needed to slightly change the installed packages for dhclient to be correclty installed. Signed-off-by: Serge Hallyn

[lxc-devel] [GIT] lxc branch, master, updated. 434d90db57e3d94609b48e2bc3c17777e56eac3a

2011-01-23 Thread Daniel Lezcano
--- commit 434d90db57e3d94609b48e2bc3c1e56eac3a Author: Daniel Lezcano Date: Sun Jan 23 21:47:12 2011 +0100 suppress udev log output We use udev within these containers and we prevent the /dev files to be created with the cgroup whitelist. So when the udevd receives the event from the kernel, it will fail

[lxc-devel] [PATCH 1/2] export env variable in lxc_start

2011-01-27 Thread Daniel Lezcano
quot;xlxc" ] && { stop; exit 0; } exit 0; end script respawn exec /sbin/getty -8 38400 /dev/console ======= Signed-off-by: Daniel Lezcano --- src/lxc/lxc_start.c |5 + 1 files changed, 5 insertio

[lxc-devel] [PATCH 2/2] Fix paths in the lxc-busybox template

2011-01-27 Thread Daniel Lezcano
t.d/rcS to use full path and adds a check for /lib64 on host before adding lib64 mount entries to config. Signed-off-by: Daniel Lezcano --- templates/lxc-busybox.in |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/lxc-busybox.in b/templates/lxc-busybo

[lxc-devel] [GIT] lxc branch, master, updated. b09ecaf30367648a246d2e01c3a288a7653cc613

2011-01-28 Thread Daniel Lezcano
ow. - Log - commit b09ecaf30367648a246d2e01c3a288a7653cc613 Author: Daniel Lezcano Date: Fri Jan 28 00:24:54 2011 +0100 Fix paths in the lxc-busybox template Author of the patch : Jonathan Liu posted as a bug fix on the lxc sourceforge website. OS: Arc

[lxc-devel] [GIT] lxc branch, master, updated. 9dd97e44141558170a4a5f39b3eda645d9cade2d

2011-02-01 Thread Daniel Lezcano
red on any other notification email; so we list those revisions in full, below. - Log - commit 9dd97e44141558170a4a5f39b3eda645d9cade2d Author: Daniel Lezcano Date: Tue Feb 1 12:55:39 2011 +0100 lxc-0.7.4-rc1 Sig

[lxc-devel] [GIT] lxc branch, master, updated. 829dd9183cbefccdf38f87463fa5c2719e774204

2011-02-01 Thread Daniel Lezcano
--- commit 829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano Date: Tue Feb 1 14:49:40 2011 +0100 lxc-start can output the console to a file Add the ability to specify a file to output the console. Signed-off-by: Dani

[lxc-devel] [GIT] lxc tag, lxc-0.7.4-rc1, created. 829dd9183cbefccdf38f87463fa5c2719e774204

2011-02-01 Thread Daniel Lezcano
it) - Log - commit 829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano Date: Tue Feb 1 14:49:40 2011 +0100 lxc-start can output the console to a file Add the ability to specify a file to output the console. Signed-off-

Re: [lxc-devel] Any ETA on the next release?

2011-02-02 Thread Daniel Lezcano
On 02/01/2011 07:17 PM, Rob Landley wrote: > Just wondering. The last news entry on lxc.sf.net was in June of last year. Yeah, any volunteer to handle the news on the website ? -- Special Offer-- Download ArcSight Logger

Re: [lxc-devel] [GIT] lxc branch, master, updated. 829dd9183cbefccdf38f87463fa5c2719e774204

2011-02-02 Thread Daniel Lezcano
On 02/01/2011 07:23 PM, Rob Landley wrote: > On 02/01/2011 07:50 AM, Daniel Lezcano wrote: >> - Log - >> commit 829dd9183cbefccdf38f87463fa5c2719e774204 >> Author: Daniel Lezcano >> Date: Tue Feb 1 14:49:4

[lxc-devel] [GIT] lxc branch, master, updated. 7b57e8b681c487030995378793febd5b35396c5f

2011-02-02 Thread Daniel Lezcano
--- commit 7b57e8b681c487030995378793febd5b35396c5f Author: Daniel Lezcano Date: Wed Feb 2 21:55:49 2011 +0100 fix empty network configuration The return statement is at the wrong place. Signed-off-by: Daniel Lezcano --- Summary of changes

Re: [lxc-devel] Any ETA on the next release?

2011-02-03 Thread Daniel Lezcano
On 02/03/2011 06:04 AM, Rob Landley wrote: > On 02/02/2011 04:53 AM, Daniel Lezcano wrote: >> On 02/01/2011 07:17 PM, Rob Landley wrote: >>> Just wondering. The last news entry on lxc.sf.net was in June of last >>> year. >> >> Yeah, any volunteer to handle t

Re: [lxc-devel] Any ETA on the next release?

2011-02-03 Thread Daniel Lezcano
On 02/03/2011 06:03 AM, Rob Landley wrote: > On 02/02/2011 02:00 AM, matthew byers wrote: >> rc1 has been released for testing. >> http://sourceforge.net/projects/lxc/files/lxc/lxc-0.7.4/lxc-0.7.4-rc1.tar.gz/download > I also note that going to > >https://sourceforge.net/projects/lxc/files/lxc/

Re: [lxc-devel] Any ETA on the next release?

2011-02-03 Thread Daniel Lezcano
On 02/03/2011 01:55 PM, matthew byers wrote: > I like the wiki idea as it gives another area where users can post various > fixes to issues or even tutorials for lxc. That seems to be the biggest > issue i have come across that people have with lxc itself...lack of > documentation. I have the websi

<    1   2   3   4   5   6   >