[Devel] Re: Wiki for LXC with Checkpoint/Restart
Nathan Lynch
ntl at pobox.com
Thu Apr 15 15:00:37 PDT 2010
On Wed, 2010-04-14 at 15:55 -0500, Nathan Lynch wrote:
> On Wed, 2010-04-14 at 13:40 -0700, Sukadev Bhattiprolu wrote:
> >
> > Yes, I think thats what Michel or Daniel ran into. For some reason, I
> > did not run into on Fedora11. Can you add -fPIC to the usercr CFLAGS
> > and try ? If it works for you, I will try on Fedora11 too and we can
> > add a patch to lxc.sf.net/patches/lxc+usercr/.
>
> Yes, adding -fPIC to CFLAGS in the user-cr Makefile and rebuilding
> allows the lxc build to succeed.
Okay, so after getting the kernel build issues worked around and
documented, I've gotten to part 4 "Checkpoint/restart a simple LXC
container" in the wiki. It works! A couple of minor issues with the
instructions:
> $ lxc-execute --name foo --rcfile lxc-no-netns.conf -- /bin/sleep 1000
The full path to the rcfile needs to be supplied or lxc-execute errors
out. Also, it seems that the above command needs its own terminal or it
should be run in the background.
> $ lxc-checkpoint --name foo --statefile /root/lxc-foo.ckpt
Is it intentional that this fails if /root/lxc-foo.ckpt already exists?
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list