[lxc-devel] lxc systemd unit file

2013-12-31 Thread Dwight Engen
Hi Mike, When looking through the sytemd unit file you made with commit 87ff951e as I was doing the sysv init script, I was a bit confused since there is no lxc-startup in libexec nor in the sources, at least not that I could find :) Maybe that was a shell script that didn't get added? Or the foll

[lxc-devel] [PATCH 1/2] change lxc-autostart shutdown to behave like lxc-stop

2013-12-31 Thread Dwight Engen
It is desirable to have a mode where a soft shutdown is requested, but then do a hard shutdown if after some time period the container has not shut down. This the default behaviour of lxc-stop, but is not currently possible with lxc-autostart. This change makes this the default behaviour when shutd

[lxc-devel] [PATCH 2/2] add lxc-autostart support for sysv init systems

2013-12-31 Thread Dwight Engen
This change updates the way init scripts get installed so that more than one init system can be supported. Instead of installing the systemd service file from the spec file, it should be installed at make install time, so that someone compiling from source also gets the unit file installed. Update

Re: [lxc-devel] [PATCH] CentOS and Fedora Templates: Harden root passwords and add static MAC network addresses.

2013-12-31 Thread Leonid Isaev
On Tue, 31 Dec 2013 12:17:46 -0500 "Michael H. Warfield" wrote: > On Tue, 2013-12-31 at 10:59 -0500, S.Çağlar Onur wrote: > > Hi Michael, > > > > On Thu, Dec 26, 2013 at 6:08 PM, Michael H. Warfield > > wrote: > > > CentOS and Fedora Templates: Harden root passwords and add static MAC > > > ne

Re: [lxc-devel] [PATCH] CentOS and Fedora Templates: Harden root passwords and add static MAC network addresses.

2013-12-31 Thread Michael H. Warfield
On Tue, 2013-12-31 at 10:59 -0500, S.Çağlar Onur wrote: > Hi Michael, > > On Thu, Dec 26, 2013 at 6:08 PM, Michael H. Warfield > wrote: > > CentOS and Fedora Templates: Harden root passwords and add static MAC > > network addresses. > > > > 1) Add logic to root password setting. Root password

Re: [lxc-devel] nested containers

2013-12-31 Thread Paul Wexler
Thank you for your responses! I switched our lxc from stable to daily: http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main I removed lxc and re-installed it. >>> lxc.version '1.0.0.alpha1' >>> Using https://raw.github.com/lxc/lxc/master/hooks/mountcgroups did not help. In fact the c

[lxc-devel] [PATCH] remove the return value of attach_ns.

2013-12-31 Thread Rami Rosen
This method removes the return value of the attach_ns() method as it is not needed and not used. Signed-off-by: Rami Rosen --- src/lxc/start.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 7395aea..a89d3e6 100644 --- a/src/lxc/s

Re: [lxc-devel] [PATCH] CentOS and Fedora Templates: Harden root passwords and add static MAC network addresses.

2013-12-31 Thread S . Çağlar Onur
Hi Michael, On Thu, Dec 26, 2013 at 6:08 PM, Michael H. Warfield wrote: > CentOS and Fedora Templates: Harden root passwords and add static MAC network > addresses. > > 1) Add logic to root password setting. Root password is now set to > "Root-${name}-${RANDOM} to defeat common brute fo

Re: [lxc-devel] nested containers

2013-12-31 Thread S . Çağlar Onur
Hi, On Sat, Dec 28, 2013 at 5:21 AM, Stéphane Graber wrote: > On Fri, Dec 27, 2013 at 06:56:15PM -0500, S.Çağlar Onur wrote: >> Hey Pauk, >> >> On Fri, Dec 27, 2013 at 6:49 PM, Paul Wexler >> wrote: >> > Hello lxc community, >> > >> > Has anyone used nested containers? >> > >> > I am trying with

Re: [lxc-devel] [PATCH] Use pthread_atfork() to unlock mutexes after fork()

2013-12-31 Thread S . Çağlar Onur
Hi Andrey, Just finished create/start/stop/destroy loop for 10K container using lxc-test-concurrent as well as creating 2000 via Go concurrently. On Mon, Dec 30, 2013 at 6:06 AM, Andrey Mazo wrote: > Signed-off-by: Andrey Mazo Tested-by: S.Çağlar Onur > --- > src/lxc/Makefile.am| 3 ++-