Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-11 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Sat, Jan 9, 2016 at 4:58 PM, Xavier Gendre wrote: > > Le 09/01/2016 03:23, Fajar A. Nugraha a écrit : > >> Anyway, I wrote this several months ago, should be the easiest way to > >> get unpriv jessie on jessie: http://debian-lxc.github.io/ > >> The r

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-09 Thread Fajar A. Nugraha
On Sat, Jan 9, 2016 at 4:58 PM, Xavier Gendre wrote: > Le 09/01/2016 03:23, Fajar A. Nugraha a écrit : >> Anyway, I wrote this several months ago, should be the easiest way to >> get unpriv jessie on jessie: http://debian-lxc.github.io/ >> The repo has lxc-1.1.5 and cgmanager, ported from ubuntu.

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-09 Thread Xavier Gendre
Le 09/01/2016 03:23, Fajar A. Nugraha a écrit : > Anyway, I wrote this several months ago, should be the easiest way to > get unpriv jessie on jessie: http://debian-lxc.github.io/ > The repo has lxc-1.1.5 and cgmanager, ported from ubuntu. I have followed your tutorials and it works perfectly well

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-08 Thread Xavier Gendre
Hello Fajar, > Anyway, I wrote this several months ago, should be the easiest way to > get unpriv jessie on jessie: http://debian-lxc.github.io/ > The repo has lxc-1.1.5 and cgmanager, ported from ubuntu. I just discover your link and I wonder how I could miss it! Thanks a lot, it seems that ever

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-08 Thread Fajar A. Nugraha
On Sat, Jan 9, 2016 at 3:40 AM, Xavier Gendre wrote: > Hello Carlos, > >> Once you replace systemd with sysvinit in the container, you get it >> booting and starting the services, but you can't login on it (via the >> login prompt) or ssh on it. > > I didn't know that, i always use lxc-attach to g

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-08 Thread Xavier Gendre
Hello Carlos, > Once you replace systemd with sysvinit in the container, you get it > booting and starting the services, but you can't login on it (via the > login prompt) or ssh on it. I didn't know that, i always use lxc-attach to get a prompt in my containers and it works like a charm. > You

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2016-01-08 Thread Carlos Alberto Lopez Perez
On 13/10/15 12:11, Xavier Gendre wrote: > > You can run unprivileged Jessie container in a Jessie host. The point is > that the container fails to start mainly because of systemd in the > Jessie container. > > To tackle that problem, i create a custom image of Jessie without > systemd and it runs

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-14 Thread Christian Benke
>>sudo service cgmanager start >>sudo cgm create all $USER >>sudo cgm chown all $USER $(id -u) $(id -g) >>sudo cgm movepid all $USER $$ > echo \$\$ >> /sys/fs/cgroup/perf_event/lxc-bobby/tasks; \ > echo \$\$ >> /sys/fs/cgroup/blkio/lxc-bobby/tasks; \ > echo \$\$ >> /sys/fs/cg

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-14 Thread Xavier Gendre
and i use this image in my Jessie host (where i tweak my cgroups through a custom systemd service in order to give ownerships to the unprivileged users). Could you maybe also share that custom systemd service configuration? Then I can continue to sit on my lazy butt and don't have to reinvent th

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-14 Thread Christian Benke
On 14 October 2015 at 17:46, Xavier Gendre wrote: > If you have to do such things, i think that you try to apply my tutorial in > a Debian host. It will work but, as you notice, you will have to tweak > cgroup by hand. On my side, i create the Jessie image in a VM with Ubuntu > (because there is n

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-14 Thread Xavier Gendre
Although setting it up was not as straightforward as your tutorial: - Package "python3-all-dev" currently has dependency issues (https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1503382, http://askubuntu.com/a/683604/331398) I was able to solve this by adding a time.sleep(120) in lxc-

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-14 Thread Christian Benke
On 13 October 2015 at 12:11, Xavier Gendre wrote: > You can run unprivileged Jessie container in a Jessie host. The point is > that the container fails to start mainly because of systemd in the Jessie > container. > > To tackle that problem, i create a custom image of Jessie without systemd > and

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Paul Jones
Unprivileged containers are indeed possible on Debian. You need to set unprivileged_userns_clone Also, if I recall the download template may only support wheezy. I'm sorry I'm answering from my phone about to go to work, but if you search around you should be able to find more about this informa

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Xavier Gendre
Le 13/10/2015 11:49, Fajar A. Nugraha a écrit : On Tue, Oct 13, 2015 at 4:44 PM, Christian Benke wrote: On 13 October 2015 at 11:15, Fajar A. Nugraha wrote: So bottom line, don't bother unless you're willing to run a "frakenstein", unsupported distro. Either retry with stretch and hope it wor

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Fajar A. Nugraha
On Tue, Oct 13, 2015 at 4:44 PM, Christian Benke wrote: > On 13 October 2015 at 11:15, Fajar A. Nugraha wrote: >> So bottom line, don't bother unless you're willing to run a >> "frakenstein", unsupported distro. Either retry with stretch and hope >> it works better, or switch to ubuntu. > > Thank

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Christian Benke
On 13 October 2015 at 11:15, Fajar A. Nugraha wrote: > So bottom line, don't bother unless you're willing to run a > "frakenstein", unsupported distro. Either retry with stretch and hope > it works better, or switch to ubuntu. Thanks a lot for the detailed explanation Fajar! Looks like I'm just g

Re: [lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Fajar A. Nugraha
On Tue, Oct 13, 2015 at 3:32 PM, Christian Benke wrote: > Hello! > > I'm struggling to create an unprivileged Jessie container on a Jessie > host. I came across this chart: > https://www.flockport.com/lxc-and-lxd-support-across-distributions/, > which points out that unprivileged containers are cu

[lxc-users] Status: Debian Jessie support for unprivileged containers?

2015-10-13 Thread Christian Benke
Hello! I'm struggling to create an unprivileged Jessie container on a Jessie host. I came across this chart: https://www.flockport.com/lxc-and-lxd-support-across-distributions/, which points out that unprivileged containers are currently not supported on Debian Jessie. Can someone tell me if this