[CRIU] CRIU Docker Restore with Error: Bad File Size

Pavel Emelyanov xemul at parallels.com
Tue Aug 4 10:21:29 PDT 2015


On 08/04/2015 11:04 AM, Z F wrote:
> Hi,
> 
> I am trying criu docker checkpoint/restore  external example (without AUFS) provided by Docker <http://criu.org/Docker#Restore_Prework_for_External_C.2FR>
>  
>  
> 	
>  
> 	
>  
> 	
>  
> 	
>  
> Docker <http://criu.org/Docker#Restore_Prework_for_External_C.2FR>
> This HOWTO page describes how to checkpoint and restore a Docker container.
> View on criu.org <http://criu.org/Docker#Restore_Prework_for_External_C.2FR>
> 	
> Preview by Yahoo
>  
> 
> 
> The experiment was in the same host. And the restore failed with error:
> 
> (00.210352)      1: Error (files-reg.c:1055): File usr/bin/bash has bad size 960384 (expect 960392)
> (00.210357)      1: Error (cr-restore.c:255): Can't fixup VMA's fd
> (00.214642) Error (cr-restore.c:1912): Restoring FAILED.
> 
> 
> The cause is that the /usr/bin/bash in host and container have different size.

That's weird. CRIU should pick the bash from container. So which bash is which? Is
the actual size the host's one and expected the container's or vice-versa?

> 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? 
> 
> Test log and criu log attached. Thank you very much!
> 
> 
> 
> Best Regards
> Zhang Fan
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 



More information about the CRIU mailing list