Re: [Lxc-users] list admin

2013-05-24 Thread Daniel Lezcano
On 05/24/2013 08:31 AM, Tamas Papp wrote: On 05/24/2013 02:06 AM, Daniel Lezcano wrote: Yes, sure. Sorry, I have been more and more busy with other stuff and flooded by emails, so I did not followed the discussion closely. Can you explain in a few words what do you need ? I'd like

Re: [Lxc-users] list admin

2013-05-24 Thread Daniel Lezcano
On 05/24/2013 09:21 AM, Jäkel, Guido wrote: Ok, who wants to be co-administrator of the mailing list ? Tamas and Mike Ok, thanks. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based

Re: [Lxc-users] list admin

2013-05-23 Thread Daniel Lezcano
On 05/23/2013 11:44 PM, Tamas Papp wrote: On 05/23/2013 11:13 PM, Michael H. Warfield wrote: Last I knew, it was Daniel who created the list and most likely owns it. It was created at my suggestion to move user questions off the devel list ages and ages ago. Lately he's typically been buried

Re: [Lxc-users] Horrors using Debian Wheezy

2013-05-11 Thread Daniel Lezcano
On 05/11/2013 04:41 AM, Mason Loring Bliss wrote: Hi there! I'm trying to get LXC to work for me on Debian Wheezy/amd64 and I'm having a Hellish time. I'm following the advice on wiki.debian.org and other places, and I believe I'm creating my containers correctly, but when I launch a

Re: [Lxc-users] Need simple configuration for embedded ARM LXC

2013-04-15 Thread Daniel Lezcano
On 04/15/2013 03:26 AM, Serge Hallyn wrote: Quoting Somnath Mitra (somnath.mi...@xockets.com): On Fri, Apr 12, 2013 at 6:53 AM, Serge Hallyn serge.hal...@ubuntu.comwrote: Quoting Somnath Mitra (somnath.mi...@xockets.com): Since the container rootfs is shared with host I am confused why it

Re: [Lxc-users] [lxc-devel] [GIT] lxc branch, master, updated. 7f99e339363d9f005c9386f60a1d8c0953c85053

2012-11-04 Thread Daniel Lezcano
On 11/01/2012 09:41 PM, Michael H. Warfield wrote: On Thu, 2012-11-01 at 21:20 +0100, Daniel Baumann wrote: On 11/01/2012 09:08 PM, Michael H. Warfield wrote: I know, I KNOW this is an 11th hour request. Can we please get Serge's autodev stuff into this release? Please? release early,

Re: [Lxc-users] [lxc-devel] [GIT] lxc branch, master, updated. 7f99e339363d9f005c9386f60a1d8c0953c85053

2012-10-31 Thread Daniel Lezcano
Thanks to everyone for fixing this. I am about to release the 0.8.0 version. I will wait a couple of days before adding a tag and release it in case there are some fixes to add. Please test. Thanks ! -- Daniel On 10/31/2012 04:45 PM, Daniel Lezcano wrote: This is an automated email from

Re: [Lxc-users] [PATCH 1/1] dev_change_net_namespace: send a KOBJ_REMOVED/KOBJ_ADD

2012-10-15 Thread Daniel Lezcano
-by: Daniel Lezcano daniel.lezc...@free.fr --- net/core/dev.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index e2215ee..2c43aaf 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6172,6 +6172,9 @@ int dev_change_net_namespace(struct net_device

Re: [Lxc-users] lxc console and control-c

2012-07-23 Thread Daniel Lezcano
On 07/20/2012 07:14 PM, Stuart Yoder wrote: On Fri, Jul 20, 2012 at 11:53 AM, Stuart Yoder b08...@gmail.com wrote: After I start a container with lxc-start (no -d), ctrl-C doesn''t working for me in the container's console. In the documentation at http://lxc.teegra.net/ it says: The

Re: [Lxc-users] Alternative network protocols

2012-07-17 Thread Daniel Lezcano
On 07/17/2012 05:12 AM, Joe Stringer wrote: On 17 July 2012 13:59, Stéphane Graber stgra...@ubuntu.com wrote: On 07/16/2012 09:24 PM, Joe Stringer wrote: Hi there, I've come across an issue when trying to use SCTP with lxc, and I wonder if anyone might have some insight into what's causing

Re: [Lxc-users] Problem with pthread_create SCHED_RR - Operation not permitted

2012-07-03 Thread Daniel Lezcano
On 07/03/2012 02:29 PM, Hans Feldt wrote: Thanks for looking into it. It means some applications cannot run unmodified in a container then? Did you try by mounting the cgroup but without the 'cpu' subsystem ? -- Daniel /Hans On 07/02/12 19:08, Serge Hallyn wrote: This appears to be a

Re: [Lxc-users] kernel.shmmax in LXC

2012-06-08 Thread Daniel Lezcano
On 06/07/2012 12:45 PM, Jan Den Ouden wrote: Hi, About a week ago I posted exactly the same question on this list, but I didn't get any responses. I have googled high and low for the answer to this, but no result. It's not related to capabilities, because you can only drop capabilities, not

[Lxc-users] sched_setscheduler fails in a container (was: Re: Lxc-users Digest, Vol 29, Issue 7)

2012-05-16 Thread Daniel Lezcano
On 05/16/2012 08:58 AM, Jianbin Ma wrote: In the container,the system call sched_scheduler can't work,I enable the file capabilities.And the system call still can't work. What is your RLIMIT_RTPRIO value in the container ? Do you have CAP_SYS_NICE ? What policy are trying to set ? Thanks

Re: [Lxc-users] siproxd in LXC

2012-05-14 Thread Daniel Lezcano
On 05/14/2012 11:27 AM, Miroslav Lednicky wrote: Hello, i am trying running siproxd in LXC (ubuntu 10.04 is LXC guest and 11.10 is host). Siproxd not working and i see in syslog: rtpproxy_relay.c:150 ERROR:pthread_setschedparam failed: Operation not permitted Where can be problem?

Re: [Lxc-users] [lxc-devel] lxc-devel Mailing List for Patches

2012-05-01 Thread Daniel Lezcano
On 04/26/2012 03:58 PM, Ward, David - 0663 - MITLL wrote: It's a bit difficult for me to follow patches when they are going to two separate mailing lists. Would it be possible to limit patches to the lxc-devel list, please? I think that is the intended place for them. Yes. Please, everyone,

Re: [Lxc-users] container shutdown

2012-03-19 Thread Daniel Lezcano
On 03/19/2012 03:50 AM, Serge Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 03/19/2012 12:00 AM, Serge Hallyn wrote: Hi, Thanks to Jäkel's and Fajar's great ideas, we can now cleanly shut down a container by sending it SIGPWR. I'm attaching two ways to do that. In-line

Re: [Lxc-users] container shutdown

2012-03-19 Thread Daniel Lezcano
On 03/19/2012 02:45 AM, Fajar A. Nugraha wrote: On Mon, Mar 19, 2012 at 7:05 AM, Daniel Lezcanodaniel.lezc...@free.fr wrote: On 03/19/2012 12:00 AM, Serge Hallyn wrote: Hi, Thanks to Jäkel's and Fajar's great ideas, we can now cleanly shut down a container by sending it SIGPWR. I'm

Re: [Lxc-users] [PATCH 1/1] do check for utmp checking at the right time

2012-03-18 Thread Daniel Lezcano
On 03/12/2012 04:52 PM, Serge Hallyn wrote: We were doing the check for whether we need to watch utmp from a thread cloned from that which will actually do the utmp watching. As a result, the utmp file was always being watched, even if it didn't need to be. Move the check to the parent

Re: [Lxc-users] [PATCH] ubuntu templates cleanups

2012-03-18 Thread Daniel Lezcano
On 03/12/2012 05:21 PM, Serge Hallyn wrote: 1. fix inconsistent use of '--auth-key' (not --auth_key) which broke their usage 2. add --debug option to lxc-ubuntu (which does set -x to show what broke) (idea from Idea from lifeless and benji) 3. fix incorrect assumption about group with

Re: [Lxc-users] container shutdown

2012-03-18 Thread Daniel Lezcano
On 03/19/2012 12:00 AM, Serge Hallyn wrote: Hi, Thanks to Jäkel's and Fajar's great ideas, we can now cleanly shut down a container by sending it SIGPWR. I'm attaching two ways to do that. In-line is a patch which modifies lxc-stop to take optional -s and -t args - -s for shutdown (meaning

Re: [Lxc-users] limit number of processes

2012-03-05 Thread Daniel Lezcano
On 03/01/2012 06:49 PM, Ulli Horlacher wrote: On Tue 2011-10-18 (14:54), Papp Tamas wrote: Is it possible to limit the maximum number of processes per container? I have the same problem. A user has killed the host (and therefore all containers) with a simple shell command: :(){ :|: };:

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] limit number of processes

2012-03-01 Thread Daniel Lezcano
On 10/18/2011 02:54 PM, Papp Tamas wrote: hi! Is it possible to limit the maximum number of processes per container? Not yet but it is on the way. http://lkml.indiana.edu/hypermail/linux/kernel/1109.0/01455.html Hope the patchset will be merged soon in the kernel. -- Daniel

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] LXC and kernel 3.2..

2012-02-15 Thread Daniel Lezcano
On 02/13/2012 07:45 AM, Kristian Kirilov wrote: On 02/12/2012 09:24 PM, Kristian Kirilov wrote: Hello, im looking for lxc patch to correct LXC issues with namespaces detecting in 3... kernel. I maked some tests with LXC lxc-0.7.5.tar.gz and kernel linux-3.2.5.tar.bz2. Everything is ok but

Re: [Lxc-users] Creating stand alone container

2012-02-15 Thread Daniel Lezcano
On 02/15/2012 11:51 AM, bruce bushby wrote: Hi I've been following these two guides: https://access.redhat.com/kb/docs/DOC-67682 http://berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/ and I finally have a container running (Happy Days) I wanted to ask the list if

Re: [Lxc-users] LXC and kernel 3.2..

2012-02-12 Thread Daniel Lezcano
On 02/12/2012 09:24 PM, Kristian Kirilov wrote: Hello, im looking for lxc patch to correct LXC issues with namespaces detecting in 3... kernel. I maked some tests with LXC lxc-0.7.5.tar.gz and kernel linux-3.2.5.tar.bz2. Everything is ok but namespaces checking in lxc-checkconfig is shown

Re: [Lxc-users] sparc64-unknown-linux-gnu not supported

2012-02-01 Thread Daniel Lezcano
On 01/31/2012 04:08 PM, Denny Schierz wrote: hi, I try to get lxc compiling on a Sunfire V245, but configure fails: [...] checking for sys/signalfd.h... yes checking whether gcc needs -traditional... no checking for Linux in /lib/modules//build... not found checking for Linux in

Re: [Lxc-users] Mount /dev/shm of the host inside a container

2012-01-10 Thread Daniel Lezcano
On 01/10/2012 01:39 AM, Fred Finkelstein wrote: I finally found it with the help of the #lxcontainers irc channel. I have to replace this in lxc.fstab: /dev/shm /dev/shm bind 0 0 with this: /dev/shm /srv/shm none bind 0 0 and I can access it. Why /srv/shm ?

Re: [Lxc-users] lxc-create is output error

2012-01-03 Thread Daniel Lezcano
On 01/03/2012 04:34 AM, T.Nomura wrote: Hi My name is Mr.Nomura. I want install lxc /usr/local/lxc. So, I runed configure script below. # ./configure --prefix=/usr/local/lxc make make install Next I run lxc-create.But output below error. configuration path '/lib/lxc' not found

Re: [Lxc-users] lxc-create is output error

2012-01-03 Thread Daniel Lezcano
, Daniel Lezcano wrote: On 01/03/2012 04:34 AM, T.Nomura wrote: Hi My name is Mr.Nomura. I want install lxc /usr/local/lxc. So, I runed configure script below. # ./configure --prefix=/usr/local/lxc make make install Next I run lxc-create.But output below error. configuration path

Re: [Lxc-users] seeing a network pause when starting and stopping LXCs - how do I stop this?

2011-12-12 Thread Daniel Lezcano
have queued the patch to set an higher mac address. Thanks -- Daniel Thanks, Derek On 12/11/2011 02:21 PM, Daniel Lezcano wrote: On 12/08/2011 09:25 AM, Ulli Horlacher wrote: On Thu 2011-12-08 (07:39), Daniel Lezcano wrote: On 12/08/2011 12:38 AM, Joseph Heck wrote: I've been seeing

Re: [Lxc-users] seeing a network pause when starting and stopping LXCs - how do I stop this?

2011-12-11 Thread Daniel Lezcano
On 12/08/2011 09:25 AM, Ulli Horlacher wrote: On Thu 2011-12-08 (07:39), Daniel Lezcano wrote: On 12/08/2011 12:38 AM, Joseph Heck wrote: I've been seeing a pause in the whole networking stack when starting and stopping LXC - it seems to be somewhat intermittent, but happens reasonably

Re: [Lxc-users] seeing a network pause when starting and stopping LXCs - how do I stop this?

2011-12-07 Thread Daniel Lezcano
On 12/08/2011 12:38 AM, Joseph Heck wrote: I've been seeing a pause in the whole networking stack when starting and stopping LXC - it seems to be somewhat intermittent, but happens reasonably consistently the first time I start up the LXC. I'm using ubuntu 11.10, which is using LXC 0.7.5

Re: [Lxc-users] Fedora / CentOS

2011-12-05 Thread Daniel Lezcano
On 12/05/2011 04:58 PM, István Király - LaKing wrote: Hi folks. I wrote a guide how to get lxc running on CentOs host, with CentOS or Fedora 14 guest. http://forums.fedoraforum.org/showthread.php?t=272995 I could not get FC15/FC16 containers to work tho. I read somewhere it is because of

Re: [Lxc-users] make error of lxc-0.7.5

2011-11-10 Thread Daniel Lezcano
On 11/10/2011 03:43 AM, 张勇 wrote: Hi~: I meet a error when i make lxc-0.7.5 on ubuntu 10.04. The error info is : Maybe the docbook tools are not available on your system. You can prevent the documentation to be generated by specifying the --disable-doc option for the configure script.

Re: [Lxc-users] mknod inside a container

2011-11-04 Thread Daniel Lezcano
On 11/04/2011 03:34 PM, Gordon Henderson wrote: I have a container that's used to build a Linux image for an embedded device - and as part of the build script, it creates /dev/ via a sequence of mknod commands Which all fail )-: There are no cap.drop lines in the contianers config files

Re: [Lxc-users] mknod after instance creation?

2011-11-04 Thread Daniel Lezcano
On 11/05/2011 12:06 AM, Dong-In David Kang wrote: Hi, Is it possible to do mknod after creation of an LXC instance? I need to do mknod not only at bootup time, but also at run-time. This is needed when I want to dynamically add devices to LXC instance. Is it possible? If it is, how can

Re: [Lxc-users] lxc-stop crashes the host

2011-10-25 Thread Daniel Lezcano
On 10/25/2011 03:09 PM, Serge E. Hallyn wrote: Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): On Mon 2011-10-24 (18:56), Ulli Horlacher wrote: vms1 is an Ubuntu 10.04 based host system (4 * Xeon 64bit) with: root@vms1:/lxc# uname -a Linux vms1 2.6.38-11-server #50~lucid1-Ubuntu SMP

Re: [Lxc-users] Live Migration of LXC

2011-10-24 Thread Daniel Lezcano
On 10/24/2011 02:07 PM, Ulli Horlacher wrote: On Mon 2011-10-24 (12:03), Greg Kurz wrote: C/R and live migration is a complicated matter for LXC containers. I have assumed nothing else... No status for the moment... I guess people who really want migration should participate Not every LXC

Re: [Lxc-users] [PATCH 1/1] lxc-ubuntu: stop early if a bad user is specified in -b option

2011-10-24 Thread Daniel Lezcano
On 10/20/2011 10:16 PM, Serge E. Hallyn wrote: Otherwise we end up with a bad container fstab and a container that won't boot. See https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/879052 Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- Applied.

Re: [Lxc-users] [PATCH 1/2] Let sshd template work on ubuntu systems.

2011-10-24 Thread Daniel Lezcano
On 09/15/2011 03:11 PM, Serge E. Hallyn wrote: /dev/shm is a symlink to /run/shm, so we need /run/shm to exist in the container rootfs. Also, /dev/mqueue does not exist on the host, and can't be created by the container. But we don't really need it so ignore that. Signed-off-by: Serge

Re: [Lxc-users] [PATCH 1/1] ubuntu template: disallow cap_sys_module (by popular demand)

2011-10-24 Thread Daniel Lezcano
On 09/15/2011 03:21 PM, Serge E. Hallyn wrote: This isn't particularly reassuring, and will be moot with user namespaces, but as people are asking for it, turn off sys_module. While we're at it, turn off mac_admin and mac_override. Signed-off-by: Serge Hallyn serge.hal...@canonical.com ---

Re: [Lxc-users] [PATCH 1/1] ubuntu template: allow containers to create tap devices

2011-10-24 Thread Daniel Lezcano
On 09/15/2011 03:30 PM, Serge E. Hallyn wrote: Thought I had sent this before, but I don't find it anywhere. Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- Applied. -- The demand for IT networking

Re: [Lxc-users] [PATCH 1/1] lxc-clone: fix dhclient.conf send hostname command

2011-10-24 Thread Daniel Lezcano
On 09/15/2011 10:53 PM, Serge E. Hallyn wrote: End the command with ';', which is needed, and put the hostname in quotes (which doesn't really seem needed, but shown in man page). Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- Applied.

Re: [Lxc-users] [PATCH] Define $hostname before its first use

2011-10-24 Thread Daniel Lezcano
On 09/14/2011 10:27 PM, Serge E. Hallyn wrote: Otherwise you get 'lxc.utsname =' in config, instead of the actual hostname being filled in. https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/850205 Index: lxc/src/lxc/lxc-clone.in Hi Serge, I was not able to apply this patch, it fails with:

Re: [Lxc-users] lxc-stop crashes the host

2011-10-24 Thread Daniel Lezcano
On 10/24/2011 07:46 PM, Ulli Horlacher wrote: On Mon 2011-10-24 (12:33), Serge E. Hallyn wrote: http://fex.rus.uni-stuttgart.de/tmp/vms1-crash.png It's a pity, but this console server (HP IP console) cannot log ASCII based, it is GUI only. I can make only screenshots and cannot scroll back,

Re: [Lxc-users] lxc-stop crashes the host

2011-10-24 Thread Daniel Lezcano
On 10/24/2011 07:46 PM, Ulli Horlacher wrote: On Mon 2011-10-24 (12:33), Serge E. Hallyn wrote: http://fex.rus.uni-stuttgart.de/tmp/vms1-crash.png It's a pity, but this console server (HP IP console) cannot log ASCII based, it is GUI only. I can make only screenshots and cannot scroll back,

Re: [Lxc-users] lxc-stop crashes the host

2011-10-24 Thread Daniel Lezcano
On 10/24/2011 08:59 PM, Daniel Lezcano wrote: On 10/24/2011 07:46 PM, Ulli Horlacher wrote: On Mon 2011-10-24 (12:33), Serge E. Hallyn wrote: http://fex.rus.uni-stuttgart.de/tmp/vms1-crash.png It's a pity, but this console server (HP IP console) cannot log ASCII based, it is GUI only. I can

Re: [Lxc-users] [PATCH 1/1] Drop resolvconf from oneiric container package list

2011-10-24 Thread Daniel Lezcano
On 10/24/2011 07:09 PM, Serge E. Hallyn wrote: It prevents containers from getting a good resolv.conf without doing ifdown eth0; ifup eth0. (see pad.lv/880020) Signed-off-by: Serge Hallyn serge.hal...@canonical.com --- Applied. Thanks.

Re: [Lxc-users] cannot start any more any container?! (partially solved)

2011-10-21 Thread Daniel Lezcano
On 10/21/2011 02:33 PM, Ulli Horlacher wrote: On Thu 2011-10-20 (09:00), Papp Tamas wrote: Well, I don't see anything like this. Actually I use 0.7.5. Try to upgrade. After upgrading to lxc 0.7.5 the problem is still there: I cannot start any container and there is no (log) output at all. For

Re: [Lxc-users] skype in a lxc

2011-10-09 Thread Daniel Lezcano
On 10/05/2011 03:43 PM, Lyssa Rabies wrote: Hello, i use different linux distributions and versions of distributions inside linux containers, so my desktop environment is also running inside a container. So i don't need to use full virtualisation - i have lxc and i'am very happy with it.

Re: [Lxc-users] New LXC Creation Script: lxc-ubuntu-x

2011-10-09 Thread Daniel Lezcano
On 10/06/2011 08:45 PM, Serge Hallyn wrote: Quoting Brian K. White (br...@aljex.com): Ideally, for the stated purpose, we need something not named ubuntu. I almost didn't create the page for that reason, but then decided the content can always get moved if/when someone gets a better domain

[Lxc-users] 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-users] [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-users] [PATCH] fix broken lxc-*.in scripts

2011-09-20 Thread Daniel Lezcano
On 09/15/2011 11:55 AM, Greg Kurz wrote: Commit 92c7f6295518decd3989b2790d75551e7d9a broke the following scipts: - lxc-setcap - lxc-setuid - lxc-create This patch adds the missing variables to be substitued by the configure script. Cheers. Signed-off-by: Greg Kurz gk...@fr.ibm.com

Re: [Lxc-users] inexplicable effect when starting vnc4server (security hole?)

2011-09-08 Thread Daniel Lezcano
On 09/08/2011 02:12 PM, sfrazt wrote: Daniel Lezcano daniel.lezc...@free.fr schrieb am 8.09.11 13:56: My question is now: Where does this filename came from? Is it a security hole? Is it possible that's coming from an environment variable ? You are absolutely right. The value comes from

Re: [Lxc-users] Problem with lxc-attach on Linux v3.1.0

2011-09-08 Thread Daniel Lezcano
On 09/08/2011 06:30 PM, Nikhil Handigol wrote: I just tried running lxc-attach with linux-2.6.38. I got the same error as with linux-3.0 -- Function not implemented - failed to set namespace 'pid'. Here's the exact sequence of steps that I followed: Compiled linux-2.6.38.2 with the

Re: [Lxc-users] Problem with lxc-attach on Linux v3.1.0

2011-09-07 Thread Daniel Lezcano
On 09/07/2011 11:33 AM, Greg Kurz wrote: On Wed, 2011-09-07 at 10:38 +0200, Daniel Lezcano wrote: On 09/07/2011 02:17 AM, Nikhil Handigol wrote: Hi, I have been facing problems getting lxc (more specifically, lxc-attach) to work on Linux v3.1.0-rc4. When I run lxc-attach, I get the following

Re: [Lxc-users] [PATCH] remove the check for container path as it's done in lxc-create

2011-09-01 Thread Daniel Lezcano
On 09/01/2011 02:00 PM, rha...@informatiq.org wrote: From: InformatiQ rha...@informatiq.org Signed-off-by: InformatiQ rha...@informatiq.org --- Applied. -- Special Offer -- Download ArcSight Logger for FREE!

Re: [Lxc-users] Subject: [PATCH 1/2] fix for missing EOF and fstab contents

2011-08-30 Thread Daniel Lezcano
On 08/28/2011 12:59 PM, Ramez Hanna wrote: templates/lxc-fedora.in | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Applied. Thanks. Ramez, I had to fix the diff file, please look at git send-email ... :)

Re: [Lxc-users] [PATCH 0/3] several mods to lxc-clone.in

2011-08-30 Thread Daniel Lezcano
On 08/30/2011 05:36 PM, Serge Hallyn wrote: Thanks. No objections to the patchset. (Other than, better to simply remove the code lines which you commented out - but no need for a new set for that). I haven't tested it, but it looks correct. Acked-by: Serge Hallyn

Re: [Lxc-users] [PATCH 2/2] lxc-fedora.in

2011-08-30 Thread Daniel Lezcano
On 08/28/2011 01:00 PM, Ramez Hanna wrote: * if not running on fedora host amd -R is not set, use fedora 14 as default * trap SIGHUP SIGINT SIGTERM, and cleanup before exiting Applied. -- Special Offer -- Download

Re: [Lxc-users] how to use cpuset.shares?

2011-08-25 Thread Daniel Lezcano
On 08/24/2011 04:06 PM, 陈竞 wrote: i have a computer with 2 cores cpu. I want to create a container with 0.5 cpu. I found that cpuset.shares means how many time cpu time it get, but i don't know whether cpuset.shares point to one cpu or all cpu? if it points to one cpu, is the following

Re: [Lxc-users] handle memory limits

2011-08-15 Thread Daniel Lezcano
On 08/12/2011 11:00 PM, sfrazt wrote: Hi, i want to to have a application container that acts with memory limits as there is simple no more memory. Means: if it reaches the limit the next question for more memory should simple be denied. The default behaviour is to kill the application when

Re: [Lxc-users] memory limit

2011-08-15 Thread Daniel Lezcano
On 08/12/2011 11:51 PM, Papp Tamas wrote: hi! I'm asking you about limiting memory. This is the test config: lxc.cgroup.memory.limit_in_bytes = 16M lxc.cgroup.memory.memsw.limit_in_bytes = 1G lxc.cgroup.cpuset.cpus = 0-1 lxc.cgroup.cpu.shares = 1024 I run apt-get upgrade and an openfire

Re: [Lxc-users] Archlinux 3.0 Kernel update breaks LXC

2011-08-15 Thread Daniel Lezcano
On 08/13/2011 01:54 PM, John wrote: I've just replaced my lxc package with lxc-git and it's working again. Many thanks. (my installed lxc package was probably one version stale also, which was most likely the problem) I guess there's been a change in the kernel. before seeing your response

Re: [Lxc-users] Many containers and too many open files

2011-08-15 Thread Daniel Lezcano
On 08/15/2011 10:05 PM, Gary Ballantyne wrote: On 16/08/11 06:52, Andre Nathan wrote: Hi Gary On Tue, 2011-08-16 at 06:38 +1200, Gary Ballantyne wrote: Unfortunately, I am still getting the same errors with a little over 40 containers. I also had this problem. It was solved after Daniel

Re: [Lxc-users] [NFS] nfs server

2011-08-12 Thread Daniel Lezcano
On 08/12/2011 08:57 AM, zorg wrote: [ ... ] P.S. I believe the fies to make cifs and p9 work already went in, and FUSE already did, but it's been a while and I'll have to retest. (I know I got 'em all to work, I _think_ all changes necessary to do so went upstream.) If you're not tied to

Re: [Lxc-users] [MySQL] Weird performances problem between containers on a same host

2011-08-11 Thread Daniel Lezcano
before creating the container. Anyway, it seems you hit this bug: commit 79b569f0ec53a14c4d71e79d93a8676d9a0fda6d Author: Daniel Lezcano daniel.lezc...@free.fr Date: Wed Mar 30 02:42:17 2011 -0700 netdev: fix mtu check when TSO is enabled In case the device where is coming from

Re: [Lxc-users] lxc and libvirt management tools

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 12:02 PM, Remi Verchere wrote: Hello, I'm using 2 debian LXC containers, and it works fine. I use default cgroups configuration, and I manage containers using the lxc-* tools. I want to manage them using some pretty frontend, such as Archipel (http://archipelproject.org/), to

Re: [Lxc-users] [MySQL] Weird performances problem between containers on a same host

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 04:51 PM, Mauras Olivier wrote: Hello, I have several containers running on a host - ~10 One of them is running a MySQL database. Several of the others are running php code under apache that fetch datas from the database. Host is using eth0, while my containers are on a

Re: [Lxc-users] [MySQL] Weird performances problem between containers on a same host

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 05:54 PM, Daniel Lezcano wrote: [ ... ] Can you check with tcpdump if there are problems with the patch checksums ? gah ! s/patch/packet -- uberSVN's rich system and user administration capabilities

Re: [Lxc-users] [MySQL] Weird performances problem between containers on a same host

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 05:54 PM, Daniel Lezcano wrote: On 08/10/2011 04:51 PM, Mauras Olivier wrote: Hello, I have several containers running on a host - ~10 One of them is running a MySQL database. Several of the others are running php code under apache that fetch datas from the database. Host

Re: [Lxc-users] lxc and libvirt management tools

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 06:56 PM, Remi Verchere wrote: So, how can I migrate a container configuration managed by lxc tools to libvirt ? Is there any tools or how-to? No. That could be very nice if we write a driver for libvirt for the lxc tools. If someone is willing to do that, that would be great :)

Re: [Lxc-users] [PATCH 1/3] fix lxc-ls with mtab != /proc/mounts

2011-08-09 Thread Daniel Lezcano
On 08/03/2011 04:56 PM, Serge E. Hallyn wrote: The cgroup mounts created by cgroup-bin do not show up in /etc/mtab. lxc-ls, as lxc-ps before it, assumes that /etc/mtab is symlinked to /proc/mounts. Author: Serge Hallyn serge.hal...@canonical.com Forwarded: no Bug-Ubuntu:

Re: [Lxc-users] [PATCH 2/3] make lxc-netstat work when /etc/mtab is not /proc/mounts

2011-08-09 Thread Daniel Lezcano
On 08/03/2011 04:57 PM, Serge E. Hallyn wrote: like lxc-ps and lxc-ls, lxc-netstat breaks if there is not an 'lxc' cgroup mount and /etc/mtab is not a link to /proc/mounts. Author: Serge Hallyn serge.hal...@canonical.com Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/819319

Re: [Lxc-users] Silence lxc-unshare warning when removing cgroup

2011-08-09 Thread Daniel Lezcano
On 08/03/2011 04:57 PM, Serge E. Hallyn wrote: If ns cgroup is mounted, then when lxc-unshare runs, the kernel automatically creates a new cgroup for the task. So lxc-unshare tries to delete it. But if ns cgroup is not mounted, that cgroup does not get created, and now lxc-unshare spits an

Re: [Lxc-users] add ubuntu-keyring to the packagelist for oneiric containers.

2011-08-09 Thread Daniel Lezcano
On 07/28/2011 08:17 PM, Serge E. Hallyn wrote: Otherwise apt fails during and after debootstrap. Signed-off-by: Serge Hallyn serge.hal...@canonical.com Applied. -- uberSVN's rich system and user administration

Re: [Lxc-users] lxc-ps: support '-n name' and '-- ps-options'

2011-08-09 Thread Daniel Lezcano
On 08/05/2011 03:49 PM, Serge E. Hallyn wrote: This is more consistent with other lxc commands Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/820720 Applied, thanks. -- uberSVN's rich system and user

Re: [Lxc-users] Use container's /run/utmp if it exists

2011-08-09 Thread Daniel Lezcano
On 07/28/2011 08:20 PM, Serge E. Hallyn wrote: If /var/run is a symlink to /run in the container, then opening /proc/pid/root/var/run/utmp will end up opening the host's utmp. Therefore the hack detecting shutdown through utmp fails. Signed-off-by: Serge Hallyn serge.hal...@canonical.com

Re: [Lxc-users] make lxc-ps work with separate mtab

2011-08-04 Thread Daniel Lezcano
On 07/28/2011 08:19 PM, Serge E. Hallyn wrote: It breaks with multiple cgroup mounts unless /etc/mtab is linked to /proc/self/mounts (which it is not in Ubuntu, for instance). Signed-off-by: Serge Hallyn serge.hal...@canonical.com Hi Serge, not sure, you got the email but I was not able to

Re: [Lxc-users] make lxc-ps work with separate mtab

2011-08-04 Thread Daniel Lezcano
On 08/04/2011 04:30 PM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 07/28/2011 08:19 PM, Serge E. Hallyn wrote: It breaks with multiple cgroup mounts unless /etc/mtab is linked to /proc/self/mounts (which it is not in Ubuntu, for instance). Signed-off-by: Serge

Re: [Lxc-users] [Patch ] lxc-fedora.in

2011-08-03 Thread Daniel Lezcano
On 07/25/2011 12:07 AM, Daniel Lezcano wrote: On 07/21/2011 09:15 AM, Ramez Hanna wrote: it only has an extra parameter which is for the release number which would default to the local release of the host or it can be passed as extra param to the lxc-create like serge showed in some previous

Re: [Lxc-users] lxc-busybox template [features, fixes, future]

2011-08-01 Thread Daniel Lezcano
On 07/28/2011 04:16 PM, Charles Hewson wrote: I have been expirmenting with template for a while. Have hacked a little. And, need the group's input. Feature I have added - When busybox is not accessable or dynamicly linked on host get current stable binary from busybox.net. Debian (lenny

Re: [Lxc-users] Adding devices to device white list after starting container

2011-07-29 Thread Daniel Lezcano
On 07/29/2011 04:34 PM, Devendra K. Modium wrote: Hi All I see in couple of sources that after starting the containers, we can modify the cgroups resource allocation of that particular container. I am trying to add the specific device to the devices.list after starting the container

Re: [Lxc-users] [PATCH] Don't try to add host user's groups in container

2011-07-27 Thread Daniel Lezcano
On 07/25/2011 03:10 AM, Serge E. Hallyn wrote: When '-b user' is specified to lxc-ubuntu container creation template, do not automatically add all the groups of which user is a member on the host, to user's groups in the container. Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com ---

Re: [Lxc-users] [Patch ] lxc-fedora.in

2011-07-24 Thread Daniel Lezcano
On 07/21/2011 09:15 AM, Ramez Hanna wrote: it only has an extra parameter which is for the release number which would default to the local release of the host or it can be passed as extra param to the lxc-create like serge showed in some previous post Ok, sorry for the delay. 2 weeks of

Re: [Lxc-users] [PATCH 2/3] lxc-ubuntu: don't put devpts in $confdir/container/fstab

2011-07-24 Thread Daniel Lezcano
On 07/13/2011 01:24 AM, Serge Hallyn wrote: From: Serge Hallyn serge.hal...@canonical.com src/lxc/conf.c will explicitly mount it anyway. Furthermore, the fstab entry, which is getting processed first, did not specify -o newinstance. This can cause the host's devpts entry mount options to

Re: [Lxc-users] [PATCH 1/3] Add arm as a supported srcarch

2011-07-24 Thread Daniel Lezcano
On 07/13/2011 01:24 AM, Serge Hallyn wrote: From: Serge Hallyn serge.hal...@canonical.com Otherwise building on armel fails with checking for linux SRCARCH... configure: error: architecture arm-unknown-linux-gnueabi not supported See

Re: [Lxc-users] [PATCH 3/3] lxc-ubuntu: Allow /dev/fuse to be used in a container

2011-07-24 Thread Daniel Lezcano
On 07/13/2011 01:24 AM, Serge Hallyn wrote: From: Serge Hallyn serge.hal...@canonical.com 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 --- Applied. Thanks. -- Daniel

Re: [Lxc-users] LXC and Tun/Tap ?

2011-07-21 Thread Daniel Lezcano
On 07/13/2011 06:40 PM, Gordon Henderson wrote: ISTR that about a year ago tun/tap use inside an LXC container wasn't possible... Just wondering if things have changed? No nothing was done around that. As the thread is old, can you recall what you want to achieve with tun/tap ? If you can

Re: [Lxc-users] [Patch ] lxc-fedora.in

2011-07-21 Thread Daniel Lezcano
On 07/14/2011 12:10 AM, Ramez Hanna wrote: daniel can you accept this patch i would like to get it in 0.75 Hi Ramez, yes, I can get it for the 0.7.5 (coming soon) but as far as I remember the script is a stand-alone script which is not invokable with lxc-create, right ?

Re: [Lxc-users] 10GbE Interface

2011-07-21 Thread Daniel Lezcano
On 07/14/2011 10:28 PM, Mayur Gowda wrote: Has anyone tried connecting containers with 10Gig interfaces? Any suggestions or path to proceed will be helpful ! What kernel version are you using ? There was a regression with macvlan I fixed a few months ago.

Re: [Lxc-users] Latest test results - Was: cgroups: support cgroups mounted in multiple places (v3)

2011-07-03 Thread Daniel Lezcano
On 07/02/2011 07:28 PM, Michael H. Warfield wrote: Hey all... So my testing has continued and I've now regression tested the v3 patch and extended my testing. Looks like, over all, everything came together nicely. I'd ack that... [ ... ] IAC... The v3 patch does no harm to existing,

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-07-01 Thread Daniel Lezcano
On 06/27/2011 03:53 PM, Michael H. Warfield wrote: Cool. I now have it running in 3 environments. Two are Fedora 12 (I know, I know, it's on my todo list) i686 systems with single cgroup mounts while the other is my Fedora 15 x86_64 platform. All are running quite smoothly and lxc-info is

Re: [Lxc-users] lxc on fedora 15 (was : cgroups: support cgroups mounted in multiple places)

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:09 PM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): fedora 15 has a patched kernel with utrace. By patched, you mean utrace is not upstream? Right. Are we sure, utrace is pid namespace aware ? I've not looked at it, no. My natty container booted

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for d in `/bin/ls`; do echo 1 $d/cgroup.clone_children done Doing this step alone broke lxc totally for me, with or without the patch below. This was on Fedora 15

Re: [Lxc-users] [PATCH 2/2] cgroups: support cgroups mounted in multiple places

2011-06-26 Thread Daniel Lezcano
On 06/26/2011 05:52 PM, Michael H. Warfield wrote: On Sun, 2011-06-26 at 17:27 +0200, Daniel Lezcano wrote: On 06/26/2011 05:06 PM, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): cd /sys/fs/cgroup for d in `/bin/ls`; do echo 1 $d/cgroup.clone_children

  1   2   3   4   >