Hello everyone,

Made this tool in the morning. It can be used to shift subuid and subgid maps 
of unprivleged containers easily to bigger or smaller range making migrations 
and things like that a whole lot easier. I’m not sure if LXD does this by 
default when migrating, but anyways yeah, it’s a good tool for plain LXC to say 
the least.


It is very useful for our company so I thought that someone else might find it 
useful as well.


Here’s the source for anyone interested: http://paste.ubuntu.com/12703540/


This is based on the C version found at 
https://github.com/fcicq/nsexec/blob/master/uidmapshift.c but this one is 
instead programmed in Python needing no compiling etc.


I have tested it a few times on a few folders but it might have some bugs, so 
maybe someone more experienced in Python than me might want to give it a look.


Kind regards,

Teemu Grönqvist

Net9 Oy
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to