1. 26 Aug, 2014 1 commit
    • Add support for checkpoint and restore via CRIU · 735f2c6e
      Tycho Andersen authored
      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>
  2. 25 Aug, 2014 7 commits
  3. 22 Aug, 2014 11 commits
  4. 19 Aug, 2014 1 commit
    • Update plamo template · ea00a202
      TAMUKI Shoichi authored
      - If "installpkg" command does not exist, lxc-plamo temporarily
        install the command with static linked tar command into the lxc
        cache directory.  The tar command does not refer to passwd/group
        files, which means that only a few files/directories are extracted
        with wrong user/group ownership.  To avoid this, the installpkg
        command now uses the standard tar command in the system.
      - Change mode to 666 for $rootfs/dev/null to allow write access for
        all users.
      - Small fix in usage message.
      Signed-off-by: 's avatarTAMUKI Shoichi <tamuki@linet.gr.jp>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Acked-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
  5. 18 Aug, 2014 5 commits
  6. 16 Aug, 2014 14 commits
  7. 15 Aug, 2014 1 commit