<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&#39;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&#39;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 &amp;</div><div>pid=$!</div><div>trap &quot;kill $pid; wait&quot; 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:((&quot;gnome-session-b&quot;,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:((&quot;dbus-daemon&quot;,pid=404085,fd=26))</div><div> </div><div>I have no much knowledge about them so I just add &quot;external unix&quot; 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:&quot;Helvetica Neue&quot;"><br></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">ICE error:  Offending minor opcode    = 0 ()</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">            Offending sequence number = 1</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">            Error class               = BadState</p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">            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&#39;t some research about &quot;gnome-session&quot; and &quot;ice&quot;, 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>