[CRIU] Using CRIU RPC between two nodes

Adrian Reber adrian at lisas.de
Mon Jun 15 14:59:34 MSK 2020


On Tue, Jun 09, 2020 at 03:49:06PM -0400, Pulasthi Supun Wickramasinghe wrote:
> I am trying to use CRIU RPC so I can send checkpoint and restore
> invocations over the network. I tried going through the RPC examples and
> got it working on a single machine, but I want to be able to send the RPC
> request from a remote machine. From what I understand the RPC service
> listens on a Unix domain socket (correct me if I am wrong) so I cannot
> figure out how I can call the RPC endpoint from a remote client. Is there a
> way to start the RPC service so it listens to a host:port combination? any
> help or guidance would be highly appreciated.

No, it does not support host:port. Would be good to know how you exactly
used it. Are you talking about 'criu service' or 'criu swrk'. I am not
sure how well supported 'criu service' still is.

But for both approaches you should be able to tunnel it through SSH. In
the case of 'criu service' using the 'criu_service.socket' socket and in
the 'criu swrk' case using the corresponding FD.

		Adrian


More information about the CRIU mailing list