[CRIU] Migrating between two lxc hosts using criu

Eytan Heidingsfeld eytanh at gmail.com
Wed Oct 4 18:11:20 MSK 2017


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,
I fixed it by using crit and fixing the mappings in cgroup.img,
userns-11.img.

If you think it's worthwhile I'll try and add a patch to accept a shift
parameter in the restore.

Thanks,
Eytan


On Mon, Oct 2, 2017 at 10:57 PM, Andrei Vagin <avagin at virtuozzo.com> wrote:

> On Sun, Sep 24, 2017 at 05:17:04PM +0300, Eytan Heidingsfeld wrote:
> > Hi,
> > I'm trying to migrate an unprivileged container between two lxc hosts
> using
> > criu, using bindfs on both hosts to make sure the uid/gid match.
> > The restore fails with:
> >
> > """
> > 1: Error (criu/cr-restore.c:1417): mkdtemp failed crtools-proc.K9qSPw:
> > Permission denied
> > """
> >
> > Looking at the code it's trying to create a tmp dir for /proc but fails,
> I
> > don't know where to continue looking.
>
> What version of criu do you use?
>
> Could you show /proc/pid/mountinfo for the init process of your
> container?
>
> Thanks,
> Andrei
>
> >
> > Thanks in Advance,
> > Eytan
>
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20171004/c7eee2a2/attachment.html>


More information about the CRIU mailing list