<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20911">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Hello everyone,</div><div><br></div><div>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.</div><div><br></div><div>It is very useful for our company so I thought that someone else might find it useful as well.</div><div><br></div><div>Here’s the source for anyone interested: <a href="http://paste.ubuntu.com/12703540/" target="_parent">http://paste.ubuntu.com/12703540/</a></div><div><br></div><div>This is based on the C version found at <a href="https://github.com/fcicq/nsexec/blob/master/uidmapshift.c" target="_parent">https://github.com/fcicq/nsexec/blob/master/uidmapshift.c</a> but this one is instead programmed in Python needing no compiling etc.</div><div><br></div><div>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.</div><div><br></div><div>Kind regards,</div><div>Teemu Grönqvist</div><div>Net9 Oy</div><div><br></div></div>
</body>
</html>