From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oren Laadan Subject: Re: [RFC][PATCH 0/5][lxc]: Link with USERCR Date: Wed, 24 Mar 2010 15:27:59 -0400 Message-ID: <4BAA67BF.8030907@cs.columbia.edu> References: <20100319063912.GA25732@us.ibm.com> <4BA7826D.10706@fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BA7826D.10706-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Daniel Lezcano Cc: Containers , Sukadev Bhattiprolu , clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org List-Id: containers.vger.kernel.org Daniel Lezcano wrote: > Sukadev Bhattiprolu wrote: >> Link lxc_checkpoint, lxc_restart with USERCR[2] >> > >> 3. Checkpoint/restart a simple LXC container >> >> $ lxc-execute --name foo --rcfile lxc-no-netns.conf -- /bin/sleep >> 1000 >> >> $ lxc-freeze --name foo >> >> $ lxc-checkpoint --name foo --image /root/lxc-foo.ckpt >> >> $ lxc-unfreeze --name foo > > IMO, the freeze / thaw should be done in the lxc_checkpoint function code. > >> $ lxc-stop --name foo >> >> $ lxc-restart --name foo --image /root/lxc-foo.ckpt > > Is the container restarted in a frozen state ? > > It could if given the proper flag to sys_restart(). Oren.