<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default" style="font-size:13px">I have done the native compilation for `criu` and `protobuf-c`.</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px"><b>Then I created a new directory and I put in the following:</b></div><blockquote class="gmail_quote" style="font-family:arial,sans-serif;font-size:13px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">./criu (the compiled binary)<br>./libs/<br>./libs/criu<br>./libs/criu/include<br>./libs/criu/lib<br>./libs/protobuf<br>./libs/protobuf/include<br>./libs/protobuf/lib</blockquote><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px"><b>I setup the CRIU env var in env.sh like this:</b></div><div class="gmail_default" style="font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">CRIU=&quot;sudo LD_LIBRARY_PATH=`pwd`/libs/criu/lib/:`pwd`/libs/protobuf-c/lib/ ./criu&quot;</blockquote></div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px"><b>Relevant lines from the Makefile:</b></div><div class="gmail_default" style="font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">CRIU_DIR_LIB=./libs/criu/lib<br>PROTOBUF_DIR_LIB=./libs/protobuf-c/lib</blockquote><div>...</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">define genb<br>$(1): $(1).o lib.o<br>    gcc $$^ -L $(CRIU_DIR_LIB) -lcriu -L $(PROTOBUF_DIR_LIB) -lprotobuf-c -o $$@<br>endef</blockquote></div></div><div class="gmail_default" style="font-size:13px">...</div><div class="gmail_default" style="font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">%.o: %.c<br>    gcc -c $^ -I$(CRIU_DIR_LIB) -I$(PROTOBUF_DIR_LIB) -o $@ -Werror</blockquote></div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">This, does create a healthy executable for the tests.</div><div class="gmail_default" style="font-size:13px">Also, if I `source` the `env.sh`, then executing `./criu`seems to working fine. It displays the man page, and I can use features like show -f a.img.</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px"><b>Relevant lines from the run.sh: (of the test/libcriu)</b></div><div class="gmail_default" style="font-size:13px">...</div><div class="gmail_default" style="font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ln -s ./libs/criu/lib/libcriu.so libcriu.so.1<br>cp ./libs/protobuf-c/lib/libprotobuf-c.so.1 libprotobuf-c.so.1</blockquote></div><div class="gmail_default" style="font-size:13px">...</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">I am missing something. But I don&#39;t know where!!</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px"><div class="gmail_default">The reason of following such approach is that I will cross-compile for ARM at some point.</div><div class="gmail_default">So, I will just replace the criu binary and the libs folders with the cross-compiled ones. After this, it should work!</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">Cheers,</div><div class="gmail_default">Paschalis</div><div class="gmail_default"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 5:11 PM, Ruslan Kuprieiev <span dir="ltr">&lt;<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/10/2014 06:26 PM, Paschalis Mpeis wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
I already sent this info, just right after my initial email.<br>
It is not shown in mailing list, so I re-attach:<br>
<br></span>
*cat wdir/s/<a href="http://cs.sk" target="_blank">cs.sk</a> &lt;<a href="http://cs.sk" target="_blank">http://cs.sk</a>&gt;:*<br>
<br>
    cat: wdir/s/<a href="http://cs.sk" target="_blank">cs.sk</a> &lt;<a href="http://cs.sk" target="_blank">http://cs.sk</a>&gt;: No such device or address<br>
<br>
<br>
*cat wdir/s/service.log:*<br>
<br>
    (00.000037) The service socket is bound to <a href="http://cs.sk" target="_blank">cs.sk</a> &lt;<a href="http://cs.sk" target="_blank">http://cs.sk</a>&gt;<span class=""><br>
    (00.000187) Waiting for connection...<br>
    (00.058685) Connected.<br>
    (00.058745) Waiting for connection...<br>
    (00.058934) Restrict C/R with 0:0 uid:gid<br>
    (00.061206) Restrict C/R with 0:0 uid:gid<br>
    (00.064244) Worker(pid 6370) exited with 0<br>
</span></blockquote>
<br>
Hm ,looks like libcriu didn&#39;t even try to connect to criu on restore.<br>
<br>
Did you &quot;make install&quot;? Could you show us what &quot;which criu&quot; shows?<br>
<br>
Thanks.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
<br>
​Cheers,<br>
Paschalis​<br>
<br>
<br>
On Wed Dec 10 2014 at 4:22:08 PM Ruslan Kuprieiev &lt;<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a><br></span><span class="">
&lt;mailto:<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a>&gt;&gt; wrote:<br>
<br>
    Hi, Paschalis!<br>
<br>
    Could you also show us test/libcriu/s/service.log please?<br>
<br>
    Thanks.<br>
<br>
    On 12/10/2014 06:13 PM, Paschalis Mpeis wrote:<br>
     &gt; There is no restore.log in wdir/i/&lt;app-name/1 directory.<br>
     &gt; And it is specified on the code using:<br></span>
     &gt; `criu_set_log_file(&quot;restore.__<u></u>log&quot;);`<span class=""><br>
     &gt;<br>
     &gt; Also, is there an explanation of the directories created by criu?<br>
     &gt; I can tell some things by the files, but I would feel more confident<br>
     &gt; reading these from a documentation.<br>
     &gt;<br>
     &gt; Cheers,<br>
     &gt; Paschalis<br>
     &gt;<br>
     &gt;<br>
     &gt;<br>
     &gt; On Wed Dec 10 2014 at 3:55:49 PM Pavel Emelyanov<br>
    &lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> &lt;mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;<br></span><div><div class="h5">
     &gt; &lt;mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> &lt;mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;&gt;&gt; wrote:<br>
     &gt;<br>
     &gt;     On 12/10/2014 04:02 PM, Paschalis Mpeis wrote:<br>
     &gt;      &gt; Hi all,<br>
     &gt;      &gt;<br>
     &gt;      &gt; I &#39;ve been struggling with this problem for some time.<br>
     &gt;      &gt;<br>
     &gt;      &gt;<br>
     &gt;      &gt; *This is what I get when I execute the test_iters.c test<br>
    (located<br>
     &gt;     in tests/libcriu) with sudo:*<br>
     &gt;      &gt;<br>
     &gt;      &gt;     --- Start loop ---<br>
     &gt;      &gt;        `- loop: initializing<br>
     &gt;      &gt;     --- Dump loop ---<br>
     &gt;      &gt;        `- 1 iter over<br>
     &gt;      &gt;        `- Dump succeeded<br>
     &gt;      &gt;     --- Restore loop ---<br>
     &gt;      &gt;     Can&#39;t read response: Connection reset by peer<br>
     &gt;      &gt;     Can&#39;t receive response: Connection reset by peer<br>
     &gt;      &gt;     Unable to send/recv msg to/from CRIU: Connection reset<br>
    by peer<br>
     &gt;      &gt;     test_iters: FAIL<br>
     &gt;      &gt;     == Stopping service<br>
     &gt;      &gt;     FAIL<br>
     &gt;      &gt;<br>
     &gt;      &gt;<br>
     &gt;      &gt; *Here is the wdir/i/&lt;app-name/dump.log:*<br>
     &gt;<br>
     &gt;     But what fails is the restore. Can you show the restore.log file<br>
     &gt;     contents?<br>
     &gt;<br>
     &gt;     Thanks,<br>
     &gt;     Pavel<br>
     &gt;<br>
     &gt;<br>
     &gt;<br>
     &gt; The University of Edinburgh is a charitable body, registered in<br>
     &gt; Scotland, with registration number SC005336.<br>
     &gt;<br>
     &gt;<br>
     &gt;<br></div></div>
     &gt; ______________________________<u></u>___________________<br>
     &gt; CRIU mailing list<br>
     &gt; <a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a> &lt;mailto:<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a>&gt;<br>
     &gt; <a href="https://lists.openvz.org/__mailman/listinfo/criu" target="_blank">https://lists.openvz.org/__<u></u>mailman/listinfo/criu</a><br>
    &lt;<a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/<u></u>mailman/listinfo/criu</a>&gt;<span class=""><br>
     &gt;<br>
<br>
<br>
<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
</span></blockquote>
<br>
</blockquote></div><br></div>