<div dir="ltr">On Thu, Feb 19, 2015 at 2:13 PM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 02/19/2015 10:03 PM, Nam Ninh wrote:<br>
&gt; Please find attached restore.log when I run<br>
&gt; criu restore -d --images-dir /tmp/images -o restore.log<br>
&gt;<br>
&gt; The content of pstree.img shows:<br>
&gt;<br>
&gt; root@128:~# criu show -f /tmp/images/pstree.img<br>
&gt; pid: 1251 ppid: 0 pgid: 1251 sid: 950 threads: 1251<br>
&gt; pid: 1290 ppid: 1251 pgid: 1251 sid: 950 threads: 1290<br>
&gt;<br>
<br>
</span>OK. How did you dump this tree? Did you use the -j/--shell-job option?<br></blockquote><div><br></div><div>I dumped using this command:<br>criu dump -t 1251 --images-dir /tmp/images --shell-job --leave-stopped<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><br>
&gt;<br>
&gt;<br>
&gt; On Thu, Feb 19, 2015 at 12:44 PM, Pavel Emelyanov &lt;<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> &lt;mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;  Â  Â On 02/19/2015 05:45 PM, Nam Ninh wrote:<br>
&gt;  Â  Â &gt; Hi,<br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt; I follow the instructions at this link to do the live migration of Single Loop application<br>
&gt;  Â  Â &gt; <a href="http://criu.org/Live_migration" target="_blank">http://criu.org/Live_migration</a><br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt; and get the following error when I try to restore on a destination target:<br>
&gt;<br>
&gt;  Â  Â Can you show the contents of the pstree.img file? With the criu show -f pstree.img command.<br>
&gt;<br>
&gt;  Â  Â &gt; root@128:~# criu restore -d --images-dir /tmp/images<br>
&gt;  Â  Â &gt;  Â 1545: Error (cr-restore.c:1258): Requested sid 965 doesn&#39;t match inherited 1260<br>
&gt;  Â  Â &gt;  Â 1378: Error (cr-restore.c:1185): 1545 exited, status=1<br>
&gt;<br>
&gt;  Â  Â And, if possible, the full restore.log file.<br>
&gt;<br>
&gt;  Â  Â &gt; When I apply this patch, the migration works fine:<br>
&gt;  Â  Â &gt; <a href="https://lists.openvz.org/pipermail/criu/2012-April/002291.html" target="_blank">https://lists.openvz.org/pipermail/criu/2012-April/002291.html</a><br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt; I am using CRIU version 1.4 and kernel 3.14. Would you please tell me if I miss anything?<br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt; Thanks,<br>
&gt;  Â  Â &gt; Nam<br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt;<br>
&gt;  Â  Â &gt; _______________________________________________<br>
&gt;  Â  Â &gt; CRIU mailing list<br>
</span>&gt;  Â  Â &gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a> &lt;mailto:<a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a>&gt;<br>
&gt;  Â  Â &gt; <a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
&gt;  Â  Â &gt;<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br></div></div>