[CRIU] Checkpoint/Restore LXC container with CRIU on a raspberry pi 2
alex vk
avankemp at gmail.com
Tue Jun 14 12:10:12 PDT 2016
Here are the outputs for the timerfd.img and all the fdinfo images :
Alex
pi at pi-desktop:~/checkpoint$ crit show timerfd.img
{
"magic": "TIMERFD",
"entries": [
{
"id": 24,
"flags": "0x80802",
"fown": {
"uid": 0,
"euid": 0,
"signum": 0,
"pid_type": 0,
"pid": 0
},
"clockid": 0,
"ticks": 0,
"settime_flags": "0x3",
"vsec": 682023567,
"vnsec": 553637761,
"isec": 0,
"insec": 0
},
{
"id": 42,
"flags": "0x80802",
"fown": {
"uid": 0,
"euid": 0,
"signum": 0,
"pid_type": 0,
"pid": 0
},
"clockid": 1,
"ticks": 0,
"settime_flags": "0x1",
"vsec": 175,
"vnsec": 707095586,
"isec": 0,
"insec": 0
},
{
"id": 45,
"flags": "0x80802",
"fown": {
"uid": 0,
"euid": 0,
"signum": 0,
"pid_type": 0,
"pid": 0
},
"clockid": 0,
"ticks": 0,
"settime_flags": "0x1",
"vsec": 67651,
"vnsec": 268899125,
"isec": 0,
"insec": 0
},
{
"id": 65,
"flags": "0x80802",
"fown": {
"uid": 0,
"euid": 0,
"signum": 0,
"pid_type": 0,
"pid": 0
},
"clockid": 1,
"ticks": 1,
"settime_flags": "0x1",
"vsec": 0,
"vnsec": 0,
"isec": 0,
"insec": 0
}
]
}
----------------------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-2.img
{
"magic": "FDINFO",
"entries": [
{
"id": 19,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 19,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 19,
"flags": 0,
"type": "REG",
"fd": 2
},
{
"id": 20,
"flags": 1,
"type": "NETLINKSK",
"fd": 3
},
{
"id": 21,
"flags": 1,
"type": "EVENTPOLL",
"fd": 4
},
{
"id": 22,
"flags": 1,
"type": "SIGNALFD",
"fd": 5
},
{
"id": 23,
"flags": 1,
"type": "REG",
"fd": 6
},
{
"id": 24,
"flags": 1,
"type": "TIMERFD",
"fd": 7
},
{
"id": 25,
"flags": 1,
"type": "EVENTPOLL",
"fd": 8
},
{
"id": 26,
"flags": 1,
"type": "REG",
"fd": 9
},
{
"id": 27,
"flags": 1,
"type": "INOTIFY",
"fd": 10
},
{
"id": 28,
"flags": 1,
"type": "UNIXSK",
"fd": 11
},
{
"id": 29,
"flags": 1,
"type": "UNIXSK",
"fd": 12
},
{
"id": 30,
"flags": 1,
"type": "PIPE",
"fd": 13
},
{
"id": 31,
"flags": 1,
"type": "PIPE",
"fd": 14
},
{
"id": 32,
"flags": 1,
"type": "PIPE",
"fd": 15
},
{
"id": 33,
"flags": 1,
"type": "PIPE",
"fd": 16
},
{
"id": 34,
"flags": 1,
"type": "INOTIFY",
"fd": 17
},
{
"id": 35,
"flags": 1,
"type": "INOTIFY",
"fd": 18
},
{
"id": 36,
"flags": 1,
"type": "UNIXSK",
"fd": 19
},
{
"id": 37,
"flags": 1,
"type": "FIFO",
"fd": 20
},
{
"id": 38,
"flags": 1,
"type": "INOTIFY",
"fd": 21
},
{
"id": 39,
"flags": 1,
"type": "UNIXSK",
"fd": 22
},
{
"id": 40,
"flags": 1,
"type": "UNIXSK",
"fd": 23
},
{
"id": 41,
"flags": 1,
"type": "UNIXSK",
"fd": 24
},
{
"id": 42,
"flags": 1,
"type": "TIMERFD",
"fd": 25
},
{
"id": 43,
"flags": 1,
"type": "NETLINKSK",
"fd": 26
},
{
"id": 44,
"flags": 1,
"type": "UNIXSK",
"fd": 27
},
{
"id": 45,
"flags": 1,
"type": "TIMERFD",
"fd": 28
},
{
"id": 46,
"flags": 1,
"type": "INOTIFY",
"fd": 29
},
{
"id": 47,
"flags": 1,
"type": "UNIXSK",
"fd": 31
}
]
}
--------------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-3.img
{
"magic": "FDINFO",
"entries": [
{
"id": 57,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 58,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 58,
"flags": 0,
"type": "REG",
"fd": 2
},
{
"id": 43,
"flags": 1,
"type": "NETLINKSK",
"fd": 3
},
{
"id": 36,
"flags": 1,
"type": "UNIXSK",
"fd": 4
},
{
"id": 40,
"flags": 1,
"type": "UNIXSK",
"fd": 5
},
{
"id": 41,
"flags": 1,
"type": "UNIXSK",
"fd": 6
},
{
"id": 59,
"flags": 1,
"type": "EVENTPOLL",
"fd": 7
},
{
"id": 60,
"flags": 1,
"type": "REG",
"fd": 8
},
{
"id": 61,
"flags": 1,
"type": "SIGNALFD",
"fd": 9
},
{
"id": 62,
"flags": 1,
"type": "SIGNALFD",
"fd": 10
},
{
"id": 63,
"flags": 1,
"type": "SIGNALFD",
"fd": 11
},
{
"id": 64,
"flags": 1,
"type": "UNIXSK",
"fd": 12
},
{
"id": 65,
"flags": 1,
"type": "TIMERFD",
"fd": 13
},
{
"id": 66,
"flags": 1,
"type": "REG",
"fd": 14
},
{
"id": 67,
"flags": 1,
"type": "UNIXSK",
"fd": 15
},
{
"id": 47,
"flags": 1,
"type": "UNIXSK",
"fd": 16
}
]
}
----------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-4.img
{
"magic": "FDINFO",
"entries": [
{
"id": 72,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 73,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 74,
"flags": 0,
"type": "REG",
"fd": 2
},
{
"id": 75,
"flags": 1,
"type": "UNIXSK",
"fd": 3
},
{
"id": 76,
"flags": 0,
"type": "REG",
"fd": 4
},
{
"id": 77,
"flags": 1,
"type": "PACKETSK",
"fd": 5
},
{
"id": 78,
"flags": 1,
"type": "INETSK",
"fd": 6
}
]
}
------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-5.img
{
"magic": "FDINFO",
"entries": [
{
"id": 84,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 85,
"flags": 0,
"type": "UNIXSK",
"fd": 1
},
{
"id": 85,
"flags": 0,
"type": "UNIXSK",
"fd": 2
},
{
"id": 86,
"flags": 1,
"type": "REG",
"fd": 3
}
]
}
------------------------------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-6.img
{
"magic": "FDINFO",
"entries": [
{
"id": 95,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 96,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 96,
"flags": 0,
"type": "REG",
"fd": 2
},
{
"id": 39,
"flags": 1,
"type": "UNIXSK",
"fd": 3
},
{
"id": 97,
"flags": 0,
"type": "REG",
"fd": 4
},
{
"id": 98,
"flags": 1,
"type": "REG",
"fd": 5
}
]
}
---------------------------------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-7.img
{
"magic": "FDINFO",
"entries": [
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 2
},
{
"id": 101,
"flags": 1,
"type": "REG",
"fd": 10
}
]
}
----------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-8.img
{
"magic": "FDINFO",
"entries": [
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 1
},
{
"id": 100,
"flags": 0,
"type": "REG",
"fd": 2
}
]
}
-------------------------------------------
pi at pi-desktop:~/checkpoint$ crit show fdinfo-9.img
{
"magic": "FDINFO",
"entries": [
{
"id": 116,
"flags": 0,
"type": "REG",
"fd": 0
},
{
"id": 117,
"flags": 0,
"type": "UNIXSK",
"fd": 1
},
{
"id": 117,
"flags": 0,
"type": "UNIXSK",
"fd": 2
}
]
}
2016-06-14 20:45 GMT+02:00 Cyrill Gorcunov <gorcunov at gmail.com>:
> On Tue, Jun 14, 2016 at 12:39:50PM -0600, Tycho Andersen wrote:
> > On Tue, Jun 14, 2016 at 08:25:32PM +0200, alex vk wrote:
> > > Hi again,
> > >
> > > I removed the 'lxc.console=none' from the config file, and the output
> of
> > > the tty.info is "tty[8801:b]"
> > >
> > > However the restore now fails with this message :
> > >
> > > pie: 1: Error (pie/restorer.c:888): Can't restore ticks/time for timer>
> > > pie: 1: fd - 0
> > > pie: 1: Error (pie/restorer.c:1408): Can't restore timerfd -22
> >
> > It looks like the only way you'd get this is if the fd passed to
> > timerfd_settime was not a real timerfd. (at least based on
> >
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5442e9fbd
> > and the check for t->ticks in the CRIU code the EINVAL you get should
> > come from timerfd_settime).
>
> Not only. EINVAL comes from flags and settings too. So timerfd.img might
> help here.
>
> >
> > Can you give the output of `crit show fdinfo-$id.img` for all your
> > fdinfo images?
> >
> > I'm also CCing Cyrill, maybe he has a better idea :)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160614/f8e75219/attachment-0001.html>
More information about the CRIU
mailing list