[lxc-users] problems or only warning (!?) with lxc-clone
Serge Hallyn
serge.hallyn at ubuntu.com
Thu May 7 22:27:25 UTC 2015
Quoting Yonsy Solis (yonsy.s.p at gmail.com):
>
>
> On Thu, May 7, 2015 at 2:36 PM, Serge Hallyn
> <serge.hallyn at ubuntu.com> wrote:
>
> >> for new containers i clone all from this base container, and I get
> >> this message:
> >> ===
> >> host15 :: ~ ยป lxc-clone -s baseserver testserver
> >> newgidmap: gid range [100000-100001) -> [200000-200001) not allowed
> >
> >You're trying to map 200000 on the host to 100000 in the container,
> >but you're not allowed by /etc/subgid to use 200000 on the host.
> >
> >I suspect you have something like
> >
> >lxc.id_map = g 100000 200000 1
> >
> >when you want maybe
> >
> >lxc.id_map = g 0 100000 1
>
> in $HOME/.config/lxc/default.conf (for unprivileged containers) i
> have this:
>
> ====
> lxc.id_map = u 0 100000 65536
> lxc.id_map = g 0 100000 65536
What is in ~/.local/share/lxc/baseserver/config?
> ====
>
>
> >Guess it depends on exactly what you are trying to do - do you want
> >uid 0 in the container to be uid 100000 on the host?
>
> yes, and works, apparently. The warning (newgidmap .... not allowed)
> appear related to groups
>
>
> Yonsy Solis
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list