Re: [lxc-users] systemd hangs at container start

2015-05-05 Thread Dietmar Maurer
> Known old bug with fix released. > > IIRC the fixes for systemd inside a privileged container is included > in 219. Jessie use 215. You can try rebuilding systemd 219 from debian > experimental or ubuntu vivid. Is there already a bug report on debian BTS for that? > > I noticed the same proble

Re: [lxc-users] systemd hangs at container start

2015-05-05 Thread Fajar A. Nugraha
On Wed, May 6, 2015 at 12:41 PM, Dietmar Maurer wrote: > using lxc 1.1.1, I downloaded a debian jessie based container with > But I am unable to start it (hangs in init): > > # lxc-start -n 201 -F > Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied > > But it works if I disable

[lxc-users] systemd hangs at container start

2015-05-05 Thread Dietmar Maurer
using lxc 1.1.1, I downloaded a debian jessie based container with # lxc-create -n test -t download ... the container config looks like: lxc.arch = x86_64 lxc.include = /usr/share/lxc/config/debian.common.conf lxc.utsname = test ... But I am unable to start it (hangs in init): # lxc-start -n 2

Re: [lxc-users] lxc SLES container and failed container creation.

2015-05-05 Thread Fajar A. Nugraha
On Wed, May 6, 2015 at 7:47 AM, Narahari Lakshminarayana wrote: > Ok. finally I got some time to retry this and get this to progress. But I > have hit some roadblocks. I have pasted the log here. Please take a min > and advise what is possibly wrong. > > I am trying to setup LXC container on a

[lxc-users] lxc SLES container and failed container creation.

2015-05-05 Thread Narahari Lakshminarayana
Ok. finally I got some time to retry this and get this to progress. But I have hit some roadblocks. I have pasted the log here. Please take a min and advise what is possibly wrong. I am trying to setup LXC container on a SLES 11SP3 host. Since there is no template for SLES I have to use the o

Re: [lxc-users] Understanding permissions for unprivileged LXC containers.

2015-05-05 Thread Neil Greenwood
The kernel in the container will run as user 10, and the user with ID 1000 inside will run under that kernel. So since the kernel has permission to access the root filesystem, the 1000/101000 user does not need separate permission. At least as I understand it. Neil On 4 May 2015 04:14:19 B

Re: [lxc-users] LXD Openstack

2015-05-05 Thread Chuck Short
Hi On Tue, May 5, 2015 at 1:09 AM, Alvaro Miranda wrote: > Hello, > > Anything? > Sorry for the delay: https://zulcss.wordpress.com/2015/05/01/introduction-to-nova-compute-lxd/ If you have any questions please let me know. > > Thanks ! > > > > > > On 29/04/2015, at 19:23, Serge Hallyn wrote

Re: [lxc-users] How to auto-start LXC containers with LXD

2015-05-05 Thread Andrey Repin
Greetings, Serge Hallyn! >> How do I configure LXC containers so that it'll start automatically in >> Ubuntu 15.04 and LXD? >> Ubuntu documentation states that the containers with the configuration >> lxc.start.auto=1 will be started on boot however I couldn't find the config >> file for the conta

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-05 Thread Giles Thomas
Hi Tycho, On 05/05/15 16:50, Tycho Andersen wrote: Can you check the lxd stderr by chance (probably lives in /var/log somewhere depending on what init system you're using)? I suspect that liblxc is rejecting dumping the container in its internal predump checks, but the above log doesn't say wa

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-05 Thread Tycho Andersen
On Tue, May 05, 2015 at 04:26:50PM +0100, Giles Thomas wrote: > Hi Tycho, > > On 05/05/15 14:43, Tycho Andersen wrote: > >On Tue, May 05, 2015 at 02:18:23PM +0100, Giles Thomas wrote: > >>On 04/05/15 14:15, Tycho Andersen wrote: > >>>What versions of criu and liblxc do you have installed? Can you

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-05 Thread Giles Thomas
Hi Tycho, On 05/05/15 14:43, Tycho Andersen wrote: On Tue, May 05, 2015 at 02:18:23PM +0100, Giles Thomas wrote: On 04/05/15 14:15, Tycho Andersen wrote: What versions of criu and liblxc do you have installed? Can you look in /var/lib/lxd/lxc//lxc.log (or /var/log/lxd//lxc.log; there was a bug

Re: [lxc-users] Detailed LXD documentation?

2015-05-05 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > On Tue, May 05, 2015 at 11:02:28AM +0300, Ozan Hazer wrote: > > Hi... I'm setting up a new server and decided to use LXD for LXC management > > but I'm not sure if it's too early for that... > > The OS is ubuntu 15.04 and I don't have LXC exp

Re: [lxc-users] How to auto-start LXC containers with LXD

2015-05-05 Thread Serge Hallyn
Quoting Ozan Hazer (ozanha...@gmail.com): > Hi, > > How do I configure LXC containers so that it'll start automatically in > Ubuntu 15.04 and LXD? > Ubuntu documentation states that the containers with the configuration > lxc.start.auto=1 will be started on boot however I couldn't find the config

Re: [lxc-users] Detailed LXD documentation?

2015-05-05 Thread Tycho Andersen
On Tue, May 05, 2015 at 11:02:28AM +0300, Ozan Hazer wrote: > Hi... I'm setting up a new server and decided to use LXD for LXC management > but I'm not sure if it's too early for that... > The OS is ubuntu 15.04 and I don't have LXC experience, I just read some... > > I created a container with th

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-05 Thread Tycho Andersen
On Tue, May 05, 2015 at 02:18:23PM +0100, Giles Thomas wrote: > Hi Tycho, > > Thanks for the reply! > > On 04/05/15 14:15, Tycho Andersen wrote: > >What versions of criu and liblxc do you have installed? Can you look in > >/var/lib/lxd/lxc//lxc.log (or /var/log/lxd//lxc.log; > >there was a bug fi

Re: [lxc-users] Trying out migration, getting "error: checkpoint failed"

2015-05-05 Thread Giles Thomas
Hi Tycho, Thanks for the reply! On 04/05/15 14:15, Tycho Andersen wrote: What versions of criu and liblxc do you have installed? Can you look in /var/lib/lxd/lxc//lxc.log (or /var/log/lxd//lxc.log; there was a bug fixed recently that moved it to the latter location). Heh, I hadn't realised

Re: [lxc-users] Debian stable not present in the image list of lxc-template-download

2015-05-05 Thread Marco
I'm interested too in helping on debian! :) Good to know there are debian users subscribed here :) -- Marco ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] How to auto-start LXC containers with LXD

2015-05-05 Thread Ozan Hazer
Hi, How do I configure LXC containers so that it'll start automatically in Ubuntu 15.04 and LXD? Ubuntu documentation states that the containers with the configuration lxc.start.auto=1 will be started on boot however I couldn't find the config file for the container. Thanks, M.Ozan Hazer

Re: [lxc-users] no network in vivid image? - addendum

2015-05-05 Thread Andrey Repin
Greetings, Fajar A. Nugraha! > You DO know that utopic will reach end of life in July? > https://wiki.ubuntu.com/Releases > If you absolutely want the latest released version, I'd suggest using > vivid in privileged mode (if you have some software that depends on > systemd), or vivid + upstart in

Re: [lxc-users] Detailed LXD documentation?

2015-05-05 Thread Ozan Hazer
Ok nevermind my post, the rootfs is under /var/lib/lxd/lxc and I set the permissions from the host shell and everything seems to be fine now. M.Ozan Hazer On Tue, May 5, 2015 at 11:02 AM, Ozan Hazer wrote: > Hi... I'm setting up a new server and decided to use LXD for LXC > management but I'm

[lxc-users] Detailed LXD documentation?

2015-05-05 Thread Ozan Hazer
Hi... I'm setting up a new server and decided to use LXD for LXC management but I'm not sure if it's too early for that... The OS is ubuntu 15.04 and I don't have LXC experience, I just read some... I created a container with this: lxd-images import lxc ubuntu trusty amd64 --alias ubuntu lxc laun

Re: [lxc-users] no network in vivid image? - addendum

2015-05-05 Thread Fajar A. Nugraha
You DO know that utopic will reach end of life in July? https://wiki.ubuntu.com/Releases If you absolutely want the latest released version, I'd suggest using vivid in privileged mode (if you have some software that depends on systemd), or vivid + upstart in unprivileged. Bear in mind though that

Re: [lxc-users] no network in vivid image? - addendum

2015-05-05 Thread david . andel
Thanks Fajar for the explanations! I am going to stick to utopic for the time being :-) David -"lxc-users" wrote: - To: LXC users mailing-list From: "Fajar A. Nugraha" Sent by: "lxc-users" Date: 05/05/2015 9:16 Subject: Re: [lxc-users] no network in vivid image? - addendum Longer ver

Re: [lxc-users] no network in vivid image? - addendum

2015-05-05 Thread Fajar A. Nugraha
Longer version: /lib/systemd/system/ifup@.service has BindsTo=sys-subsystem-net-devices-%i.device, which doesn't work on unprivileged container. You can do either one of these workaround: (1) remove the dependency, by creating a mask (inside the container), and then install the service manually