<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'm trying to dump Maya by following this tutorial: <a href="https://criu.org/VNC">https://criu.org/VNC</a></div><div><br></div><div>Somehow use newns.c doesn't work so I manually do it in the command line:</div><div><br></div><div><div># cat vnc_server.sh</div><div>#!/bin/bash</div><div>set -m</div><div>Xvnc :25 -v -geometry 800x600 -interface 0.0.0.0 -SecurityTypes none &</div><div>pid=$!</div><div>trap "kill $pid; wait" EXIT</div><div>sleep 3</div><div>DISPLAY=:25 $@</div></div><div><br></div><div>#setsid unshare -i ./vnc_server.sh maya</div><div><br></div><div># ps axf<br></div><div><div> 849901 ? Ss 0:00 /bin/bash ./vnc_server.sh maya</div><div> 849902 ? Sl 0:00 \_ Xvnc :25 -v -geometry 800x600 -interface 0.0.0.0 -SecurityTypes none</div><div> 849921 ? S 0:00 \_ /bin/bash -f /usr/local/bin/maya</div><div> 849935 ? Sl 0:12 \_ /usr/autodesk/maya2020/bin/maya.bin</div><div> 849940 ? Sl 0:00 \_ /opt/Autodesk/AdskLicensing/9.2.1.2399/AdskLicensingAgent/AdskLicensingAgent -i 94306fdc-e6a3-4f3e-7035-03617ab75c25</div><div><br></div><div># ./criu dump -t 849901 -D test/ -o dump.log -v4 -j --tcp-established --external unix[2432303888] --external unix[2432544010]</div><div><br></div><div>Those two unix stream socket are:</div><div>1) seems maya use gnome-session-b</div><div>u_str ESTAB 0 0 @/tmp/.ICE-unix/404075 -1862464845 * -1862663408 users:(("gnome-session-b",pid=404075,fd=18))<br></div><div><br></div><div>2) seems maya licensing agent using dbus.</div><div>u_str ESTAB 0 0 @/tmp/dbus-eVrtb5pHUv -1862436068 * -1862423286 users:(("dbus-daemon",pid=404085,fd=26))</div><div> </div><div>I have no much knowledge about them so I just add "external unix" to avoid error, managed to dump it successfully.</div><div><br></div><div>Then restore:</div><div><br></div><div># ./criu restore -D test -o restore.log -v4 --tcp-established -d --shell-job --ext-unix-sk<br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">ICE error: Offending minor opcode = 0 ()</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""> Offending sequence number = 1</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""> Error class = BadState</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""> Severity = FatalToConnection</p></div><div><br></div><div><br></div><div>In the restore.log, I saw it was restored successfully, but I got above error immediately, and of cause Maya exits right after that.</div><div><br></div><div><br></div><div>I didn't some research about "gnome-session" and "ice", but no idea why Maya uses those, and how I can avoid this problem.</div><div><br></div><div>Really appreciate it if anyone can help!</div><div><br></div><div>Thanks a lot!!! </div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jun Gan</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>