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 and

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

2011-01-10 Thread Daniel Lezcano
- commit 429a84f4ab9eb0e5b85b9fe94336c56746279b28 Author: Daniel Lezcano daniel.lezc...@free.fr 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 Lezcano dlezc...@fr.ibm.com commit

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 does

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

2011-01-17 Thread Daniel Lezcano
boolean operator was being used to test the IFF_UP flag. Signed-off-by: David Ward david.w...@ll.mit.edu Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 6e35af2e3911b5e8dc6e9091391beb8adfe449c6 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Jan 17 10:18:50 2011 +0100

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 Warddavid.w...@ll.mit.edu --- Applied. Thanks for the fix ! -- Daniel

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

2011-01-18 Thread Daniel Lezcano
: b3a222e52e4d4be77cc4520a57af1a4a0d8222d1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/lxc-checkconfig.in |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- lxc

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

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

2011-01-23 Thread Daniel Lezcano
434d90db57e3d94609b48e2bc3c1e56eac3a Author: Daniel Lezcano daniel.lezc...@free.fr 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

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

2011-01-27 Thread Daniel Lezcano
; } exit 0; end script respawn exec /sbin/getty -8 38400 /dev/console === Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_start.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

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

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

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

2011-02-01 Thread Daniel Lezcano
829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano daniel.lezc...@free.fr 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: Daniel Lezcano dlezc...@fr.ibm.com

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

2011-02-01 Thread Daniel Lezcano
- commit 829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano daniel.lezc...@free.fr 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

Re: [lxc-devel] Putting man pages on website?

2011-02-07 Thread Daniel Lezcano
On 02/07/2011 04:19 PM, Rob Landley wrote: Does the makefile's man page generation stuff do html files? Because if so I'd like put them on the web page, it's some of the best documentation on the thing and people trying to learn about containers can't find it via google... Yep, you can use

Re: [lxc-devel] Kernel Samepage Merging

2011-02-07 Thread Daniel Lezcano
On 02/07/2011 08:19 PM, richard -rw- weinberger wrote: Hi, Can KSM (http://lwn.net/Articles/306704/) help LXC? I guess there are a lot of identical pages when logs of containers are running. Yes, absolutely. As it is very CPU consuming that should be optional. I looked at it last year but I

Re: [lxc-devel] Socket creation in namespace

2011-02-09 Thread Daniel Lezcano
On 02/09/2011 01:07 PM, Maheswara Reddy C - ERS, HCL Tech wrote: Hi, How can we create a socket in the specific namespace. It is not obvious today. You will need to create several processes, each of them with their own network namespace and via an af_unix socket ask for a socket creation.

Re: [lxc-devel] lxc on android?

2011-02-11 Thread Daniel Lezcano
On 02/11/2011 10:55 AM, Ludovic Guégan wrote: Hi Lezcano! I am glad to here from you! Android SDK comes with a modified qemu inside which android runs: http://developer.android.com/guide/developing/tools/emulator.html Here you can find how to rebuild the kernel for the emulator (a little

Re: [lxc-devel] [PATCH] fix broadcast compution

2011-02-13 Thread Daniel Lezcano
On 02/12/2011 04:17 PM, David Ward wrote: Daniel, On 02/06/2010 03:29 PM, Daniel Lezcano wrote: diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 4d81ac6..7c72752 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -423,9 +423,8 @@ static int config_network_ipv4(const char

Re: [lxc-devel] lxc on android?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 01:34 AM, Trent W. Buck wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 02/11/2011 06:21 AM, Ludovic Guégan wrote: Hi all, First, thanks! I am looking for a way to have a lxc container running inside an Android device. So far my goal is to isolate a process as a

Re: [lxc-devel] Putting man pages on website?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 08:27 AM, Rob Landley wrote: On 02/14/2011 06:24 PM, Trent W. Buck wrote: Sorry about the previous post. I'm awake now. If I remove the .in from common_options.sgml.in and see_also.sgml.in, and change lxc-console.sgml.in's prelude to ?xml version='1.0' encoding='UTF-8'?

Re: [lxc-devel] Putting man pages on website?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 03:37 PM, Rob Landley wrote: On 02/15/2011 04:29 AM, Daniel Lezcano wrote: PS: the extension ought to be .xml, not .sgml, and I recommend you switch from Emacs' sgml-mode to nxml-mode, which is the default for .xml files in recent GNU Emacs releases. I'd rather not get any emacs

Re: [lxc-devel] Updating the web page?

2011-02-21 Thread Daniel Lezcano
On 02/21/2011 11:08 AM, Daniel Lezcano wrote: On 02/17/2011 02:49 AM, Rob Landley wrote: I want to collate the kernel namespaces documentation, man pages, and add some cgroup docs under a documentation page. This involves changing the Pages link on the left (to which somebody added a link

Re: [lxc-devel] do pid1 and pid2 run in the same network namespace

2011-02-22 Thread Daniel Lezcano
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote: Then it is quite easy. You just have to fork ten times the routine in the program I gave you in the previous email. Hi Daniel, But I want to run two different (fork() run same copy) process/threads in each namespace, that's

Re: [lxc-devel] Anybody used FUSE in a container?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:24 AM, Rob Landley wrote: After investigating I don't see any reason sshfs shouldn't work just fine in a container out of the box (all the network stuff happens in userspace), but I can't create the FUSE dev node from within the container because mknod doesn't work from the

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:22 AM, Rob Landley wrote: It looks like clone flags aren't the only way to create a new namespace, any existing process can move to a new namespace via unshare(2). This sounds like you could fairly easily make a super_chroot() function that does most of the container stuff.

[lxc-devel] lxc-0.7.4 released

2011-02-26 Thread Daniel Lezcano
when calling locale-gen. Daniel Lezcano (29): remove duplicate cgroup header Remove unused nscgroup field Change nscgroup interface encapsulate the ns_cgroup Move common code to lxc_cgroup_create use clone_children cgroup's flag Duplicate lxc-debian

Re: [lxc-devel] lxc final thesis

2011-03-02 Thread Daniel Lezcano
On 02/28/2011 11:20 AM, Farcasi Ana-Maria wrote: Hi, Indeed, we were refering to the network bandwidth limitation. Sorry for the confusion. We have already done some tests with this limitation using tc and cgroups and we have reached the conclusion that the classification is done

Re: [lxc-devel] lxc final thesis

2011-03-02 Thread Daniel Lezcano
On 02/28/2011 11:20 AM, Farcasi Ana-Maria wrote: Hi, Indeed, we were refering to the network bandwidth limitation. Sorry for the confusion. We have already done some tests with this limitation using tc and cgroups and we have reached the conclusion that the classification is done

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

2011-03-06 Thread Daniel Lezcano
- commit d472214b8342a0b705ed40e358cf9caff427042a Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:08:47 2011 +0100 rename physical device to the original name Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.1, created. 525ff3a55575dd376f95f6d54b3521e481f1e3d7

2011-03-06 Thread Daniel Lezcano
- commit 525ff3a55575dd376f95f6d54b3521e481f1e3d7 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:13:18 2011 +0100 lxc-0.7.4.1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit b693b38534f9046fcb3872033d953eb20c67e358

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.X, created. 525ff3a55575dd376f95f6d54b3521e481f1e3d7

2011-03-07 Thread Daniel Lezcano
- commit 525ff3a55575dd376f95f6d54b3521e481f1e3d7 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:13:18 2011 +0100 lxc-0.7.4.1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit b693b38534f9046fcb3872033d953eb20c67e358

Re: [lxc-devel] lxc_veth_create() fails

2011-03-10 Thread Daniel Lezcano
On 03/10/2011 10:45 PM, richard -rw- weinberger wrote: hi! i'm trying to use lxc 0.7.4 on centos 5.5 (kernel 2.6.37.3). lxc-start fails when i configure a network. e.g: lxc-start: failed to create vethivvZMG-vethGjB0lG : Operation not supported lxc-start: failed to create netdev

Re: [lxc-devel] Hot-add network devices in LXC

2011-03-10 Thread Daniel Lezcano
On 03/11/2011 02:00 AM, Carlos N. A. Corrêa wrote: Hi, people. I'm trying to implement a mechanism to permit the addition of a new network device to a container on-the-fly. That would be useful to me in some complex virtual networking scenarios, where a container need to connect to a

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Daniel Lezcano
On 03/11/2011 08:47 PM, richard -rw- weinberger wrote: hi, i'm using this minimal config: lxc.utsname = c0 lxc.mount.entry = none /lxc/c0/proc proc defaults 0 0 lxc.rootfs = /lxc/c0/ but lxc does not mount proc into /lxc/c0/proc. using lxc.mount = /path/to/fstab also does not work. it's

[lxc-devel] [GIT] lxc branch, master, updated. 071a2b8cc9e2f219b7b20378dc0fafded0333176

2011-03-14 Thread Daniel Lezcano
071a2b8cc9e2f219b7b20378dc0fafded0333176 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Mar 14 21:47:15 2011 +0100 fix mount path Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/conf.c |2 +- 1 files changed

Re: [lxc-devel] lxc final thesis

2011-03-19 Thread Daniel Lezcano
On 03/18/2011 06:40 PM, Farcasi Ana-Maria wrote: Hello, As mentioned in our previous email, we were having issues getting bandwidth limitation working on cgroup ( with net_cls ) and tc. We've been running various tests and scenarios but found no way to enable proper limitation. Throughout

Re: [lxc-devel] [PATCH 1/5] lxc_unshare: edit help output

2011-03-22 Thread Daniel Lezcano
On 03/19/2011 04:09 PM, Michael Santos wrote: Signed-off-by: Michael Santosmichael.san...@gmail.com --- All patches applied. Thanks -- Daniel -- Enable your software for Intel(R) Active Management Technology to

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

2011-03-22 Thread Daniel Lezcano
script to properly use $@ in place of $* Signed-off-by: Michel Normand michel@free.fr Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/lxc-ls.in |4 ++-- src/lxc/lxc

Re: [lxc-devel] [PATCH] lxc-* tools are vulnerable for arguments with spaces

2011-03-22 Thread Daniel Lezcano
On 03/15/2011 08:19 PM, Michel Normand wrote: this is related to the bug http://sourceforge.net/tracker/?func=detailaid=3113612group_id=163076atid=826303 that suggested to modify bash lxc script to properly use $@ in place of $* Signed-off-by: Michel Normandmichel@free.fr Applied, thanks

Re: [lxc-devel] lxc-simple: porcelain over lxc commands

2011-04-06 Thread Daniel Lezcano
On 04/03/2011 11:14 AM, Nigel McNie wrote: Hi List, I saw there was a call for a nice frontend over the lxc commands, and I needed one, so Martyn Smith and I have come up with lxc-simple [0]. Quoting the docs: lxc-simple wraps around the low-level commands for controlling linux containers,

[lxc-devel] [GIT] lxc branch, master, updated. 25df6b78d2d013ee12e63ca80db3e572d89dcd6c

2011-04-06 Thread Daniel Lezcano
as lxc_log_init() hasn't been called. This prevents errors from even being printed on stderr in lxc_caps_init() for example. Let's make stderr the default appender. Signed-off-by: Greg Kurz gk...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] lxc-simple: porcelain over lxc commands

2011-04-18 Thread Daniel Lezcano
On 04/07/2011 12:29 AM, Nigel McNie wrote: On 6 April 2011 23:01, Daniel Lezcanodaniel.lezc...@free.fr wrote: On 04/03/2011 11:14 AM, Nigel McNie wrote: Hi List, snip Nigel, Thanks a lot, that's a great work and it is exactly what I was hoping someone will do. I will be happy to take

Re: [lxc-devel] Bug#620921: Detecting a non-root container

2011-04-18 Thread Daniel Lezcano
On 04/12/2011 04:14 PM, Marco d'Itri wrote: On Apr 12, Daniel Lezcanodaniel.lezc...@free.fr wrote: At the first glance udev events are supported in the container. But for the sake of optimization, I recommend to not use it as it will trigger the events in all the containers. This looks

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

2011-05-05 Thread Daniel Lezcano
- commit dfafa5a51397b4d3ced980ca80340f383701f823 Author: Cedric Le Goater legoa...@free.fr Date: Thu May 5 12:07:51 2011 +0200 lxc-execute: document the '--' option Signed-off-by: Cedric Le Goater c...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

Re: [lxc-devel] [PATCH] traffic control setup

2011-05-20 Thread Daniel Lezcano
On 05/07/2011 01:30 PM, Farcasi Ana-Maria wrote: Hello, This commit adds traffic control support (download and upload limit rate) for lxc containers. At the moment, the changes apply just for veth devices. In order to do this, we have attached a new structure (lxc_traffic_control) to struct

[lxc-devel] [GIT] lxc branch, master, updated. 820339bd965d6ca4c0dc11b783d689a3efc0cc68

2011-05-20 Thread Daniel Lezcano
files is to be distributed in the lxc tarball. This breaks the lxc-attach command because the file is not automatically generated at compile time. Signed-off-by: Cedric Le Goater c...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

[lxc-devel] [GIT] lxc branch, master, updated. 77890c6d6b198b68808a7ec3d0c4f0dbe87c0374

2011-05-23 Thread Daniel Lezcano
sven.wege...@stealer.net Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 88d413d5b6d1c2a3afcc7e3fcc0c037730c0abbe Author: Sven Wegener sven.wege...@stealer.net Date: Mon May 23 23:12:24 2011 +0200 Add relatime and strictatime mount options Also add #ifndef for compability

Re: [lxc-devel] [PATCH] Add relatime and strictatime mount options

2011-05-23 Thread Daniel Lezcano
On 05/21/2011 08:35 PM, Sven Wegener wrote: Also add #ifndef for compability with glibc before 2.12. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied Thanks. -- What Every C/C++ and Fortran developer Should

Re: [lxc-devel] [PATCH] Check for existing ptmx symlink

2011-05-23 Thread Daniel Lezcano
On 05/21/2011 08:35 PM, Sven Wegener wrote: It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied. Thanks Sven. -- What Every C/C++ and Fortran

Re: [lxc-devel] [PATCH 0/2] Template update for Oneiric and armel

2011-05-26 Thread Daniel Lezcano
On 05/24/2011 08:19 PM, Stéphane Graber wrote: Some small template changes to add Oneiric and fix armel support. Stéphane Graber (2): Convert all Debian (and derivative) templates from using 'arch' to using 'dpkg --print-architecture' as debootstrap does Add initial oneiric

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.X, updated. 57d6d6718dab8913039cb5fba74771e36cdeb5df

2011-05-27 Thread Daniel Lezcano
57d6d6718dab8913039cb5fba74771e36cdeb5df Author: Sven Wegener sven.wege...@stealer.net Date: Mon May 23 23:12:24 2011 +0200 Check for existing ptmx symlink It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink. Signed-off-by: Sven Wegener sven.wege...@stealer.net Signed-off-by: Daniel Lezcano dlezc

Re: [lxc-devel] [PATCH] Check for existing ptmx symlink

2011-05-27 Thread Daniel Lezcano
On 05/27/2011 09:44 AM, Cedric Le Goater wrote: On 05/23/2011 11:22 PM, Daniel Lezcano wrote: On 05/21/2011 08:35 PM, Sven Wegener wrote: It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied. That would be a nice thing

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

2011-06-02 Thread Daniel Lezcano
9ccb2dbcd2c437ca8cc867814ba0412a3fe55420 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Jun 2 09:50:38 2011 +0200 set close-on-exec flag on command socket When we accept a connection, we have to set the close-on-exec flag, otherwise that won't be possible to reboot a container through a lxc-console

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.X, updated. 967b34569424d2ec7ae7f27e64b1ad9bb2ea124b

2011-06-02 Thread Daniel Lezcano
967b34569424d2ec7ae7f27e64b1ad9bb2ea124b Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Jun 2 09:50:38 2011 +0200 set close-on-exec flag on command socket When we accept a connection, we have to set the close-on-exec flag, otherwise that won't be possible to reboot a container through a lxc-console

Re: [lxc-devel] PHYS support in 2.6.34?

2011-06-02 Thread Daniel Lezcano
On 06/01/2011 10:28 PM, Moffatt, Greg wrote: Hi I understand that full support for physical networking devices in a container isn't fully implemented until 2.6.35. How large are the changes that enabled this? I need to have something like this in a 2.6.34 kernel and I'm trying to scope out

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

2011-06-23 Thread Daniel Lezcano
-create -t ubuntu -f /etc/lxc.conf -n u1 -- -x and have -x passed to the template Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit be8b5972427bf6d5f83c94b5e50a30cdeba2543a Author: Serge E. Hallyn se...@hallyn.com Date

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.X, updated. ebdedce2f6df18b8ecbdc2c67977240aa42f7af8

2011-06-25 Thread Daniel Lezcano
ebdedce2f6df18b8ecbdc2c67977240aa42f7af8 Author: Serge Hallyn serge.hal...@ubuntu.com Date: Sat Jun 25 15:17:47 2011 +0200 print netdev name, not link, after moving dev into netns Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

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

2011-06-25 Thread Daniel Lezcano
: Sat Jun 25 15:17:47 2011 +0200 print netdev name, not link, after moving dev into netns Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 7c3ab01ffd3f59786fef85a5cbb1718659630f4d Author: Serge Hallyn serge.hal

Re: [lxc-devel] PATCH: openSUSE template for LXC

2011-06-25 Thread Daniel Lezcano
On 06/24/2011 05:28 PM, Frederic Crozat wrote: Hi all, attached patch is a openSUSE 11.4 template for LXC. The good news is, starting with next openSUSE release (and next SLES 11 Service Pack), patching /etc/init.d/boot won't be needed anymore for LXC, we integrated detection of LXC

Re: [lxc-devel] PATCH: openSUSE template for LXC

2011-06-27 Thread Daniel Lezcano
On 06/27/2011 10:03 AM, Frederic Crozat wrote: Le samedi 25 juin 2011 à 23:25 +0200, Daniel Lezcano a écrit : On 06/24/2011 05:28 PM, Frederic Crozat wrote: Hi all, attached patch is a openSUSE 11.4 template for LXC. The good news is, starting with next openSUSE release (and next SLES 11

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

2011-07-03 Thread Daniel Lezcano
it's done under the root of each fs. We may want to put that under lxc, or, better yet, make that configurable. Changelog: Michael H. Warfield: Handle the case where subsystem doesn't have '.'. Daniel Lezcano: clean up incorrect reentrant use of mntent helpers v3

[lxc-devel] [GIT] lxc branch, master, updated. 623f98d8cc0ae38cce244b355a804a7e8e607bc3

2011-07-24 Thread Daniel Lezcano
/dev/fuse to be used in a container As people seem to want it, i.e. https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/800886 Signed-off-by: Serge Hallyn serge.hal...@canonical.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] Reg: Using an ISO image as rootfs for a LXC

2011-07-25 Thread Daniel Lezcano
On 07/25/2011 08:17 PM, Alphonse Hansel Anthony wrote: Hi, I am trying to start a LXC, with a ISO image as the rootfs. the excerpt of the mount options that I use in lxc.conf lxc.rootfs = rootfs.iso lxc.rootfs.mount = /lxc/rootfs The error that I get while I start the LXC -

Re: [lxc-devel] Reg: Using an ISO image as rootfs for a LXC

2011-07-25 Thread Daniel Lezcano
. -Alphonse On Mon, Jul 25, 2011 at 4:04 PM, Daniel Lezcano daniel.lezc...@free.frwrote: On 07/25/2011 08:17 PM, Alphonse Hansel Anthony wrote: Hi, I am trying to start a LXC, with a ISO image as the rootfs. the excerpt of the mount options that I use in lxc.conf lxc.rootfs = rootfs.iso

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

2011-07-27 Thread Daniel Lezcano
, to user's groups in the container. Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: templates/lxc-ubuntu.in |3 --- 1 files changed

Re: [lxc-devel] issue with inotify and cgroups

2011-07-28 Thread Daniel Lezcano
On 07/28/2011 12:03 PM, Lou-adrien Fabre wrote: Hi, I'm currently trying to monitor my container's stats from my host, using the cgroup file (especialy cpuacct.usage_percpu), but the problem is that the refresh rate of the cgroup file seems to be quit unstable. So i need to watch for file

[lxc-devel] [PATCH] lxc-checkconfig takes into account cgroup.clone_children

2011-08-09 Thread Daniel Lezcano
Take into account we may have the clone_children flag on the cgroup, so we ignore cgroup namespace in this case. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc-checkconfig.in | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] [ ... ] +if (cmd == LINUX_REBOOT_CMD_RESTART2) +if (strncpy_from_user(buffer[0], arg, sizeof(buffer) - 1) 0) +return

Re: [lxc-devel] PATCH: lxc-ps: blkio instead of ns in /proc/*/cgroup

2011-08-10 Thread Daniel Lezcano
On 08/07/2011 03:33 AM, Yamamoto - Joe's Web Hosting wrote: Hi In Linux kernel 3.0.0, lxc-ps does not show any container names. I think it's due to the following change: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6-stable.git;a=commit;h=1bdcd78e2445f1ef7097a3ae7ef12e8f9c4fb05f

[lxc-devel] [GIT] lxc branch, master, updated. 5d42011acbf64b3c942dd4e2f2557a172410fbeb

2011-08-11 Thread Daniel Lezcano
other notification email; so we list those revisions in full, below. - Log - commit 5d42011acbf64b3c942dd4e2f2557a172410fbeb Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Aug 11 17:19:56 2011 +0200 add container init pid

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

2011-08-11 Thread Daniel Lezcano
- commit c797dcc3d06762859ca07075c607e852fe02d18f Author: Daniel Lezcano daniel.lezc...@free.fr Date: Thu Aug 11 17:54:57 2011 +0200 lxc-ps : update the man page for passing the options Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] [ ... ] +if (cmd

[lxc-devel] [GIT] lxc tag, lxc-0.7.5, created. 6371febf3c7d181cb0f11209df67c35f9d7b233b

2011-08-11 Thread Daniel Lezcano
- commit 6371febf3c7d181cb0f11209df67c35f9d7b233b Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Thu Aug 11 19:00:13 2011 +0200 Version 0.7.5 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 07:04 PM, Bruno Prémont wrote: On Thu, 11 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/11/2011 06:30 PM, Bruno Prémont wrote: On Wed, 10 August 2011 Daniel Lezcano daniel.lezc...@free.fr wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: Hi Daniel, [I'm

[lxc-devel] [GIT] lxc branch, master, updated. 970ab589452637c4ae1ddb807c66be7333f8fdf6

2011-08-11 Thread Daniel Lezcano
- commit 970ab589452637c4ae1ddb807c66be7333f8fdf6 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Fri Aug 12 01:34:49 2011 +0200 make undefined personality non-fatal Just warn, do not exit fatally. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

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

2011-08-12 Thread Daniel Lezcano
e6238180c6963bcdbab42258a0f66b1d498c0e13 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Fri Aug 12 21:47:55 2011 +0200 remove minimal install for ubuntu template Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: templates

Re: [lxc-devel] Patch to automatically set a gateway inside a container

2011-08-15 Thread Daniel Lezcano
On 08/15/2011 10:58 PM, Matthijs Kooijman wrote: Hey folks, Here's a small patch series that allows setting up a gateway inside a container. Two modes are supported: Defining a static address in lxc.conf, or taking the configured address from the bridge (link) interface and using that as a

Re: [lxc-devel] touch /fastboot to rootfs before start container

2011-08-26 Thread Daniel Lezcano
On 08/16/2011 08:01 PM, Matteo Bernardini wrote: for what's worth (if useful to know), slackware uses /etc/fastboot for that purpose: could it be seen as a specific template thingie? in the template for slackware that I'm preparing, for example, I cutted out all mount/fsck from the shell init

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

2011-08-30 Thread Daniel Lezcano
Man for the gateway option. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 19a26f82145042062cb2b11292622efb3ccac37f Author: Matthijs Kooijman matth...@stdin.nl Date: Tue Aug 30 23:50:23 2011 +0200 add autodetection of the gateway address For veth and macvlan

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

2011-08-30 Thread Daniel Lezcano
ac70c6cf97c5d52d4ec4c6bfe9552c1550307966 Author: InformatiQ rha...@informatiq.org Date: Wed Aug 31 00:20:09 2011 +0200 if after freezing the container the snapshot/rsync fails, unfreeze before exiting Signed-off-by: InformatiQ rha...@informatiq.org Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com Acked

Re: [lxc-devel] [PATCH 1/3] add lxc.network.ipv[46].gateway configuration

2011-08-30 Thread Daniel Lezcano
On 08/15/2011 10:58 PM, Matthijs Kooijman wrote: This directive adds a default route to the guest at startup. syntax: lxc.network.ipv4.gateway = 10.0.0.1 lxc.network.ipv6.gateway = 2001:db8:85a3::8a2e:370:7334 Applied the patchset. Thanks !

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

2011-09-01 Thread Daniel Lezcano
f7b98d38f042c403114fd07187dfe7daed44bdda Author: InformatiQ rha...@informatiq.org Date: Thu Sep 1 22:24:30 2011 +0200 remove the check for container path as it's done in lxc-create Signed-off-by: InformatiQ rha...@informatiq.org Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [GIT] lxc branch, master, updated. 4e04d515006816bbe629657b85d97476c9de240e

2011-09-20 Thread Daniel Lezcano
to be substitued by the configure script. Cheers. Signed-off-by: Greg Kurz gk...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/lxc-create.in |1 + src/lxc/lxc

[lxc-devel] please resend patches

2011-09-21 Thread Daniel Lezcano
Hi all, my laptop was stolen yesterday. My email backup history ends to 08/09/2011. Is it possible to resend the patches please ? Thanks ! -- Daniel -- All the data continuously generated in your IT infrastructure

Re: [lxc-devel] please resend patches

2011-09-21 Thread Daniel Lezcano
On 09/21/2011 05:47 PM, Daniel Lezcano wrote: Hi all, my laptop was stolen yesterday. My email backup history ends to 08/09/2011. For English people :) September 8th Is it possible to resend the patches please ? Thanks ! -- Daniel

Re: [lxc-devel] [Lxc-users] please resend patches

2011-09-26 Thread Daniel Lezcano
On 09/21/2011 06:57 PM, John Drescher wrote: On Wed, Sep 21, 2011 at 11:53 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: On 09/21/2011 05:47 PM, Daniel Lezcano wrote: Hi all, my laptop was stolen yesterday. My email backup history ends to 08/09/2011. For English people :) September

Re: [lxc-devel] [PATCH] lxc: introduce lxc_execute()

2011-10-24 Thread Daniel Lezcano
On 10/17/2011 08:47 PM, Greg Kurz wrote: This patch allows to create application containers with liblxc.so directly. Some code cleanups on the way: - separate ops for lxc_execute() and lxc_start(): the factorisation is wrong here as we may have specific things to do if we're running an

Re: [lxc-devel] [PATCH] Don't list containers w/ active console sessions multiple times

2011-10-24 Thread Daniel Lezcano
On 09/14/2011 07:03 PM, Rainer Weikusat wrote: From: Rainer Weikusat rweiku...@mobileactivedefense.com The lxc-ls shell script uses netstat -xa to get a listing of AF_UNIX sockets it then parses in order to determine the names of presently running containers. This is wrong because it will

Re: [lxc-devel] [PATCH 1/3] lxc-fedora.in: Add missing default release variable

2011-10-28 Thread Daniel Lezcano
On 10/26/2011 04:29 PM, Tuomas Suutari wrote: The text says that 14 is default, but release=14 was not set anywhere in the script. Signed-off-by: Tuomas Suutari tuomas.suut...@gmail.com --- All patches applied. Thanks !

[lxc-devel] [GIT] lxc branch, master, updated. 5ddd950537c4f37814ac64a823ec1ab352c07b24

2011-11-10 Thread Daniel Lezcano
: Thu Nov 10 09:45:52 2011 +0100 Ubuntu template: some tweaks Allow mknod (fixing udev upgrades) and drop mac_override and mac_admin from lxc.cap.drop as apparmor has/will have support for namespaces Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] [PATCH] Ubuntu template: Allow mknod (fixing udev upgrades) and drop mac_override and mac_admin from lxc.cap.drop as apparmor has/will have support for namespaces

2011-11-10 Thread Daniel Lezcano
On 11/02/2011 08:17 PM, Stéphane Graber wrote: --- templates/lxc-ubuntu.in |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 4f44b03..2be8680 100644 --- a/templates/lxc-ubuntu.in +++

Re: [lxc-devel] application container can do the socket communication?

2011-11-18 Thread Daniel Lezcano
On 11/18/2011 09:39 AM, Greg Kurz wrote: On 11/18/2011 06:40 AM, liu...@neusoft.com wrote: hello everyone! I'm a rookie on the LXC, and i want to know wheather application container can do the socket communication with the host or not ? It depends on your kernel: you need at least 2.6.36 to

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

2011-11-18 Thread Daniel Lezcano
9c7c90377cdc655b7d853a43dd93de439a4c1677 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Fri Nov 18 16:09:47 2011 +0100 Revert lxc: use -iquote instead of -I This reverts commit a2dea4ea209a8fcf6837668bbe59f350931d1c07. --- Summary of changes: src

Re: [lxc-devel] [PATCH] Set high byte of mac addresses for host veth devices to 0xfe

2011-12-04 Thread Daniel Lezcano
On 11/16/2011 05:49 PM, Christian Seiler wrote: Hi, I've run into the same problem as was discussed in BUG #3411497 [1] and on the users mailing list [2]. To solve this, I've decided to implement the patch that was proposed on the mailing list [3]. The attached patch is against current

Re: [lxc-devel] [PATCH 1/4] lxc-init: use lxc_mainloop

2011-12-04 Thread Daniel Lezcano
On 11/08/2011 12:49 PM, Greg Kurz wrote: The goal here is to be able to multiplex several event sources in lxc-init. It will be a lot easier to add I/O driven features: for example, a rexec-like service to start extra commands in a container. Signed-off-by: Greg Kurz gk...@fr.ibm.com

Re: [lxc-devel] [PATCH] change default path for config files to /etc/lxc

2011-12-04 Thread Daniel Lezcano
On 11/30/2011 01:07 PM, Alexey Shabalin wrote: 2011/10/13 Alexey Shabalin : 2011/9/27 Greg Kurz : On Tue, 2011-09-27 at 14:10 +0200, Frederic Crozat wrote: Le vendredi 26 août 2011 à 16:00 +0400, Alexey Shabalin a écrit : 2011/8/26 Daniel Lezcano : On 08/23/2011 03:56 PM, Alexey Shabalin

Re: [lxc-devel] [PATCH] Set high byte of mac addresses for host veth devices to 0xfe

2011-12-04 Thread Daniel Lezcano
On 12/05/2011 12:11 AM, Serge Hallyn wrote: On 12/04/2011 04:28 AM, Daniel Lezcano wrote: On 11/16/2011 05:49 PM, Christian Seiler wrote: Hi, I've run into the same problem as was discussed in BUG #3411497 [1] and on the users mailing list [2]. To solve this, I've decided to implement

Re: [lxc-devel] [PATCH 1/4] lxc-init: use lxc_mainloop

2011-12-05 Thread Daniel Lezcano
On 12/05/2011 12:43 PM, Greg Kurz wrote: On Sun, 2011-12-04 at 11:33 +0100, Daniel Lezcano wrote: On 11/08/2011 12:49 PM, Greg Kurz wrote: The goal here is to be able to multiplex several event sources in lxc-init. It will be a lot easier to add I/O driven features: for example, a rexec-like

Re: [lxc-devel] setns() syscall perf issue

2012-01-26 Thread Daniel Lezcano
On 01/24/2012 09:54 PM, Dilip Daya wrote: Would you consider the the following changes to switch_task_namespaces() ?? Hi Dilip, I think you should send this patch to lkml and Cc Eric Biederman. You should have a better than this mailing list where we are focused on the userspace part of the

Re: [lxc-devel] can LXC works with ip alias?

2012-02-05 Thread Daniel Lezcano
On 01/30/2012 03:29 AM, MaoXiaoyun wrote: Hi: Recently we are planning to set up a cluster by using LXC. But one problem we facing is it would be to much MAC address. Here is the detail. We plan 1000 lXC in one physical linux server, so there will be 1000 MAC address, suppose

Re: [lxc-devel] [PATCH] Improve capability handling in LXC

2012-02-05 Thread Daniel Lezcano
On 02/01/2012 05:12 PM, Christian Seiler wrote: Hi, I've attached patches that improve capability handling in LXC. I stumbled upon the issue that I wanted to deactivate dmesg from inside containers with a fairly recent kernel. Instead of dropping CAP_SYS_ADMIN, as it was the case with

<    1   2   3   >