[CRIU] p.haul: migrating process with TCP connection established

Andrew Vagin avagin at parallels.com
Wed Apr 9 22:12:08 PDT 2014


On Wed, Apr 09, 2014 at 05:26:39PM +0200, Oscar Fernández wrote:
> Hi all,
> I'm trying to migrate a process which has a TCP connection established. This
> process is the server side of a simple server-client TCP program.
> 
> First of all I tried to dump and restore it using CRIU and it worked fine
> thanks to --tcp-established option.
> 
> Now I want to move that process to another machine, so I'm using p.haul this
> time, but it fails on process restoration.
> 
> The content of criu_restore.log is:
> 
> 3741: Error (sk-inet.c:514): Connected TCP socket in image
> Error (cr-restore.c:1036): 3741 exited, status=255
> Error (cr-restore.c:1579): Restoring FAILED.
> 
> Is this feature available on p.haul? Do I have to use some special options for
> tcp connections as well as criu does with --tcp-established?

Unfortunately you can't migrate a process on another machine with
another ip address.

You can execute your process in a network namespace, but in this case
you will need to create a new driver for p.haul, whick will provide
scripts for locking and unlocking network.

> 
> Thank you in advance.
> 
> --
> Óscar Fernández

> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list