<div dir="ltr">I was using CRIU 3.4, but managed to fix it myself. I was migrating an lxc container between two hosts but the uid/gid mappings were different,<div>I fixed it by using crit and fixing the mappings in cgroup.img, userns-11.img.</div><div><br></div><div>If you think it's worthwhile I'll try and add a patch to accept a shift parameter in the restore.</div><div><br></div><div>Thanks,</div><div>Eytan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 2, 2017 at 10:57 PM, Andrei Vagin <span dir="ltr"><<a href="mailto:avagin@virtuozzo.com" target="_blank">avagin@virtuozzo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Sep 24, 2017 at 05:17:04PM +0300, Eytan Heidingsfeld wrote:<br>
> Hi,<br>
> I'm trying to migrate an unprivileged container between two lxc hosts using<br>
> criu, using bindfs on both hosts to make sure the uid/gid match.<br>
> The restore fails with:<br>
><br>
> """<br>
> 1: Error (criu/cr-restore.c:1417): mkdtemp failed crtools-proc.K9qSPw:<br>
> Permission denied<br>
> """<br>
><br>
> Looking at the code it's trying to create a tmp dir for /proc but fails, I<br>
> don't know where to continue looking.<br>
<br>
</span>What version of criu do you use?<br>
<br>
Could you show /proc/pid/mountinfo for the init process of your<br>
container?<br>
<br>
Thanks,<br>
Andrei<br>
<br>
><br>
> Thanks in Advance,<br>
> Eytan<br>
<br>
> ______________________________<wbr>_________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/<wbr>mailman/listinfo/criu</a><br>
<br>
</blockquote></div><br></div>