[lxc-users] LXD Live Migration: error - must have criu 1.9 or greater

John Dupont johnd568 at outlook.com
Thu Feb 18 14:27:09 UTC 2016


Thank you for your suggestions! I re-built criu from the github repository, and when trying to execute the "lxc move" command, I now obtain the following error message:
error: Error transferring container data: checkpoint failed:
checkpoint failed

The lxc.log file indicates: "lxc_criu - criu.c:criu_ok:405 - couldn't find devices.deny = c 5:1 rwm"
Would you know what causes it, and how to fix it? 

Thank you!

________________________________________
From: lxc-users <lxc-users-bounces at lists.linuxcontainers.org> on behalf of Tycho Andersen <tycho.andersen at canonical.com>
Sent: Tuesday, February 16, 2016 6:38 AM
To: LXC users mailing-list
Subject: Re: [lxc-users] LXD Live Migration: error - must have criu 1.9 or greater

On Sat, Feb 13, 2016 at 10:14:25AM +0100, Thomas Lamprecht wrote:
> Hi,
>
> On 11.02.2016 19:33, John Dupont wrote:
> > Hello,
> >
> > I am trying to live migrate a container, following the steps described
> > at: https://insights.ubuntu.com/2015/05/06/live-migration-in-lxd/
> >
> > However, when I execute the migrate command, I obtain an error:
> > # lxc move migratee lxd2:migratee
> > error: Error transferring container data: checkpoint failed:
> > checkpoint failed
> >
> > When checking the log file (/var/log/lxd/migratee/lxc.log), I see the
> > following line:
> > lxc [...] ERROR    lxc_criu - criu.c:criu_version_ok:348 - must have
> > criu 1.9 or greater to checkpoint/restore
> >
> > The machine (Ubuntu 14.04) is running criu version 1.7.2, and on the
> > criu webpage (https://criu.org/Main_Page), the latest version appears to
> > be version 1.8. However, the error suggests a more recent version 1.9 to
> > be required. Would you know where I can find version 1.9 of criu? Or is
> > the failure caused by something else?
> >
>
> No there's a hard version check to criu 1.9 in the code, why I'm not
> quite clear, but I assume there's a reason, e.g. not working with the
> latest release 1.8 but working with the newest code commits since then.

Right, liblxc uses options now (--lsm-profile) that aren't in any
released version of criu.

> You could build it yourself from crius github repository, LXC has a
> separate check when criu is build from (git) sources, so that should
> work - at least for the version check.

Yep, liblxc is smart enough to check criu's version output for the
right patchlevel, so a sufficiently new source build of CRIU should
work.

Tycho

> cheers,
> Thomas
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list