<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-04-10 7:41 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 04/09/2014 08:17 PM, Oscar Fernández wrote:<br>
> Hello, responses inline.<br>
><br>
</div>> 2014-04-09 17:44 GMT+02:00 Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>>:<br>
<div class="">><br>
> 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>
> Can you show the command you're doing it with?<br>
><br>
><br>
> I'm using this command: p.haul/p.haul pid 3916 192.168.56.201 -v4<br>
<br>
</div>OK, then this is pid driver. As Andrey pointed out live-migrating of a single process<br>
is tricky, since it's not clear what to do with the IP address. If you can take an<br>
IP address with the process, then live-migraiton is possible, but this should be<br>
properly coded in pid driver.<br>
<div class=""><br>
><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>
> There's a -v<N> option to the p.haul that increases verbosity,<br>
> it will give us more info :)<br>
><br>
><br>
> Please, find attached the criu_restore.log file.<br>
<br>
</div>Hm... Why did dump succeeded? It should have noticed that there was TCP socket alive<br>
and abort the dump. Can you show the dump.log?<br></blockquote><div><br></div><div>Find attached criu_pre_dump.log and criu_dump.log files.<br><br></div><div>Thank you<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
Pavel<br>
</blockquote></div><br><br clear="all"><br>-- <br>Óscar Fernández<br>
</div></div>