Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Serge Hallyn
Quoting S.Çağlar Onur (cag...@10ur.org): > Hi, > > > On Thu, Jul 11, 2013 at 5:39 PM, Dwight Engen wrote: > > > On Thu, 11 Jul 2013 16:22:11 -0500 > > Serge Hallyn wrote: > > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > On Thu, 11 Jul 2013 15:40:10 -0500 > > > > Serge Hallyn w

[lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-11 Thread Serge Hallyn
Define a sha1sum_file() function in utils.c (which requires configure.ac to check for -lcrypto and -lssl). Use that in lxcapi_create to write out the sha1sum of the template being used. Signed-off-by: Serge Hallyn --- configure.ac |2 + src/lxc/Makefile.am|2 +- src/lxc/lx

Re: [lxc-devel] Howto user namespaces?

2013-07-11 Thread Rui Xiang
On 2013/7/11 22:26, Serge Hallyn wrote: > Quoting Rui Xiang (rui.xi...@huawei.com): >> On 2013/7/9 23:58, Serge Hallyn wrote: >>> Quoting Rui Xiang (rui.xi...@huawei.com): On 2013/7/5 19:48, Serge Hallyn wrote: > Quoting Rui Xiang (rui.xi...@huawei.com): >> The same issue troubles me.

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread S . Çağlar Onur
Hi, On Thu, Jul 11, 2013 at 5:39 PM, Dwight Engen wrote: > On Thu, 11 Jul 2013 16:22:11 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > On Thu, 11 Jul 2013 15:40:10 -0500 > > > Serge Hallyn wrote: > > > > > > > Quoting Dwight Engen (dwight.en...@oracle.c

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Thu, 11 Jul 2013 16:24:43 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > On Thu, 11 Jul 2013 09:22:47 -0500 > > > Serge Hallyn wrote: > > > > > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > >

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Dwight Engen
On Thu, 11 Jul 2013 16:24:43 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > On Thu, 11 Jul 2013 09:22:47 -0500 > > Serge Hallyn wrote: > > > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > > To add to the "you broke my lxc-create" list, the new version

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Dwight Engen
On Thu, 11 Jul 2013 16:22:11 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > On Thu, 11 Jul 2013 15:40:10 -0500 > > Serge Hallyn wrote: > > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > On Thu, 11 Jul 2013 14:48:21 -0500 > > > > Serge Hallyn wrot

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Thu, 11 Jul 2013 09:22:47 -0500 > Serge Hallyn wrote: > > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > To add to the "you broke my lxc-create" list, the new version also > > > dropped the fancy header I introduced a while back (showin

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Thu, 11 Jul 2013 15:40:10 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > On Thu, 11 Jul 2013 14:48:21 -0500 > > > Serge Hallyn wrote: > > > > > > > lxc-create ... -o - > > > > > > > > will send templa

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Dwight Engen
On Thu, 11 Jul 2013 15:40:10 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > On Thu, 11 Jul 2013 14:48:21 -0500 > > Serge Hallyn wrote: > > > > > lxc-create ... -o - > > > > > > will send template output to standard output (the old default). > > > > > > lxc-cre

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Thu, 11 Jul 2013 14:48:21 -0500 > Serge Hallyn wrote: > > > lxc-create ... -o - > > > > will send template output to standard output (the old default). > > > > lxc-create ... without any -o will hide template output. > > > > lxc-create -o /t

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Dwight Engen
On Thu, 11 Jul 2013 14:48:21 -0500 Serge Hallyn wrote: > lxc-create ... -o - > > will send template output to standard output (the old default). > > lxc-create ... without any -o will hide template output. > > lxc-create -o /tmp/xxx will send template output to the file > /tmp/xxx. I like hav

[lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-11 Thread Serge Hallyn
lxc-create ... -o - will send template output to standard output (the old default). lxc-create ... without any -o will hide template output. lxc-create -o /tmp/xxx will send template output to the file /tmp/xxx. Reported-by: "S.Çağlar Onur" Signed-off-by: Serge Hallyn --- src/lxc/arguments.h

Re: [lxc-devel] [PATCH RFC] Accomodate stricter devices cgroup rules

2013-07-11 Thread Serge Hallyn
Quoting Serge Hallyn (serge.hal...@ubuntu.com): > 3.10 kernel comes with proper hierarchical enforcement of devices > cgroup. To keep that code somewhat sane, certain things are not > allowed. Switching from default-allow to default-deny and vice versa > are not allowed when there are children cg

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Dwight Engen
On Thu, 11 Jul 2013 09:22:47 -0500 Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > To add to the "you broke my lxc-create" list, the new version also > > dropped the fancy header I introduced a while back (showing the > > template name, the arguments passed to it and the

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Stéphane Graber
On Thu, Jul 11, 2013 at 09:22:47AM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > To add to the "you broke my lxc-create" list, the new version also > > dropped the fancy header I introduced a while back (showing the template > > name, the arguments passed to it and

Re: [lxc-devel] Howto user namespaces?

2013-07-11 Thread Serge Hallyn
Quoting Rui Xiang (rui.xi...@huawei.com): > On 2013/7/9 23:58, Serge Hallyn wrote: > > Quoting Rui Xiang (rui.xi...@huawei.com): > >> On 2013/7/5 19:48, Serge Hallyn wrote: > >>> Quoting Rui Xiang (rui.xi...@huawei.com): > The same issue troubles me. I try to start the container by these ways

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-11 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > To add to the "you broke my lxc-create" list, the new version also > dropped the fancy header I introduced a while back (showing the template > name, the arguments passed to it and the checksum of the template used > at the time. > > An example was:

Re: [lxc-devel] Howto user namespaces?

2013-07-11 Thread Rui Xiang
On 2013/7/9 23:58, Serge Hallyn wrote: > Quoting Rui Xiang (rui.xi...@huawei.com): >> On 2013/7/5 19:48, Serge Hallyn wrote: >>> Quoting Rui Xiang (rui.xi...@huawei.com): The same issue troubles me. I try to start the container by these ways ... >> >> After setting lxc.tty = 0, the result