<div dir="ltr"><div>Hi, Pavel,<br></div><div>I did create a pair of socket on the host B. When I send &quot;criu dump&quot; RPC without &quot;--page-server --port&quot;, the RPC call succeed. However, when the RPC can not talk to the page server in the remote machine. I am wondering if there is any sample code for page-server in RPC call. Thanks.<br><br></div><div>- Hui<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 5:25 AM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.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 04/22/2015 06:10 AM, Hui Kang wrote:<br>
&gt; Hi,<br>
&gt; I would like to write a program to send CRIU dump request with page-server using RPC. However, the dump command returns in the local host and the remote page-server can not receive the dump images.<br>
&gt;<br>
&gt; My setup are as follows.<br>
&gt; [host A]: criu page-server --images-dir /tmp/image --port 10010<br>
&gt; [host B]: Run my program to send dump request to host A. The program constructed the criu req as follows<br>
<br>
</span>Page server doesn&#39;t accept RPC requests. It&#39;s CRIU service that does it, it<br>
works via unix domain socket and thus it should run on host B.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; criu_req_type = DUMP<br>
&gt;<br>
&gt;<br>
&gt; criu_page_server_info {<br>
&gt;<br>
&gt;     address: IPaddress<br>
&gt;<br>
&gt;     port:    portNum<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; In the criuopt, I set the values for ImagesDirFd, WorkDirFd, LogLevel, LogFile, Root, ManageCgroups, NotifyScripts,<br>
&gt; Pid, CriuPageServerInfo.<br>
&gt;<br>
&gt;<br>
&gt; Is there anything member fields missing? Thanks.<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">-- Pavel<br>
<br>
</font></span></blockquote></div><br></div></div></div></div>