GitHub PushEvent at 2014-08-26 14:04:02
Repository: lxc
Actor: tych0
Payload: {"shas":[["1a4442da9da367f47f5f3bf2ead763ba88f944b5","10c18fcb898ee6b17d6575d444b125d10b3f4d6a@canonical.com","Add support for checkpoint and restore via CRIU\n\nThis patch adds support for checkpointing and restoring containers via CRIU.\nIt adds two api calls, ->checkpoint and ->restore, which are wrappers around\nthe CRIU CLI. CRIU has an RPC API, but reasons for preferring exec() are\ndiscussed in [1].\n\nTo checkpoint, users specify a directory to dump the container metadata (CRIU\ndump files, plus some additional information about veth pairs and which\nbridges they are attached to) into this directory. On restore, this\ninformation is read out of the directory, a CRIU command line is constructed,\nand CRIU is exec()d. CRIU uses the lxc-restore-net callback (which in turn\ninspects the image directory with the NIC data) to properly restore the\nnetwork.\n\nThis will only work with the current git master of CRIU; anything as of\na152c843 should work. There is a known bug where containers which have been\nrestored cannot be checkpointed [2].\n\n[1]: http://lists.openvz.org/pipermail/criu/2014-July/015117.html\n[2]: http://lists.openvz.org/pipermail/criu/2014-August/015876.html\n\nv2: fixed some problems with the s/int/bool return code form api function\nv3: added a testcase, fixed up the man page synopsis\nv4: fix a small typo in lxc-test-checkpoint-restore\nv5: remove a reference to the old CRIU_PATH\n\nSigned-off-by: Tycho Andersen <tycho.andersen@canonical.com>\nAcked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>","Tycho Andersen",true]],"size":1,"ref":"refs/heads/checkpoint","head":"1a4442da9da367f47f5f3bf2ead763ba88f944b5"}