Re: [lxc-devel] [PATCH] lxc-alpine: download statically compiled package manager if not available on host

2013-05-14 Thread Natanael Copa
On Tue, 14 May 2013 19:27:32 +0300 Kaarle Ritvanen wrote: > Signed-off-by: Kaarle Ritvanen I have looked over it and tested it on Alpine Linux. It should make it very simple to test an Alpine Linux container on any x86/x86_64 GNU Linux. Acked-by: Natanael Copa > --- > templates/lxc-alpine

[lxc-devel] [PATCH] lxc-fedora-template: autodev, hostname, ARM archs, Raspberry Pi fixes

2013-05-14 Thread Michael H. Warfield
This took a lot longer for me to get around to it... Sorry. Patch to the lxc-fedora template. I didn't get any further comments from my earlier proposal, weeks ago, and did get one addition based on comments about properly setting the hostname in /etc/hostname, which I've added. I could have br

Re: [lxc-devel] create api

2013-05-14 Thread Stéphane Graber
On 05/14/2013 05:28 PM, Dwight Engen wrote: > On Tue, 14 May 2013 14:13:45 -0500 > Serge Hallyn wrote: > >> Hi, >> >> I'd like to rewrite lxc-create to be c (calling out to the c templates >> which continue to be scripts for the most part). Unfortunately right >> now the lxcapi_create() just tak

Re: [lxc-devel] create api

2013-05-14 Thread Dwight Engen
On Tue, 14 May 2013 14:13:45 -0500 Serge Hallyn wrote: > Hi, > > I'd like to rewrite lxc-create to be c (calling out to the c templates > which continue to be scripts for the most part). Unfortunately right > now the lxcapi_create() just takes arguments to send to the lxc-create > script. > >

[lxc-devel] create api

2013-05-14 Thread Serge Hallyn
Hi, I'd like to rewrite lxc-create to be c (calling out to the c templates which continue to be scripts for the most part). Unfortunately right now the lxcapi_create() just takes arguments to send to the lxc-create script. I could either dump the existing lxcapi_create function, replace it with

[lxc-devel] [PATCH] lxc-alpine: download statically compiled package manager if not available on host

2013-05-14 Thread Kaarle Ritvanen
Signed-off-by: Kaarle Ritvanen --- templates/lxc-alpine.in | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 98347ed..528ebca 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.i

Re: [lxc-devel] [RFC PATCH 0/1] allow setting cgroup items before the cgroup is entered

2013-05-14 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Hi, > > I tried to put lxc.cgroup.memory.kmem.limit_in_bytes = 4194304 in a > config file to test forkbomb prevention. The problem with this is that > kmem.limit_in_bytes (per the kernel documentation) "cannot be set if > the cgroup have children,

Re: [lxc-devel] [PATCH] lxc-busybox: check when bind-mounting host libdirs

2013-05-14 Thread Serge Hallyn
Quoting Bogdan Purcareata (bogdan.purcare...@freescale.com): > The patch changes the busybox template behavior to automatically > mount /lib and /usr/lib. In case one of these folders does not exist, > starting the container will fail. Also, if there are other lib entries > on the host - e.g. /usr/

Re: [lxc-devel] [PATCH 1/4] coverity: don't reference beyond structure

2013-05-14 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Fri, 3 May 2013 13:47:59 -0400 > Dwight Engen wrote: > > > On Fri, 3 May 2013 12:23:29 -0500 > > Serge Hallyn wrote: > > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > On Fri, 3 May 2013 11:17:08 -0500 > > > > Serge Hallyn wro

Re: [lxc-devel] [PATCH 1/4] coverity: don't reference beyond structure

2013-05-14 Thread Dwight Engen
On Fri, 3 May 2013 13:47:59 -0400 Dwight Engen wrote: > On Fri, 3 May 2013 12:23:29 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > On Fri, 3 May 2013 11:17:08 -0500 > > > Serge Hallyn wrote: > > > > > > > can that be correct? That changes the value of

Re: [lxc-devel] Cleanup of .hold files

2013-05-14 Thread Serge Hallyn
Quoting Brent Tubbs (brent.tu...@yougov.com): > Hi, > > I see in conf.c that a .hold file is automatically created whenever > you use a directory as the rootfs. I'm seeing those start to > accumulate on the filesystem. Is it my job to clean them up, or > should there be code in LXC deleting them

[lxc-devel] [PATCH] lxc-busybox: check when bind-mounting host libdirs

2013-05-14 Thread Bogdan Purcareata
The patch changes the busybox template behavior to automatically mount /lib and /usr/lib. In case one of these folders does not exist, starting the container will fail. Also, if there are other lib entries on the host - e.g. /usr/lib64 - mount them as well. Signed-off-by: Bogdan Purcareata ---