[CRIU] A note about 1.3 release

Tycho Andersen tycho.andersen at canonical.com
Tue Sep 2 09:25:13 PDT 2014


Hi Cyrill,

On Tue, Sep 02, 2014 at 06:47:52PM +0400, Cyrill Gorcunov wrote:
> On Tue, Sep 02, 2014 at 09:42:48AM -0500, Tycho Andersen wrote:
> ...
> > > 
> > > So for some reason the container changed pty terminal to vt terminal.
> > > Tycho could you please explain -- you've been c/r'ing container manually,
> > > without delay inbetween (ie dump/restore/dump/ cycle without working with
> > > container after first restore)/
> > 
> > Yes, I am stopping the container during the dump (i.e. I am not
> > passing -R) and then restoring it almost immediately afterwards (I
> > lxc-wait -s STOPPED first to let the lxc monitor exit cleanly).
> > 
> > > It looks like someone reconfigured terminals, not sure how it
> > > happened.
> > 
> > I'm not explicitly touching anything in the container's rootfs myself
> > (I don't think, at least), can you elaborate?
> 
> Looks like terminal is changed by some application inside container.
> Could you please do the following
> 
>  - start container
>  - enter it and do 'ls -l /proc/self/fd'
>  - checkpoint it
>  - restore it
>  - enter it and do 'ls -l /proc/self/fd'
> 
> show the output.

criu:~/criu pidfile-excl sudo lxc-start -n u1
criu:~/criu pidfile-excl sudo lxc-info -n u1
Name:           u1
State:          RUNNING
PID:            15855
IP:             10.0.3.82
CPU use:        1.49 seconds
BlkIO use:      152.00 KiB
Memory use:     7.77 MiB
KMem use:       0 bytes
Link:           vethCNEKM3
 TX bytes:      1.63 KiB
 RX bytes:      3.85 KiB
 Total bytes:   5.48 KiB
criu:~/criu pidfile-excl ssh ubuntu at 10.0.3.82
The authenticity of host '10.0.3.82 (10.0.3.82)' can't be established.
ECDSA key fingerprint is d2:f8:86:9a:d2:18:53:c6:6f:7d:76:04:e6:67:96:43.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.3.82' (ECDSA) to the list of known hosts.
ubuntu at 10.0.3.82's password: 
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

ubuntu at u1:~$ ls -l /proc/self/fd
total 0
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:23 0 -> /dev/pts/6
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:23 1 -> /dev/pts/6
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:23 2 -> /dev/pts/6
lr-x------ 1 ubuntu ubuntu 64 Sep  2 16:23 3 -> /proc/485/fd
ubuntu at u1:~$ exit
logout
Connection to 10.0.3.82 closed.
criu:~/criu pidfile-excl sudo lxc-checkpoint -s -v -n u1 -D /tmp/ttytest
criu:~/criu pidfile-excl sudo lxc-checkpoint -r -v -n u1 -D /tmp/ttytest
criu:~/criu pidfile-excl sudo lxc-info -n u1
Name:           u1
State:          RUNNING
PID:            16525
IP:             10.0.3.82
Link:           vethCNEKM3
 TX bytes:      508 bytes
 RX bytes:      2.54 KiB
 Total bytes:   3.04 KiB
criu:~/criu pidfile-excl ssh ubuntu at 10.0.3.82
ubuntu at 10.0.3.82's password: 
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Sep  2 16:22:59 2014 from 10.0.3.1
ubuntu at u1:~$ ls -l /proc/self/fd
total 0
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:24 0 -> /dev/pts/0
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:24 1 -> /dev/pts/0
lrwx------ 1 ubuntu ubuntu 64 Sep  2 16:24 2 -> /dev/pts/0
lr-x------ 1 ubuntu ubuntu 64 Sep  2 16:24 3 -> /proc/286/fd

Tycho


More information about the CRIU mailing list