[Lxc-users] Mounting filesystems

2011-09-15 Thread CLOSE Dave
Thanks to Greg for the quick fix for the configure prefix problem. I'm now running build 165015211fa9506b11ea1f4540d54b8a99a2f468 (lxc-0.7.5-17-g1650152) with his patches. I apologize if my unfamiliarity with the project means I've done something obviously wrong. I'm trying to setup a container

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

2011-09-15 Thread Serge E. Hallyn
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 --- src/lxc/lxc-clone.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc-clone.in b/src/lxc/lxc-c

Re: [Lxc-users] Help troubleshooting declining performance / high %SI CPU when running 9 Ubuntu 10.04 LXCs

2011-09-15 Thread Ivan Fetch
Hello Serge, On Sep 15, 2011, at 12:25 PM, Serge E. Hallyn wrote: > In addition to needing info Iliyan mentioned - what kernel are you running? > Is it a standard backport kernel? Do you know if a kernel update coincides > with the performance degredation showing up? > The kernel is 2.6.34-2-s

Re: [Lxc-users] Help troubleshooting declining performance / high %SI CPU when running 9 Ubuntu 10.04 LXCs

2011-09-15 Thread Serge E. Hallyn
In addition to needing info Iliyan mentioned - what kernel are you running? Is it a standard backport kernel? Do you know if a kernel update coincides with the performance degredation showing up? Quoting Iliyan Stoyanov (i...@ilf.me): > Hi Ivan, > > you should probably do a monitoring with iosta

Re: [Lxc-users] Help troubleshooting declining performance / high %SI CPU when running 9 Ubuntu 10.04 LXCs

2011-09-15 Thread Iliyan Stoyanov
Hi Ivan, you should probably do a monitoring with iostat and vmstat also. On the top of my head I can think of at least 3 or 4 reasons why this might be happening. I have similar problems with a simple laptop machine without LXC containers on it (and don't have such on a server with a bunch of con

[Lxc-users] Help troubleshooting declining performance / high %SI CPU when running 9 Ubuntu 10.04 LXCs

2011-09-15 Thread Ivan Fetch
Hello, I've inherited a Sun 4540 (thumper) machine running 9 LXC containers. During the past few weeks we've been troubleshooting a decline in performance, which ends up in high %SI (software interrupt) CPU usage. I'm hoping someone here can help troubleshoot and narrow down what the real issue

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

2011-09-15 Thread Serge E. Hallyn
Thought I had sent this before, but I don't find it anywhere. Signed-off-by: Serge Hallyn --- templates/lxc-ubuntu.in |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 05d71b9..95b218a 100644 --- a/templates/lxc-ubun

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

2011-09-15 Thread Serge E. Hallyn
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 --- templates/lxc-ubuntu.in |1 + 1 files changed, 1 insertions(+), 0 deletions

[Lxc-users] [PATCH 2/2] Accurately detect whether a system supports clone_children

2011-09-15 Thread Serge E. Hallyn
If multiple cgroups are mounted under /sys/fs/cgroup, then the original check ends up looking for /sys/fs/cgroup/cgroup.clone_children, which does not exist because that is just a tmpfs. So make sure to check an actual cgroupfs. Signed-off-by: Serge Hallyn --- src/lxc/lxc-checkconfig.in |7

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

2011-09-15 Thread Serge E. Hallyn
/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 Hallyn --- src/lxc/utils.c |5 +++-- templates

[Lxc-users] [PATCH] fix broken lxc-*.in scripts

2011-09-15 Thread Greg Kurz
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 --- src/lxc/lxc-create.in |1 + src/lxc/lxc-setcap.in |4