[CRIU] Any one tried use criu dump Maya?

Jun Gan geminijun at gmail.com
Fri May 22 12:28:50 MSK 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20200522/8486793f/attachment.html>


More information about the CRIU mailing list