[CRIU] restoring to a different ip address
Pavel Emelyanov
xemul at parallels.com
Tue Apr 28 10:16:59 PDT 2015
On 04/28/2015 07:39 PM, Ross Boucher wrote:
> I don't entirely follow. Is there any way to change this behavior?
Well, CRIU calls ip utility to restore the network namespace bits and the
CR_IP_TOOL environment tells which tool to use. You can override this and
do with netns restore things you think you want.
> When I print the eth0 IP from my C program before restoring the IP
> is what I expect, and then after restoring its changed, and that
> change seems to be system wide.
Now I don't understand :) What the program is, what IP it prints and when
do you checkpoint/restore all this stuff?
-- Pavel
> On Tue, Apr 28, 2015 at 1:06 AM, Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com>> wrote:
>
> On 04/28/2015 03:06 AM, Ross Boucher wrote:
> > If you restore an image that had dumped tcp connections, does CRIU try to change
> > the ip address of the host if there's a mismatch?
>
> Nope :)
>
> > In my experiment of spinning up a new docker container with an image from a different
> > container, the new container gets a new ip address, but when I exec into the new
> > container and ask it's IP, it seems to be set to the old IP address.
>
> That's because criu saves ip addresses of the net namespace it dumps, so on
> restore old addresses would be set inside net namespace.
>
> -- Pavle
>
>
More information about the CRIU
mailing list