<div dir="ltr"><div><div>Hello sir Andrew,<br> im in testing enviroment so i will tryit now.<br></div><div>im using<b> criu-version 1.1</b> <br></div></div>Thank you! <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Feb 21, 2014 at 1:23 AM, Andrew Vagin <span dir="ltr"><<a href="mailto:avagin@parallels.com" target="_blank">avagin@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Urgen,<br>
<div class=""><br>
On Mon, Feb 17, 2014 at 03:29:33PM +0545, Urgen Sherpa wrote:<br>
> I removed the line "lxc.cgroup.devices.allow = c 5:1 rwm"..below is the output<br>
><br>
> root@ktmnp:/home/nplink/criu-1.1# ./criu dump -D /dumps/ -t 1648<br>
> --tcp-established --file-lock<br>
> Error (parasite-syscall.c:387): si_code=4 si_pid=1966 si_status=5<br>
> Error (parasite-syscall.c:387): si_code=4 si_pid=1968 si_status=5<br>
> Error (parasite-syscall.c:387): si_code=4 si_pid=1969 si_status=5<br>
> Error (mount.c:548): Can't bind-mount 45:/run to /tmp/cr-tmpfs.clOenq: No such<br>
> file<br>
<br>
</div>Sorry for long delay. Thank you for the repoort.<br>
<br>
Could you try out the attached patch?<br>
<div class="HOEnZb"><div class="h5"><br>
> Error (namespaces.c:445): Namespaces dumping finished with error 65280<br>
> Error (cr-dump.c:1828): Dumping FAILED.<br>
><br>
> i created the file in /tmp/cr-tmpfs but the name changed every time i run the<br>
> criu dump .<br>
> Thank you<br>
<br>
><br>
><br>
> On Fri, Feb 14, 2014 at 8:14 PM, Andrew Vagin <<a href="mailto:avagin@parallels.com">avagin@parallels.com</a>> wrote:<br>
><br>
> On Fri, Feb 14, 2014 at 11:25:14AM +0545, Urgen Sherpa wrote:<br>
> > Hellow Andrew ,<br>
> > i removed this line --CONFIG_DEVPTS_MULTIPLE_INSTANCES=y from file /etc/<br>
> boot/<br>
> > config-3.11.0-12-generic.when i run criudump at first thiserror is<br>
><br>
> I have not asked to do this. I have asked to delete the<br>
> "lxc.cgroup.devices.allow = c 5:1 rwm" line from the config file.<br>
><br>
> Then you need to restart CT and try to dump it again.<br>
><br>
> Thanks.<br>
><br>
> > showed.root@ktmnp:/home/nplink/criu-1.1# cat /dumps/dumps.log<br>
> > Error (sk-netlink.c:77): The socket has data to read<br>
> > Error (cr-dump.c:1493): Dump files (pid: 1877) failed with -1<br>
> > Error (cr-dump.c:1828): Dumping FAILED.<br>
> > On second run :-<br>
> > root@ktmnp:/home/nplink/criu-1.1# ./criu dump -t 1654 -D /dumps/ -o<br>
> dumps.log<br>
> > root@ktmnp:/home/nplink/criu-1.1# cat /dumps/dumps.log<br>
> > Error (parasite-syscall.c:387): si_code=4 si_pid=1930 si_status=5<br>
> > Error (parasite-syscall.c:387): si_code=4 si_pid=1931 si_status=5<br>
> > Error (parasite-syscall.c:387): si_code=4 si_pid=1932 si_status=5<br>
> > Error (tty.c:203): tty: Can't obtain ptmx index: Inappropriate ioctl for<br>
> device<br>
> > Error (cr-dump.c:1493): Dump files (pid: 2074) failed with -1<br>
> > Error (cr-dump.c:1828): Dumping FAILED.<br>
> ><br>
> > Do i have to compile the kernel and set the<br>
> CONFIG_DEVPTS_MULTIPLE_INSTANCES=n<br>
> > or is there any other way?<br>
> > thank you<br>
> ><br>
> ><br>
> > On Wed, Feb 12, 2014 at 1:34 PM, Andrew Vagin <<a href="mailto:avagin@parallels.com">avagin@parallels.com</a>><br>
> wrote:<br>
> ><br>
> > On Wed, Feb 12, 2014 at 11:26:25AM +0545, Urgen Sherpa wrote:<br>
> > > hi,<br>
> > > the output of reading mountinfo is as follows<br>
> > > root@ktmnp:/home/nplink# lxc-info -n test-container<br>
> > > state: RUNNING<br>
> > > pid: 4953<br>
> > > root@ktmnp:/home/nplink# cat /proc/4953/mountinfo<br>
> > > 131 72 252:0 /var/lib/lxc/test-container/rootfs / rw,relatime -<br>
> ext4 /dev<br>
> > /<br>
> > > mapper/ktmnp--vg-root rw,errors=remount-ro,data=ordered<br>
> > > 132 131 0:65 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw<br>
> > > 133 131 0:66 / /sys rw,relatime - sysfs sysfs rw<br>
> > > 134 133 0:17 / /sys/fs/fuse/connections rw,relatime - fusectl none<br>
> rw<br>
> > > 135 133 0:6 / /sys/kernel/debug rw,relatime - debugfs none rw<br>
> > > 136 133 0:10 / /sys/kernel/security rw,relatime - securityfs none<br>
> rw<br>
> > > 137 133 0:22 / /sys/fs/pstore rw,relatime - pstore none rw<br>
> > > 73 131 0:67 / /dev/pts rw,relatime - devpts devpts rw,gid=5,mode=<br>
> > 620,ptmxmode=<br>
> > > 666<br>
> > > 74 131 0:67 /ptmx /dev/ptmx rw,relatime - devpts devpts rw,gid=<br>
> 5,mode=<br>
> > > 620,ptmxmode=666<br>
> > > 75 133 0:68 / /sys/fs/cgroup rw,relatime - tmpfs none rw,size=<br>
> 4k,mode=755<br>
> > > 76 131 0:69 / /run rw,nosuid,noexec,relatime - tmpfs none rw,size=<br>
> > 49484k,mode=<br>
> > > 755<br>
> > > 77 76 0:70 / /run/lock rw,nosuid,nodev,noexec,relatime - tmpfs none<br>
> > rw,size=<br>
> > > 5120k<br>
> > > 78 76 0:71 / /run/shm rw,nosuid,nodev,relatime - tmpfs none rw<br>
> > > 79 76 0:72 / /run/user rw,nosuid,nodev,noexec,relatime - tmpfs none<br>
> > rw,size=<br>
> > > 102400k,mode=755<br>
> > ><br>
> > > with reference to <a href="https://help.ubuntu.com/lts/serverguide/lxc.html#" target="_blank">https://help.ubuntu.com/lts/serverguide/lxc.html#</a><br>
> > > lxc-installation I stopped and started container with with this..<br>
> > ><br>
> > > #lxc-start -n test-container -f /var/lib/lxc/test-container/config<br>
> > > heres what /var/lib/lxc/test-container/config looks like.<br>
> > > #cat config<br>
> > ><br>
> > > lxc.console = none<br>
> > > lxc.network.type = veth<br>
> > > lxc.network.hwaddr = 00:16:3e:b3:f5:95<br>
> > > lxc.network.flags = up<br>
> > > lxc.network.link = lxcbr0<br>
> > > lxc.rootfs = /var/lib/lxc/test-container/rootfs<br>
> > > lxc.mount = /var/lib/lxc/test-container/fstab<br>
> > > lxc.pivotdir = lxc_putold<br>
> > > lxc.devttydir = lxc<br>
> > > lxc.tty = 0<br>
> > > lxc.pts = 1024<br>
> > > lxc.utsname = test-containerq<br>
> > > lxc.arch = amd64<br>
> > > lxc.cap.drop = sys_module mac_admin mac_override sys_time<br>
> > > lxc.cgroup.memory.limit_in_bytes = 1994M<br>
> > ><br>
> > > lxc.cgroup.devices.deny = a<br>
> > > lxc.cgroup.devices.allow = c *:* m<br>
> > > lxc.cgroup.devices.allow = b *:* m<br>
> > > lxc.cgroup.devices.allow = c 1:3 rwm<br>
> > > lxc.cgroup.devices.allow = c 1:5 rwm<br>
> > > lxc.cgroup.devices.allow = c 5:1 rwm<br>
> ><br>
> > This line allows to use /dev/console. Could you try to remove it and<br>
> dump<br>
> > CT?<br>
> ><br>
> > > lxc.cgroup.devices.allow = c 5:0 rwm<br>
> > > lxc.cgroup.devices.allow = c 1:9 rwm<br>
> > > lxc.cgroup.devices.allow = c 1:8 rwm<br>
> > > lxc.cgroup.devices.allow = c 136:* rwm<br>
> > > lxc.cgroup.devices.allow = c 5:2 rwm<br>
> > > lxc.cgroup.devices.allow = c 254:0 rm<br>
> > > lxc.cgroup.devices.allow = c 10:229 rwm<br>
> > > lxc.cgroup.devices.allow = c 10:200 rwm<br>
> > > lxc.cgroup.devices.allow = c 1:7 rwm<br>
> > > lxc.cgroup.devices.allow = c 10:228 rwm<br>
> > > lxc.cgroup.devices.allow = c 10:232 rwm<br>
> > ><br>
> > ><br>
> > > Below is my kernel config<br>
> > ><br>
> > > #vim /boot/config-3.11.0-12-generic<br>
> > > ...<br>
> > > ,,,,<br>
> > > ...<br>
> > > # Character devices<br>
> > > #<br>
> > > CONFIG_TTY=y<br>
> > > CONFIG_VT=y<br>
> > > CONFIG_CONSOLE_TRANSLATIONS=y<br>
> > > CONFIG_VT_CONSOLE=y<br>
> > > CONFIG_VT_CONSOLE_SLEEP=y<br>
> > > CONFIG_HW_CONSOLE=y<br>
> > > CONFIG_VT_HW_CONSOLE_BINDING=y<br>
> > > CONFIG_UNIX98_PTYS=y<br>
> > > CONFIG_DEVPTS_MULTIPLE_INSTANCES=y<br>
> > > CONFIG_LEGACY_PTYS=y<br>
> > > CONFIG_LEGACY_PTY_COUNT=0<br>
> > > CONFIG_SERIAL_NONSTANDARD=y<br>
> > > CONFIG_ROCKETPORT=m<br>
> > > CONFIG_CYCLADES=m<br>
> > > ....<br>
> > > ...<br>
> > ><br>
> > > Thankyou gentlemen<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, Feb 11, 2014 at 7:02 PM, Andrew Vagin <<a href="mailto:avagin@parallels.com">avagin@parallels.com</a><br>
> ><br>
> > wrote:<br>
> > ><br>
> > > On Tue, Feb 11, 2014 at 04:47:34PM +0400, Cyrill Gorcunov<br>
> wrote:<br>
> > > > On Tue, Feb 11, 2014 at 04:26:09PM +0400, Cyrill Gorcunov<br>
> wrote:<br>
> > > > > On Tue, Feb 11, 2014 at 05:32:46PM +0545, Urgen Sherpa<br>
> wrote:<br>
> > > > > > /usr/lib/locale/C.UTF-8/LC_CTYPE (path inode=2883985)<br>
> > > > > > getty 2700 root 0u CHR 5,1 0t0 937203<br>
> /dev/<br>
> > console<br>
> > > > > > getty 2700 root 1u CHR 5,1 0t0 937203<br>
> /dev/<br>
> > console<br>
> > > > > > getty 2700 root 2u CHR 5,1 0t0 937203<br>
> /dev/<br>
> > console<br>
> > > > ><br>
> > > > > Aha! So we're trying to dump /dev/console. I guess it's VT<br>
> > terminal,<br>
> > > > > which has no "fetch index" operation. Need to think how to<br>
> > resolve it,<br>
> > > > > thanks for report!<br>
> > > ><br>
> > > > Urgen, are you sure that you've set lxc.console = none and<br>
> lxc.tty<br>
> > = 0 ?<br>
> > > > The presense of /dev/console here with getty over it makes me<br>
> thing<br>
> > > > that lcx either not read your config, or you need to restart<br>
> lcx<br>
> > > container<br>
> > > > probably.<br>
> > ><br>
> > > Probaly this CT uses devtmpfs, which isn't virtualized.<br>
> > ><br>
> > > # cat /proc/pid/mountinfo<br>
> > ><br>
> > > Which processes in CT have opened /dev/console?<br>
> > ><br>
> > > ><br>
> > > > Also, do you have<br>
> > > ><br>
> > > > CONFIG_DEVPTS_MULTIPLE_INSTANCES=y<br>
> > > ><br>
> > > > in your kernel config?<br>
> > > ><br>
> > > > Cyrill<br>
> > ><br>
> > ><br>
> ><br>
> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>