[lxc-users] Do nested containers require that unprivileged container creation be supported?

Nels Nelson nels.n.nelson at gmail.com
Mon Apr 7 16:44:05 UTC 2014

Greetings gentleusers and gentledevelopers,-

Okay, so the Fedora 20 discussion aside, please consider this:

# lxc-create -n outer -t minimal
# lxc-start -n outer -- bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.2# lxc-create -n inner -t minimal
lxc-create: No such file or directory - failed to create container path for
lxc-create: Error creating container inner
bash-4.2# ls /lib/var
ls: cannot access /lib/var: No such file or directory
bash-4.2# ls /var/lib
bash-4.2# mkdir /var/lib/lxc
bash-4.2# ls /var/lib
empty  lxc
bash-4.2# ls /var/lib/lxc
bash-4.2# lxc-create -n inner -t minimal
bash-4.2# ls /var/lib/lxc
bash-4.2# lxc-ls

So, from this, it can be seen that the error I was experiencing had
nothing to do with namespace capability of the operating system being

Instead, it was because for some reason, /var/lib/lxc does not exist
inside the container "outer".

My question is, is this a bug?  Should lxc-create go ahead and create
the necessary parent lxc directory when creating the "inner" container?
Or is this strictly the responsibility of the creator of "outer"?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140407/1b0fc81b/attachment.html>

More information about the lxc-users mailing list