[lxc-users] problems or only warning (!?) with lxc-clone

Yonsy Solis yonsy.s.p at gmail.com
Thu May 7 22:20:07 UTC 2015



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
====


> 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



More information about the lxc-users mailing list