[CRIU] Any one tried use criu dump Maya?
Jun Gan
geminijun at gmail.com
Sat May 23 12:52:15 MSK 2020
Hi Adrian,
Thanks a lot for your suggestion. I just tried xterm and I got exactly same
error when I dumped&restored maya.
So what Linux distribution you're using? I'm using CentOS 7.8 with stock
kernel 3.10.0, and of cause gnome desktop environment.
I launched xterm using exactly same command and vnc script.
# setsid unshare -i ./vnc_server.sh xterm
# ps axf
16314 ? Ss 0:00 /bin/bash ./vnc_server.sh xterm
16320 ? Sl 0:00 \_ Xvnc :25 -v -geometry 800x600 -interface
0.0.0.0 -SecurityTypes none
16353 ? S 0:00 \_ xterm
16355 pts/4 Ss+ 0:00 \_ bash
*Form lsof and ss, I also saw it connects to "@/tmp/.ICE-unix/15119" and
it's "gnome-session-b" on the other end.*
# lsof -p 16353
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
..............
xterm 16353 root 3u unix 0xffff972c81d0ee80 0t0 155258 socket
*xterm 16353 root 4u unix 0xffff972c81d0f700 0t0 155259
socket*
xterm 16353 root 5u CHR 5,2 0t0 12415
/dev/ptmx
# ss --unix -a -p
*u_str ESTAB 0 0 @/tmp/.ICE-unix/15119 41542
* 155259 users:(("gnome-session-b",pid=15119,fd=19))*
I have to use "--external unix[155259]" when dump and "--ext-unix-sk" when
restore to make CRIU happy. But got ICE error right after CRIU said it was
successfully restored:
# ./criu restore -D xterm/ -o restore.log -v4 --shell-job --ext-unix-sk
ICE error: Offending minor opcode = 0 ()
Offending sequence number = 1
Error class = BadState
Severity = FatalToConnection
I feel like it's pretty standard for a graphic application running on gnome
desktop environment? Is there any way for CRIU to dump&restore it?
Really appreciate if anyone can help!
Thanks,
Jun Gan
On Fri, May 22, 2020 at 5:36 AM Adrian Reber <adrian at lisas.de> wrote:
> I just tried it with xterm in the VNC session and it works for me. Can
> you try with a simple application like xterm before trying maya.
>
> Adrian
>
> On Fri, May 22, 2020 at 02:28:50AM -0700, Jun Gan wrote:
> > Hello,
> >
> > I'm trying to dump Maya by following this tutorial: https://criu.org/VNC
> >
> > Somehow use newns.c doesn't work so I manually do it in the command line:
> >
> > # cat vnc_server.sh
> > #!/bin/bash
> > set -m
> > Xvnc :25 -v -geometry 800x600 -interface 0.0.0.0 -SecurityTypes none &
> > pid=$!
> > trap "kill $pid; wait" EXIT
> > sleep 3
> > DISPLAY=:25 $@
> >
> > #setsid unshare -i ./vnc_server.sh maya
> >
> > # ps axf
> > 849901 ? Ss 0:00 /bin/bash ./vnc_server.sh maya
> > 849902 ? Sl 0:00 \_ Xvnc :25 -v -geometry 800x600 -interface
> > 0.0.0.0 -SecurityTypes none
> > 849921 ? S 0:00 \_ /bin/bash -f /usr/local/bin/maya
> > 849935 ? Sl 0:12 \_ /usr/autodesk/maya2020/bin/maya.bin
> > 849940 ? Sl 0:00 \_
> >
> /opt/Autodesk/AdskLicensing/9.2.1.2399/AdskLicensingAgent/AdskLicensingAgent
> > -i 94306fdc-e6a3-4f3e-7035-03617ab75c25
> >
> > # ./criu dump -t 849901 -D test/ -o dump.log -v4 -j --tcp-established
> > --external unix[2432303888] --external unix[2432544010]
> >
> > Those two unix stream socket are:
> > 1) seems maya use gnome-session-b
> > u_str ESTAB 0 0 @/tmp/.ICE-unix/404075 -1862464845
> > * -1862663408 users:(("gnome-session-b",pid=404075,fd=18))
> >
> > 2) seems maya licensing agent using dbus.
> > u_str ESTAB 0 0 @/tmp/dbus-eVrtb5pHUv -1862436068
> > * -1862423286 users:(("dbus-daemon",pid=404085,fd=26))
> >
> > I have no much knowledge about them so I just add "external unix" to
> avoid
> > error, managed to dump it successfully.
> >
> > Then restore:
> >
> > # ./criu restore -D test -o restore.log -v4 --tcp-established -d
> > --shell-job --ext-unix-sk
> >
> >
> > ICE error: Offending minor opcode = 0 ()
> >
> > Offending sequence number = 1
> >
> > Error class = BadState
> >
> > Severity = FatalToConnection
> >
> >
> > In the restore.log, I saw it was restored successfully, but I got above
> > error immediately, and of cause Maya exits right after that.
> >
> >
> > I didn't some research about "gnome-session" and "ice", but no idea why
> > Maya uses those, and how I can avoid this problem.
> >
> > Really appreciate it if anyone can help!
> >
> > Thanks a lot!!!
> >
> > --
> > Jun Gan
>
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
>
--
Jun Gan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20200523/c077550d/attachment.html>
More information about the CRIU
mailing list