<div dir="ltr"><div>Hi Zhang,</div><div><br></div><div>Since you're not using AUFS, I assume you're using VFS. Can you confirm please?</div><div><br></div><div>As <a href="http://criu.org/Docker">http://criu.org/Docker</a> explains, you need to bind mount the container's root filesystem before attempting to restore. Also, can you try the docker_cr.sh helper script that is in the contrib subdirectory of CRIU sources to checkpoint and restore your container?</div><div><br></div><div>--Saied</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 10:21 AM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/04/2015 11:04 AM, Z F wrote:<br>
> Hi,<br>
><br>
</span>> I am trying criu docker checkpoint/restore external example (without AUFS) provided by Docker <<a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" rel="noreferrer" target="_blank">http://criu.org/Docker#Restore_Prework_for_External_C.2FR</a>><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Docker <<a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" rel="noreferrer" target="_blank">http://criu.org/Docker#Restore_Prework_for_External_C.2FR</a>><br>
<span class="">> This HOWTO page describes how to checkpoint and restore a Docker container.<br>
</span>> View on <a href="http://criu.org" rel="noreferrer" target="_blank">criu.org</a> <<a href="http://criu.org/Docker#Restore_Prework_for_External_C.2FR" rel="noreferrer" target="_blank">http://criu.org/Docker#Restore_Prework_for_External_C.2FR</a>><br>
<span class="">><br>
> Preview by Yahoo<br>
><br>
><br>
><br>
> The experiment was in the same host. And the restore failed with error:<br>
><br>
> (00.210352) 1: Error (files-reg.c:1055): File usr/bin/bash has bad size 960384 (expect 960392)<br>
> (00.210357) 1: Error (cr-restore.c:255): Can't fixup VMA's fd<br>
> (00.214642) Error (cr-restore.c:1912): Restoring FAILED.<br>
><br>
><br>
> The cause is that the /usr/bin/bash in host and container have different size.<br>
<br>
</span>That's weird. CRIU should pick the bash from container. So which bash is which? Is<br>
the actual size the host's one and expected the container's or vice-versa?<br>
<span class=""><br>
> While in my mind, restore of container would load the container's image and file system and load the container's bash. Anything wrong with my experiment?<br>
><br>
> Test log and criu log attached. Thank you very much!<br>
><br>
><br>
><br>
> Best Regards<br>
> Zhang Fan<br>
><br>
><br>
</span>> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
><br>
<br>
_______________________________________________<br>
CRIU mailing list<br>
<a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
</blockquote></div><br></div>