<div dir="ltr"><br><span style="font-size:small">pi@raspberrypi:~/criu/criu $ ./migrate-ssh.sh </span><div style="font-size:small">Warn  (autofs.c:74): Failed to find pipe_ino option (old kernel?)</div><div style="font-size:small">Connection to 192.168.0.2 closed.</div><div style="font-size:small">Snapshoted</div><div style="font-size:small">cgroup.img                                    100% 1948     1.9KB/s   00:00    </div><div style="font-size:small">core-943.img                                  100%  602     0.6KB/s   00:00    </div><div style="font-size:small">fdinfo-2.img                                  100%   80     0.1KB/s   00:00    </div><div style="font-size:small">fs-943.img                                    100%   18     0.0KB/s   00:00    </div><div style="font-size:small">ids-943.img                                   100%   32     0.0KB/s   00:00    </div><div style="font-size:small">inetsk.img                                    100%  251     0.3KB/s   00:00    </div><div style="font-size:small">inventory.img                                 100%   38     0.0KB/s   00:00    </div><div style="font-size:small">mm-943.img                                    100% 1862     1.8KB/s   00:00    </div><div style="font-size:small">pagemap-943.img                               100%  242     0.2KB/s   00:00    </div><div style="font-size:small">pages-1.img                                   100%  252KB 252.0KB/s   00:00    </div><div style="font-size:small">pstree.img                                    100%   26     0.0KB/s   00:00    </div><div style="font-size:small">reg-files.img                                 100%  994     1.0KB/s   00:00    </div><div style="font-size:small">sigacts-943.img                               100%  752     0.7KB/s   00:00    </div><div style="font-size:small">stats-dump                                    100%   36     0.0KB/s   00:00    </div><div style="font-size:small">tty.img                                       100%   30     0.0KB/s   00:00    </div><div style="font-size:small">tty-info.img                                  100%  178     0.2KB/s   00:00    </div><div style="font-size:small">Image transfered</div><div style="font-size:small">(00.082257) Pagemap is fully functional</div><div style="font-size:small">(00.082543) Found task size of 7f000000</div><div style="font-size:small">(00.082892) Reading image tree</div><div style="font-size:small">(00.083089) Add mnt ns 5 pid 943</div><div style="font-size:small">(00.083211) Migrating process tree (GID 943-&gt;805 SID 791-&gt;741)</div><div style="font-size:small">(00.083259) Will restore in 0 namespaces</div><div style="font-size:small">(00.083295) NS mask to use 0</div><div style="font-size:small">(00.083331) Collecting 39/18 (flags 1)</div><div style="font-size:small">(00.083428) Collected [dev/pts/0] ID 0x1</div><div style="font-size:small">(00.083486) Collected [lib/arm-linux-gnueabihf/<a href="http://libresolv-2.19.so/" target="_blank">libresolv-2.19.so</a>] ID 0x5</div><div style="font-size:small">(00.083536) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_dns-2.19.so/" target="_blank">libnss_dns-2.19.so</a>] ID 0x6</div><div style="font-size:small">(00.083581) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_files-2.19.so/" target="_blank">libnss_files-2.19.so</a>] ID 0x7</div><div style="font-size:small">(00.083626) Collected [lib/arm-linux-gnueabihf/<a href="http://libc-2.19.so/" target="_blank">libc-2.19.so</a>] ID 0x8</div><div style="font-size:small">(00.083672) Collected [lib/arm-linux-gnueabihf/libgcc_s.so.1] ID 0x9</div><div style="font-size:small">(00.083715) Collected [lib/arm-linux-gnueabihf/<a href="http://libm-2.19.so/" target="_blank">libm-2.19.so</a>] ID 0xa</div><div style="font-size:small">(00.083759) Collected [usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20] ID 0xb</div><div style="font-size:small">(00.083804) Collected [lib/arm-linux-gnueabihf/libz.so.1.2.8] ID 0xc</div><div style="font-size:small">(00.083847) Collected [usr/lib/arm-linux-gnueabihf/libenet.so.7.0.0] ID 0xd</div><div style="font-size:small">(00.083892) Collected [usr/lib/arm-linux-gnueabihf/libarmmem.so] ID 0xe</div><div style="font-size:small">(00.083935) Collected [lib/arm-linux-gnueabihf/<a href="http://ld-2.19.so/" target="_blank">ld-2.19.so</a>] ID 0xf</div><div style="font-size:small">(00.083978) Collected [lib/arm-linux-gnueabihf/libnss_mdns4_minimal.so.2] ID 0x10</div><div style="font-size:small">(00.084022) Collected [usr/lib/cube2/cube2_server] ID 0x11</div><div style="font-size:small">(00.084064) Collected [usr/lib/cube2] ID 0x12</div><div style="font-size:small">(00.084104) Collected [.] ID 0x13</div><div style="font-size:small">(00.084151)  `- ... done</div><div style="font-size:small">(00.084182) Collecting 52/56 (flags 0)</div><div style="font-size:small">(00.084259) No remap-fpath.img image</div><div style="font-size:small">(00.084318)  `- ... done</div><div style="font-size:small">(00.084384) Collecting 42/21 (flags 0)</div><div style="font-size:small">(00.084549)  `- ... done</div><div style="font-size:small">(00.084991) cg: Preparing cgroups yard (cgroups restore mode 0x4)</div><div style="font-size:small">(00.089011) cg: Opening .criu.cgyard.lg48ci as cg yard</div><div style="font-size:small">(00.089161) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/blkio (blkio)</div><div style="font-size:small">(00.089465) cg: Determined cgroup dir blkio/ already exist</div><div style="font-size:small">(00.089495) cg: Skip restoring properties on cgroup dir blkio/</div><div style="font-size:small">(00.089593) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/net_cls (net_cls)</div><div style="font-size:small">(00.089862) cg: Determined cgroup dir net_cls/ already exist</div><div style="font-size:small">(00.089899) cg: Skip restoring properties on cgroup dir net_cls/</div><div style="font-size:small">(00.089978) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/freezer (freezer)</div><div style="font-size:small">(00.090218) cg: Determined cgroup dir freezer/ already exist</div><div style="font-size:small">(00.090257) cg: Skip restoring properties on cgroup dir freezer/</div><div style="font-size:small">(00.090334) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/devices (devices)</div><div style="font-size:small">(00.090646) cg: Determined cgroup dir devices/ already exist</div><div style="font-size:small">(00.090708) cg: Skip restoring properties on cgroup dir devices/</div><div style="font-size:small">(00.090811) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/cpu,cpuacct (cpu,cpuacct)</div><div style="font-size:small">(00.091066) cg: Determined cgroup dir cpu,cpuacct/ already exist</div><div style="font-size:small">(00.091123) cg: Skip restoring properties on cgroup dir cpu,cpuacct/</div><div style="font-size:small">(00.091229) cg: <span style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.lg48ci/cpuset (cpuset)</div><div style="font-size:small">(00.091431) Error (cgroup.c:1562): cg: <span style="white-space:pre-wrap">        </span>Can&#39;t mount controller dir .criu.cgyard.lg48ci/cpuset: No such file or directory</div><div style="font-size:small"><br></div><table cellpadding="0" class="" style="font-size:12.8px"><tbody><tr class=""><td colspan="2" class="" style="padding:6px 0px"><span class=""><span>Hi everyone, <br><br>I&#39;m coming back to you because I still have a problem when restoring a snapshotted process from a given RPi2 on another RPi2.<br><br>The snapshot/restore works well on the same RPi2 thanks to the patch :<br><a href="https://lists.openvz.org/pipermail/criu/2016-April/027743.html" rel="noreferrer" target="_blank" style="font-size:12.8px">https://lists.openvz.org/pipermail/criu/2016-April/027743.html</a><br>(<span style="font-size:12.8px">Criu-dev version + patch and Kernel 3.18)<br></span><br>However when I try to restore a <span style="font-size:12.8px">snapshotted process from a given RPi2 on another RPi2.</span> (with exactly the same image installed on the SD card) I obtain the following error : <br><span style="font-size:small">(00.091431) Error (cgroup.c:1562): cg:</span><span style="font-size:small"> </span><span style="font-size:small;white-space:pre-wrap">        </span><span style="font-size:small">Can&#39;t mount controller dir .criu.cgyard.lg48ci/cpuset: No such file or directory</span><br>(the snapshot process has succeeded on the first Rpi2)<br><br><span style="font-size:small">The dir .criu.cgyard.lg48ci is indeed empty. <br></span>CONFIG_CGROUPS and CONFIG_MEMCG are enabled (<span style="font-size:12.8px">CONFIG_MEMCG_SWAP and </span><span style="font-size:12.8px">CONFIG_MEMCG_KMEM are disabled) if that matters...<br></span><br>Am I doing something wrong here ? <br><br>Thanks again for your help, <br><br>Alex<br><br><br>Here is the simple script i&#39;m using to migrate and the full log of the restore: <br><br>--------------------------------<br></span></span></td><td colspan="2" class="" style="padding:6px 0px">ssh -t <a href="mailto:pi@192.168.0.1">pi@192.168.0.1</a> &#39;pid=$(pidof cube2_server); sudo criu dump -D /home/pi/checkpoint/ -t $pid --tcp-established --shell-job&#39;</td><td colspan="2" class="" style="padding:6px 0px">echo &quot;Snapshotted&quot;</td><td colspan="2" class="" style="padding:6px 0px">scp pi@192.168.0.1:/home/pi/checkpoint/* /home/pi/checkpoint/ </td><td colspan="2" class="" style="padding:6px 0px">echo &quot;Image transferred&quot;</td><td colspan="2" class="" style="padding:6px 0px">sudo criu restore -d -D /home/pi/checkpoint/ --shell-job --tcp-established</td><td colspan="2" class="" style="padding:6px 0px">echo &quot;Image restored&quot;<br>--------------------------------</td></tr></tbody></table></div>