<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="sudo LD_LIBRARY_PATH=`pwd`/libs/criu/lib/:`pwd`/libs/protobuf-c/lib/ ./criu"</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'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"><<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a>></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> <<a href="http://cs.sk" target="_blank">http://cs.sk</a>>:*<br>
<br>
cat: wdir/s/<a href="http://cs.sk" target="_blank">cs.sk</a> <<a href="http://cs.sk" target="_blank">http://cs.sk</a>>: 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> <<a href="http://cs.sk" target="_blank">http://cs.sk</a>><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't even try to connect to criu on restore.<br>
<br>
Did you "make install"? Could you show us what "which criu" 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 <<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:kupruser@gmail.com" target="_blank">kupruser@gmail.com</a>>> 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>
> There is no restore.log in wdir/i/<app-name/1 directory.<br>
> And it is specified on the code using:<br></span>
> `criu_set_log_file("restore.__<u></u>log");`<span class=""><br>
><br>
> Also, is there an explanation of the directories created by criu?<br>
> I can tell some things by the files, but I would feel more confident<br>
> reading these from a documentation.<br>
><br>
> Cheers,<br>
> Paschalis<br>
><br>
><br>
><br>
> On Wed Dec 10 2014 at 3:55:49 PM Pavel Emelyanov<br>
<<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>><br></span><div><div class="h5">
> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>>>> wrote:<br>
><br>
> On 12/10/2014 04:02 PM, Paschalis Mpeis wrote:<br>
> > Hi all,<br>
> ><br>
> > I 've been struggling with this problem for some time.<br>
> ><br>
> ><br>
> > *This is what I get when I execute the test_iters.c test<br>
(located<br>
> in tests/libcriu) with sudo:*<br>
> ><br>
> > --- Start loop ---<br>
> > `- loop: initializing<br>
> > --- Dump loop ---<br>
> > `- 1 iter over<br>
> > `- Dump succeeded<br>
> > --- Restore loop ---<br>
> > Can't read response: Connection reset by peer<br>
> > Can't receive response: Connection reset by peer<br>
> > Unable to send/recv msg to/from CRIU: Connection reset<br>
by peer<br>
> > test_iters: FAIL<br>
> > == Stopping service<br>
> > FAIL<br>
> ><br>
> ><br>
> > *Here is the wdir/i/<app-name/dump.log:*<br>
><br>
> But what fails is the restore. Can you show the restore.log file<br>
> contents?<br>
><br>
> Thanks,<br>
> Pavel<br>
><br>
><br>
><br>
> The University of Edinburgh is a charitable body, registered in<br>
> Scotland, with registration number SC005336.<br>
><br>
><br>
><br></div></div>
> ______________________________<u></u>___________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a> <mailto:<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a>><br>
> <a href="https://lists.openvz.org/__mailman/listinfo/criu" target="_blank">https://lists.openvz.org/__<u></u>mailman/listinfo/criu</a><br>
<<a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/<u></u>mailman/listinfo/criu</a>><span class=""><br>
><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>