lxc-checkpoint(1)

NAME
lxc-checkpoint - checkpoint a running container (not implemented yet)

SYNOPSIS
lxc-checkpoint
{--statefile=FILE} {--statefd=FD} {--name=NAME} [-k| -p]

DESCRIPTION
lxc-checkpoint is a command to checkpoint the specified container NAME and dumps its state into the file FILE. If the option \FC--kill\F[] is specified, the application running in the container will terminate after the checkpoint just before resuming its execution. If the option \FC--pause\F[] is specified, the application will be stopped after the checkpoint just before resuming execution. The command lxc-unfreeze will resume its execution.

CHECKPOINT OPTIONS

\FC-S, --statefile=\F[]FILE
    write the state of the container in this FILE. This option is exclusive with \FC--statefd\F[] below.

\FC-d, --statefd=\F[]FD
    write the state of the container in this FD file descriptor. This option is exclusive with above \FC--statefile\F[].

\FC-k,--kill\F[]
    Kill container processes after checkpoint. the processes are sent a \FCSIGKILL\F[] signal. This option is mutually exclusive with the following \FC--pause\F[] option.

\FC-p,--pause\F[]
    Pause container processes after checkpoint. The container will be stopped until you resume it. This option is mutually exclusive with previously mentionned \FC--kill\F[] option.

COMMON OPTIONS
These options are common to most of lxc commands.

\FC-?, -h, --help\F[]
    Print a longer usage message than normal.

\FC--usage\F[]
    Give the usage message

\FC-q, --quiet\F[]
    mute on

\FC-P, --lxcpath=\F[]PATH
    Use an alternate container path. The default is /var/lib/lxc.

\FC-o, --logfile=\F[]FILE
    Output to an alternate log FILE. The default is no log.

\FC-l, --logpriority=\F[]LEVEL
    Set log priority to LEVEL. The default log priority is \FCERROR\F[]. Possible values are : \FCFATAL\F[], \FCCRIT\F[], \FCWARN\F[], \FCERROR\F[], \FCNOTICE\F[], \FCINFO\F[], \FCDEBUG\F[]. Note that this option is setting the priority of the events log in the alternate log file. It do not have effect on the ERROR events log on stderr.

\FC-n, --name=\F[]NAME
    Use container identifier NAME. The container identifier format is an alphanumeric string.

EXAMPLES
To start a new container \FC123\F[] computing decimals of pi

\FC
      lxc-execute -n 123 -- pi1 -d 500000
      lxc-execute --name=123 -- pi1 -d 500000
    \F[]

to checkpoint the same container in dump-death mode

\FC
      lxc-checkpoint -n 123 -S /share/123/chkpt1 -k
      lxc-checkpoint --name=123 -S /share/123/chkpt1 -k
    \F[]

to checkpoint the same container and pause it

\FC
      lxc-checkpoint -n 123 -S /share/123/chkpt1 -p
      lxc-checkpoint --name=123 -S /share/123/chkpt1 -p
    \F[]

NOTES
Actually, this command does not operate. Its description helps to define a CLI api for future Checkpoint / Restart solution

SEE ALSO
lxc(1), lxc-create(1), lxc-destroy(1), lxc-start(1), lxc-stop(1), lxc-execute(1), lxc-kill(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-ps(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5)

AUTHOR
Daniel Lezcano <\FCdaniel.lezcano@free.fr\F[]>