[CRIU] Use page-server option in RPC mode
Hui Kang
hkang.sunysb at gmail.com
Wed Apr 22 06:37:42 PDT 2015
Hi, Pavel,
I did create a pair of socket on the host B. When I send "criu dump" RPC
without "--page-server --port", 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.
- Hui
On Wed, Apr 22, 2015 at 5:25 AM, Pavel Emelyanov <xemul at parallels.com>
wrote:
> On 04/22/2015 06:10 AM, Hui Kang wrote:
> > Hi,
> > 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.
> >
> > My setup are as follows.
> > [host A]: criu page-server --images-dir /tmp/image --port 10010
> > [host B]: Run my program to send dump request to host A. The program
> constructed the criu req as follows
>
> Page server doesn't accept RPC requests. It's CRIU service that does it, it
> works via unix domain socket and thus it should run on host B.
>
> > criu_req_type = DUMP
> >
> >
> > criu_page_server_info {
> >
> > address: IPaddress
> >
> > port: portNum
> >
> > }
> >
> >
> > In the criuopt, I set the values for ImagesDirFd, WorkDirFd, LogLevel,
> LogFile, Root, ManageCgroups, NotifyScripts,
> > Pid, CriuPageServerInfo.
> >
> >
> > Is there anything member fields missing? Thanks.
>
> -- Pavel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150422/8ae8aa2d/attachment-0001.html>
More information about the CRIU
mailing list