[lxc-devel] [PATCH] check pthread_atfork and thread-local storage support

2014-01-03 Thread S . Çağlar Onur
This patch; Adds pthread_atfork check to configure.ac and uses it when necessary, Introduces tls.m4 macro for checking thread-local storage support, Puts values array into thread-local storage (lxc_global_config_value@src/lxc/utils.c), Removes static_lock/static_unlock from LXC code, Lastly, it

[lxc-devel] RFC: cgroups aware proc

2014-01-03 Thread Marian Marinov
Happy new year guys. I need to have /proc cgroups aware, as I want to have LXC containers that see only the resources that are given to them. In order to do that I had to patch the kernel. I decided to start with cpuinfo, stat and interrupts and then continue with meminfo and loadavg. I mana

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

2014-01-03 Thread Stéphane Graber
On Fri, Jan 03, 2014 at 06:22:11PM -0500, S.Çağlar Onur wrote: > Hi, > > On Fri, Jan 3, 2014 at 4:32 PM, Stéphane Graber wrote: > > On Fri, Jan 03, 2014 at 04:22:51PM -0500, S.Çağlar Onur wrote: > >> Hi, > >> > >> On Fri, Jan 3, 2014 at 3:13 PM, Stéphane Graber > >> wrote: > >> > On Thu, Jan 02

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

2014-01-03 Thread S . Çağlar Onur
Hi, On Fri, Jan 3, 2014 at 4:32 PM, Stéphane Graber wrote: > On Fri, Jan 03, 2014 at 04:22:51PM -0500, S.Çağlar Onur wrote: >> Hi, >> >> On Fri, Jan 3, 2014 at 3:13 PM, Stéphane Graber wrote: >> > On Thu, Jan 02, 2014 at 08:59:10AM -0600, Serge Hallyn wrote: >> >> Quoting Stéphane Graber (stgra.

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

2014-01-03 Thread Stéphane Graber
On Fri, Jan 03, 2014 at 03:44:53PM -0600, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Fri, Jan 03, 2014 at 02:00:25PM -0600, Serge Hallyn wrote: > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > > On Thu, Jan 02, 2014 at 11:09:25AM -0600, Serge Hallyn wrote:

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

2014-01-03 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Fri, Jan 03, 2014 at 02:00:25PM -0600, Serge Hallyn wrote: > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > On Thu, Jan 02, 2014 at 11:09:25AM -0600, Serge Hallyn wrote: > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > > Thi

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

2014-01-03 Thread Stéphane Graber
On Fri, Jan 03, 2014 at 04:22:51PM -0500, S.Çağlar Onur wrote: > Hi, > > On Fri, Jan 3, 2014 at 3:13 PM, Stéphane Graber wrote: > > On Thu, Jan 02, 2014 at 08:59:10AM -0600, Serge Hallyn wrote: > >> Quoting Stéphane Graber (stgra...@ubuntu.com): > >> > On Wed, Jan 01, 2014 at 11:37:32PM -0600, Se

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

2014-01-03 Thread Serge Hallyn
Quoting S.Çağlar Onur (cag...@10ur.org): > Hi, > > On Fri, Jan 3, 2014 at 3:13 PM, Stéphane Graber wrote: > > On Thu, Jan 02, 2014 at 08:59:10AM -0600, Serge Hallyn wrote: > >> Quoting Stéphane Graber (stgra...@ubuntu.com): > >> > On Wed, Jan 01, 2014 at 11:37:32PM -0600, Serge Hallyn wrote: > >>

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

2014-01-03 Thread S . Çağlar Onur
Hi, On Fri, Jan 3, 2014 at 3:13 PM, Stéphane Graber wrote: > On Thu, Jan 02, 2014 at 08:59:10AM -0600, Serge Hallyn wrote: >> Quoting Stéphane Graber (stgra...@ubuntu.com): >> > On Wed, Jan 01, 2014 at 11:37:32PM -0600, Serge Hallyn wrote: >> > > Quoting Stéphane Graber (stgra...@ubuntu.com): >>

Re: [lxc-devel] hwaddr tuning in templates

2014-01-03 Thread Michael H. Warfield
On Fri, 2014-01-03 at 14:59 -0500, Stéphane Graber wrote: > On Thu, Jan 02, 2014 at 10:50:03AM -0600, Serge Hallyn wrote: > > Quoting Guillaume ZITTA (l...@zitta.fr): > > > >>If not, my proposal: > > > >> I set an incomplete (prefix) lxc.network.hwaddr in default conf. > > > >> lxc-create complete

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

2014-01-03 Thread Stéphane Graber
On Thu, Jan 02, 2014 at 08:59:10AM -0600, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Wed, Jan 01, 2014 at 11:37:32PM -0600, Serge Hallyn wrote: > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > > This patch caused a build failure on Android: > > > > > > >

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

2014-01-03 Thread Stéphane Graber
On Fri, Jan 03, 2014 at 02:00:25PM -0600, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Thu, Jan 02, 2014 at 11:09:25AM -0600, Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > This change updates the way init scripts get installed so th

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

2014-01-03 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Thu, Jan 02, 2014 at 11:09:25AM -0600, Serge Hallyn wrote: > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > This change updates the way init scripts get installed so that more > > > than one init system can be supported. Instead of instal

Re: [lxc-devel] hwaddr tuning in templates

2014-01-03 Thread Stéphane Graber
On Thu, Jan 02, 2014 at 10:50:03AM -0600, Serge Hallyn wrote: > Quoting Guillaume ZITTA (l...@zitta.fr): > > >>If not, my proposal: > > >> I set an incomplete (prefix) lxc.network.hwaddr in default conf. > > >> lxc-create complete it randomly and write it to the container's > > >>config. > > >> > >

[lxc-devel] [lxc/lxc] 420dfb: add lxc-autostart support for sysv init systems

2014-01-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 420dfb599b22b8e39e6e51437d17213d4f778735 https://github.com/lxc/lxc/commit/420dfb599b22b8e39e6e51437d17213d4f778735 Author: Dwight Engen Date: 2014-01-03 (Fri, 03 Jan 2014) Changed paths: M configure.ac

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

2014-01-03 Thread Stéphane Graber
On Thu, Jan 02, 2014 at 11:09:25AM -0600, Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > 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, i

[lxc-devel] [PATCH 1/2] rename lxc-stop shutdown argument to nokill

2014-01-03 Thread Dwight Engen
This makes the arguments between lxc-stop and lxc-autostart more consistent, so that --shutdown doesn't have two different meanings. Signed-off-by: Dwight Engen --- doc/lxc-stop.sgml.in | 26 +++--- src/lxc/arguments.h | 11 +++ src/lxc/lxc_stop.c | 9 + 3

[lxc-devel] [PATCH 2/2] add lxc.haltsignal for soft shutdown

2014-01-03 Thread Dwight Engen
- use this in the busybox template since busybox's init expects to receive SIGUSR1 to halt - fix lxc.stopsignal to be output by write_config so lxcapi_clone() and lxcapi_save_config() will output it Signed-off-by: Dwight Engen --- doc/lxc-stop.sgml.in | 13 ++--- src/lxc/conf.h

[lxc-devel] [Passed] lxc/lxc#12 (master - 0a83cbb)

2014-01-03 Thread Travis CI
Build Update for lxc/lxc - Build: #12 Status: Passed Duration: 12 minutes and 52 seconds Commit: 0a83cbb (master) Author: Serge Hallyn Message: snapshot: enforce keeping same backing store type (v2) Stéphane noticed that lxc-snapshot of a dir-backed container

[lxc-devel] [Errored] lxc/lxc#12 (master - 0a83cbb)

2014-01-03 Thread Travis CI
Build Update for lxc/lxc - Build: #12 Status: Errored Duration: 11 minutes and 18 seconds Commit: 0a83cbb (master) Author: Serge Hallyn Message: snapshot: enforce keeping same backing store type (v2) Stéphane noticed that lxc-snapshot of a dir-backed container

[lxc-devel] [lxc/lxc] 0b9828: Bring static and const to tests too

2014-01-03 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 0b98289ef95e83fcd493ba6688e57aa8b4fb53f7 https://github.com/lxc/lxc/commit/0b98289ef95e83fcd493ba6688e57aa8b4fb53f7 Author: Andrey Mazo Date: 2014-01-02 (Thu, 02 Jan 2014) Changed paths: M src/tests/attac

Re: [lxc-devel] Strawman proposal... Default passwords in templates...

2014-01-03 Thread Serge Hallyn
You can already (with some templates at least) specify an ssh key to inject. I think defaulting to using ~/.ssh/id_rsa.pub is bad, or at least better left for a lxc-create wrapper which can always default to that, though I could be swayed on that. It's not for lxc-create itself to do, since there

Re: [lxc-devel] Strawman proposal... Default passwords in templates...

2014-01-03 Thread Alvaro Miranda Aguilera
Hello, just sharing my 2 cents here. What about 2 separate options? If the user that is running lxc-create have ~/.ssh/id_rsa.pub use that for root. and allow use an external id_rsa.pub as an argument in the command line? In Vagrant, a tool used to create vm's in virtualbox/vmware, they have a