<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hello, responses inline.<br></div><div class="gmail_quote"><br>2014-04-09 17:44 GMT+02:00 Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">On 04/09/2014 07:26 PM, Oscar Fernández wrote:<br>
> Hi all,<br>
> 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.<br>
><br>
> First of all I tried to dump and restore it using CRIU and it worked fine thanks to --tcp-established option.<br>
><br>
> Now I want to move that process to another machine, so I'm using p.haul this time, but it fails on process restoration.<br>
<br>
</div>Can you show the command you're doing it with?<br></blockquote><div> <br>I'm using this command: p.haul/p.haul pid 3916 192.168.56.201 -v4<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><br>
> The content of criu_restore.log is:<br>
><br>
> 3741: Error (sk-inet.c:514): Connected TCP socket in image<br>
> Error (cr-restore.c:1036): 3741 exited, status=255<br>
> Error (cr-restore.c:1579): Restoring FAILED.<br>
<br>
</div>There's a -v<N> option to the p.haul that increases verbosity,<br>
it will give us more info :)<br></blockquote><div><br></div><div>Please, find attached the criu_restore.log file.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><br>
> Is this feature available on p.haul? Do I have to use some special options for tcp connections as well<br>
> as criu does with --tcp-established?<br>
<br>
</div>Well, in p.haul we have a concept of "hauler driver" -- this is a helper class, that<br>
known what we're migrating. Currently there are three drivers -- ovz, lxc and pid, that<br>
migrate openvz container, lxc container and just a process tree respectively.<br>
<br>
When deciding whether or not to live-migrate a tcp connection, p.haul asks a driver<br>
whether it can handle it, by properly locking and unlocking network during migration.<br>
At the moment this ability is implemented in the openvz driver only. If you're using<br>
the pid driver, it will be (in theory) possible to handle this, but more work will<br>
be required.<br>
<br>
Thanks,<br>
Pavel<br>
</blockquote></div><br></div><div class="gmail_extra">Thank you for your help!<br clear="all"></div><div class="gmail_extra"><br>-- <br>Óscar Fernández<br>
</div></div>