Re: [lxc-devel] [Lxc-users] Working LXC templates? EUREAKA! I think I've got it!

2013-09-15 Thread Tony Su
Hello Michael, First a comment on problems with systemd you descrbe. I probably have run into many of the things you itemized, but since my time is usually focused on something I'm trying to use LXC and not LXC itself, I usually just drop any further attempts and move on to find a workaround(eg co

[lxc-devel] [lxc/lxc] 740d19: cgroup: add bdev.h to fix the build error

2013-09-15 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 740d1928fa85cc2e171c8c700343f0decabdafd0 https://github.com/lxc/lxc/commit/740d1928fa85cc2e171c8c700343f0decabdafd0 Author: Qiang Huang Date: 2013-09-15 (Sun, 15 Sep 2013) Changed paths: M src/lxc/cgroup

Re: [lxc-devel] [PATCH] cgroup: add bdev.h to fix the build error

2013-09-15 Thread Stéphane Graber
On Sat, Sep 14, 2013 at 04:36:27PM +0800, Qiang Huang wrote: > Without this, my box will yell: > cgroup.c: In function ‘lxc_setup_mount_cgroup’: > cgroup.c:1219: error: ‘MS_RELATIME’ undeclared (first use in this > function) > cgroup.c:1219: error: (Each undeclared identifier is reported only once

[lxc-devel] [PATCH] Parse: add error info when parse config failed

2013-09-15 Thread Qiang Huang
When callback of one config line fail, we'd better give the exactly info to help users locate the misconfig. Signed-off-by: Qiang Huang --- src/lxc/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lxc/parse.c b/src/lxc/parse.c index 26cbbdd..dca808d 100644 --- a

[lxc-devel] [PATCH] lxc-create: conside create succeed when container is already created

2013-09-15 Thread Qiang Huang
Sometimes we use: lxc-create -n xxx -f config to copy config to the default lxcpath with the rootfs already exist. But we will get error right now, so fix this. Signed-off-by: Qiang Huang --- src/lxc/lxccontainer.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sr

Re: [lxc-devel] [PATCH] lxc-create: conside create succeed when container is already created

2013-09-15 Thread Stéphane Graber
On Mon, Sep 16, 2013 at 11:37:02AM +0800, Qiang Huang wrote: > Sometimes we use: > lxc-create -n xxx -f config > to copy config to the default lxcpath with the rootfs already > exist. > But we will get error right now, so fix this. Hmm, I'm not sure I understand. Running "lxc-create -n xxx -f con

Re: [lxc-devel] [PATCH] lxc-create: conside create succeed when container is already created

2013-09-15 Thread Qiang Huang
On 2013/9/16 12:23, Stéphane Graber wrote: > On Mon, Sep 16, 2013 at 11:37:02AM +0800, Qiang Huang wrote: >> Sometimes we use: >> lxc-create -n xxx -f config >> to copy config to the default lxcpath with the rootfs already >> exist. >> But we will get error right now, so fix this. > > Hmm, I'm not