[lxc-users] Can't start unprivileged container in Ubuntu 14.04 with LXC 2

2017-05-03 Thread Ben Warren
Hi, I’m stuck with Ubuntu 14.04 for now and would like to be able to run unprivileged containers that are systemd-based. I’ve found lots of examples of problems that are close, but nothing exactly matches. I got the lxc packages from trusty-backports. Versions: ben@ben-sc:~$ lxc-ls --versio

Re: [lxc-users] Can't start unprivileged container in Ubuntu 14.04 with LXC 2

2017-05-07 Thread Ben Warren
Hi Serge, > On May 4, 2017, at 9:00 AM, Serge E. Hallyn wrote: > > Quoting Ben Warren (ben at skyportsystems.com): >> Hi, >> >> I’m stuck with Ubuntu 14.04 for now and would like to be able to run >> unprivileged containers that are systemd-based. I’ve found

Re: [lxc-users] Can't start unprivileged container in Ubuntu 14.04 with LXC 2

2017-05-09 Thread Ben Warren
> On May 9, 2017, at 8:10 AM, Serge E. Hallyn wrote: > > >> >> I’ve made some progress, but still don’t fully know what’s going on. When I >> build lxc from source (top-of-tree github.com:lxc/lxc) and compile with full >> cgmanager and libcap support, the generated binaries work, and I can

Re: [lxc-users] Can't start unprivileged container in Ubuntu 14.04 with LXC 2

2017-05-10 Thread Ben Warren
Hi Serge, > On May 8, 2017, at 11:55 AM, Serge E. Hallyn wrote: > > Quoting Ben Warren (b...@skyportsystems.com <mailto:b...@skyportsystems.com>): >> Hi Serge, >> >>> On May 4, 2017, at 9:00 AM, Serge E. Hallyn wrote: >>> >>> Q

Re: [lxc-users] Can't start unprivileged container in Ubuntu 14.04 with LXC 2

2017-05-10 Thread Ben Warren
> On May 9, 2017, at 1:34 PM, Serge E. Hallyn wrote: > > Hm, my last email (which I may have accidentally sent privately) was wrong, > /proc/$$/mounts shows cgroups in fact mounted at /sys/fs/cgroup. > However, take a look at this: > >> cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset,clo

[lxc-users] Mounting squashfs inside a container

2017-05-30 Thread Ben Warren
Hi, I’m using an LXC to build up a rootfs for another target, and am unable to mount a squashfs image: root@cd-build-dev-385:~# mount -t squashfs -r myproject.squashfs mnt ioctl: LOOP_SET_STATUS: Operation not permitted root@cd-build-dev-385:~# If I instead use ‘unsquashfs’, I get into device c

[lxc-users] How to control order of bind mounts?

2017-12-12 Thread Ben Warren
Hi, I have a container with two overlapping bind mounts. I’m seeing that the order in which they are applied does not seem to be consistent. Here’s a dump of the commands used: # Create a container from local image /usr/bin/lxc init local:c1 c1 # Add four bind mounts /usr/bin/lxc config device

Re: [lxc-users] How to control order of bind mounts?

2017-12-19 Thread Ben Warren
Ping… Is this not possible, or did I miss something? I can add the mounts once the container is running, but that’s not always appropriate. thanks, Ben > On Dec 12, 2017, at 6:51 AM, Ben Warren wrote: > > Hi, > > I have a container with two overlapping bind mounts. I’m