From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH 0/6][lxc][v3] Link LXC with USERCR Date: Wed, 31 Mar 2010 22:22:06 +0200 Message-ID: <4BB3AEEE.2000308@free.fr> References: <20100331070440.GA21570@us.ibm.com> <4BB3A981.4020709@fr.ibm.com> <20100331201240.GA26773@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100331201240.GA26773-r/Jw6+rmf7HQT0dZR+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: "Serge E. Hallyn" Cc: Containers , Sukadev Bhattiprolu , clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org List-Id: containers.vger.kernel.org Serge E. Hallyn wrote: > Quoting Daniel Lezcano (dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org): >> Sukadev Bhattiprolu wrote: >>> lxc-checkpoint, lxc-restart in the LXC source tree are currently stubs. >>> Following set of patches, when applied to LXC and built with USERCR as >>> described below, enable enable lxc-checkpoint and lxc-restart of some >>> simple containers >> [ ... ] >> >>> 3. Checkpoint/restart a simple LXC container >>> >>> $ lxc-execute --name foo --rcfile lxc-no-netns.conf -- /bin/sleep 1000 >>> >>> $ lxc-checkpoint --name foo --image /root/lxc-foo.ckpt >>> >>> $ lxc-stop --name foo >>> >>> $ lxc-restart --name foo --image /root/lxc-foo.ckpt >> Finally, using ckpt-v20-dev, I succeeded to checkpoint sleep but >> when I restart, I got the error: >> >> <4534>number of tasks: 2 >> <4534>number of vpids: 0 >> <4534>total tasks (including ghosts): 2 >> <4534>pid 2: inherit sid 0 >> <4534>pid 2: creator set to 1 >> <4534>====== TASKS >> <4534> [0] pid 1 ppid 0 sid 0 creator 0 >> <4534> [1] pid 2 ppid 1 sid 0 creator 1 >> <4534>............ >> <4534>task[0].vidx = -1 >> <4534>task[1].vidx = -1 >> <4534>new pidns with init >> <4534>forking child vpid 1 flags 0x321 >> <4534>task 1 forking with flags 20020011 numpids 1 >> <4534>task 1 pid[0]=0 >> <4535>====== PIDS ARRAY >> <4535>[0] pid 1 ppid 0 sid 0 pgid 0 >> <4535>[1] pid 2 ppid 1 sid 0 pgid 0 >> <4535>............ >> Error: /dev/ptmx must be a link to /dev/pts/ptmx >> <4534>forked child vpid 4536 (asked 1) >> root task exited status 0 >> >> What can I do to prevent this error ? > > test -e /dev/pts/ptmx || (echo "Don't go through with the rest of this" && exit) > rm -f /dev/ptmx > ln -s /dev/pts/ptmx /dev/ptmx > chmod 666 /dev/ptmx I was able to restart. I will play a bit with it :) Thanks Serge.