Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
L
lxc
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • lxc
  • Repository

Switch branch/tag
  • lxc
  • doc
  • lxc-checkpoint.sgml.in
Find file
BlameHistoryPermalink
  • Tycho Andersen's avatar
    Add support for checkpoint and restore via CRIU · 735f2c6e
    Tycho Andersen authored Aug 26, 2014
    This patch adds support for checkpointing and restoring containers via CRIU.
    It adds two api calls, ->checkpoint and ->restore, which are wrappers around
    the CRIU CLI. CRIU has an RPC API, but reasons for preferring exec() are
    discussed in [1].
    
    To checkpoint, users specify a directory to dump the container metadata (CRIU
    dump files, plus some additional information about veth pairs and which
    bridges they are attached to) into this directory. On restore, this
    information is read out of the directory, a CRIU command line is constructed,
    and CRIU is exec()d. CRIU uses the lxc-restore-net callback (which in turn
    inspects the image directory with the NIC data) to properly restore the
    network.
    
    This will only work with the current git master of CRIU; anything as of
    a152c843 should work. There is a known bug where containers which have been
    restored cannot be checkpointed [2].
    
    [1]: http://lists.openvz.org/pipermail/criu/2014-July/015117.html
    [2]: http://lists.openvz.org/pipermail/criu/2014-August/015876.html
    
    v2: fixed some problems with the s/int/bool return code form api function
    v3: added a testcase, fixed up the man page synopsis
    v4: fix a small typo in lxc-test-checkpoint-restore
    v5: remove a reference to the old CRIU_PATH, and a bad error about the same
    Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
    Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
    Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
    735f2c6e
lxc-checkpoint.sgml.in 4.76 KB
EditWeb IDE
×

Replace lxc-checkpoint.sgml.in

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.