[Devel] Re: [RFC][PATCH 0/4][user-cr]: First try at integrating LXC and USER-CR
Serge E. Hallyn
serue at us.ibm.com
Wed Feb 24 07:15:24 PST 2010
Quoting Sukadev Bhattiprolu (sukadev at linux.vnet.ibm.com):
>
> Following two sets of patches is an early attempt to integrate LXC and
> USER-CR.
>
> Overview:
>
> Have USER-CR export the core checkpoint and restart functionality into a
> library (/lib/libcheckpoint.a and <usercr.h>) and have LXC link with this
> library.
>
> TODO:
>
> 1. For now, libcheckpoint.a implements only the restart functionality
> and so only lxc_restart command is implemented. Implementing the
> checkpoint functionality and lxc_checkpoint command can be done
> similarly and is hopefully easier than the restart functionality.
>
> 2. The restart() functionality in user-cr makes extensive use of global
> variables and debug code. The API must be extended to properly
> include these variables/debug code in the API.
>
> Similarly, the 'struct restart_args' may need to be sanitized for
> use in a formal API.
>
> 3. lxc_restart command restarts entire containers only (specifically
> it simulates the --pidns --pids --mount-pty arguments to
> /bin/restart).
>
> 4. Link lxc_restart and lxc_checkpoint with the shared library
> liblxc.so (currently links statically)
>
> 5. ...
>
>
> STATUS:
> I was able to checkpoint/restart a simple '/bin/sleep 1000' LXC
> container, except for a cgroup naming issue after restart (see below).
Very nice, Suka.
-serge
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list