[lxc-users] [Marketing Mail] Re: unprivileged container with zfs backing

Jäkel, Guido G.Jaekel at dnb.de
Wed Feb 4 10:59:07 UTC 2015


Dear Adam,

>From: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Adam Gold
>
>I've only ever created containers using lxc-create.  Are you saying that
>I should manually create a template container at the root of a
>particular zfs filesystem (e.g. zfs/lxc/containers/c1) and then I simply
>use zfs clone to create each new container (and, of course, tweak the
>config)?  If so, what's the best way to manually create a template in
>unprivileged mode to ensure all the subuids and subgids are assigned
>correctly.
>
>Also, for the additional containers that I get from zfs cloning, will
>they be recognised by 'lxc-* -n' commands?

You also have to clone and tweak the Container's configuration file, usual located at /etc/lxc/ . You'll see what is obvious to change - like the (nearly arbitrary) location of the containers rootfs.

Guido


More information about the lxc-users mailing list