Re: [lxc-devel] lxc-clone rewrite

2015-08-27 Thread Christian Brauner
On Thu, Aug 27, 2015 at 03:41:03PM -0400, Stéphane Graber wrote: On Sun, Aug 16, 2015 at 04:46:31PM +, Serge Hallyn wrote: Quoting Christian Brauner (christianvanbrau...@gmail.com): Integrating lxc-clone with the standard lxc parser is not possible unless it is allowed to change

Re: [lxc-devel] [PATCH 4/4] Fix grammar in some of the executables NAME for name of the container becomes NAME of the container

2015-08-20 Thread Christian Brauner
Updated PR on Github. Retains old behaviour of lxc executables. ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel

[lxc-devel] [PATCH 2/4] lxc-destroy: Remove container with all snapshots

2015-08-14 Thread Christian Brauner
. Signed-off-by: Christian Brauner christianvanbrau...@gmail.com --- src/lxc/lxc_destroy.c | 74 ++- 1 file changed, 56 insertions(+), 18 deletions(-) diff --git a/src/lxc/lxc_destroy.c b/src/lxc/lxc_destroy.c index 955fc23..32bd2b4 100644 --- a/src

[lxc-devel] [PATCH 4/4] Fix grammar in some of the executables NAME for name of the container becomes NAME of the container

2015-08-14 Thread Christian Brauner
Signed-off-by: Christian Brauner christianvanbrau...@gmail.com --- src/lxc/lxc_attach.c | 2 +- src/lxc/lxc_cgroup.c | 2 +- src/lxc/lxc_checkpoint.c | 2 +- src/lxc/lxc_console.c| 2 +- src/lxc/lxc_create.c | 4 ++-- src/lxc/lxc_device.c | 2 +- src/lxc/lxc_execute.c| 2

[lxc-devel] lxc-clone rewrite

2015-08-14 Thread Christian Brauner
Integrating lxc-clone with the standard lxc parser is not possible unless it is allowed to change command line options. lxc-clone uses -n, -P and -o in a way that is inconsistent with the standard lxc common options defined in LXC_COMMON_OPTIONS in arguments.h and the parser in arguments.c. Since

[lxc-devel] [PATCH] mod_rdep(): Write path and name of clone to file

2015-08-13 Thread Christian Brauner
to delete the original container if the file is not empty then it is not safe. Signed-off-by: Christian Brauner christianvanbrau...@gmail.com --- src/lxc/lxccontainer.c | 98 +++--- 1 file changed, 61 insertions(+), 37 deletions(-) diff --git a/src

Re: [lxc-devel] [PATCH] Refactor lxc-snapshot

2015-08-07 Thread Christian Brauner
Updated version as PR on github. On Thu, Aug 06, 2015 at 03:47:04PM +0200, Christian Brauner wrote: - lxc_snapshot.c lacked necessary members in the associated lxc_arguments struct in arguments.h. This commit extends the lxc_arguments struct to include several parameters used by lxc

[lxc-devel] Extending lxc_arguments struct

2015-08-04 Thread Christian Brauner
Hi Serge, hi Stéphane, currently the struct lxc_arguments lacks quite a few options which are required by e.g. lxc-snapshot and lxc-clone which leads to a non-uniform implementation of some of the executables. Would you be open to adding new members to the lxc_arguments struct in order to rewrite

[lxc-devel] Archlinux in download

2015-05-29 Thread Christian Brauner
Hello, since systemd 219 was released and included in Archlinux unprivileged Archlinux containers work out of the box. Simply bootstrapping a barebone rootfs via pacstrap and uidmapshifting it will suffice. However, it would be convenient to be able to download unprivileged Archlinux containers

[lxc-devel] uidmapshift et al.

2015-02-21 Thread Christian Brauner
Hello, I think it would be a really good idea to provide the nsexec tools with lxc per default. A lot of users (including myself) probably bootstrap a new filesystem for various distributions. Hence, they do not necessarily rely on templates or download templates provided with lxc. In order to

[lxc-devel] Systemd creates btrfs subvolume under /var/lib/machines and makes lxc-destroy fail

2015-02-17 Thread Christian Brauner
Quoting Christian Brauner (christianvanbrauner at gmail.com): On Sun, Feb 15, 2015 at 05:21:19PM +0100, Christian Brauner wrote: Hello, I test the newest systemd from git on a regular basis by compiling it and installing it into a container and booting it. I did

[lxc-devel] [PATCH] /proc/stat in lxcfs

2015-02-16 Thread Christian Brauner
; Your way is the better way to do it. I adjusted and squased the PR and post the patch again here as well: commit 21c3c7ace34eaf5f19074e33d050896b5cc3 Author: Christian Brauner christianvanbrau...@gmail.com Date: Sun Feb 15 11:31:31 2015 +0100 Show cpu-average in /proc/stat and start cup

[lxc-devel] Systemd creates btrfs subvolume under /var/lib/machines and makes lxc-destroy fail

2015-02-15 Thread Christian Brauner
Hello, I test the newest systemd from git on a regular basis by compiling it and installing it into a container and booting it. I did that with the several current systemd versions from git for the last couple of weeks. It seems that in the next version when booting a container with lxc-start,

[lxc-devel] [PATCH] /proc/stat in lxcfs

2015-02-15 Thread Christian Brauner
for that: Signed-off-by: Christian Brauner christianvanbrau...@gmail.com Date: Sun Feb 15 10:34:41 2015 +0100 Bring the cpu-average line to /proc/stat mounted by lxcfs and let the core numbering start at 0. diff --git a/lxcfs.c b/lxcfs.c index d6fb101..ab296e7 100644 --- a/lxcfs.c +++ b/lxcfs.c

[lxc-devel] Followup to: capset fails with userns

2015-02-11 Thread Christian Brauner
Here is the original problem which I'm still experiencing with lxc 1.1: w/ userns: [root at fedora2 ~]# setcap 'cap_net_admin,cap_net_raw+ep' /usr/bin/ping Failed to set capabilities on file `/usr/bin/ping' (Operation not permitted) [root at fedora2 ~]# id uid=0(root) gid=0(root)

<    1   2   3   4   5   6