[CRIU] Use lxc-checkpoint to checkpoint/restore the container

Tina Li litianlin2014 at gmail.com
Fri Sep 11 08:21:17 PDT 2015


Hi all,
I am trying to checkpoint/restore the container using the following
commands.
 sudo lxc-checkpoint -s -D /tmp/checkpoint -n mycontainer
 sudo lxc-checkpoint -r -D /tmp/checkpoint -n mycontainer
The lxc-checkpoint command will invoke criu to do checkpoint and restore.
I have some doubts:
1) After restoring the container, why all the process pids related to the
container are changed?
E.g. before checkpoint, the PID of container is 1385, but after restore the
PID of the container is  3089. (1385 is not occupied by other process.)
2) If I use lxc-attach to enter the container, and run a process in it.
Then when checkpoint the container, the process is stopped, but when
restore the container, the process is not resumed. Does anyone know why?

Thanks,
Tina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150911/1b64275c/attachment.html>


More information about the CRIU mailing list