[CRIU] Restarting Process in an LXC Container

Pavel Emelyanov xemul at parallels.com
Wed Jan 21 09:14:39 PST 2015


On 01/21/2015 07:20 PM, Thouraya TH wrote:
> Hello :)
> 
> i have repeated all steps from the begining.
> The only change I made:
> 
> *Before the dumping process, *instead of
>                     root at g-2:~# lxc-start -n worker
>                     root at g-2:~# *lxc-attach -n worker*
> 
> i have done:
> 
>                     root at g-2:~# lxc-start -n worker
>                     root at g-2:~# *ssh ubuntu@$(sudo lxc-info -n worker -H -i)*
> 
> Dumping Process.
> Then, after restart, the process "test.sh" restarts well :)
> 
> ./test.sh > results.txt

Do you do this command manually?

> As you see, the result of test.sh is saved in the file results.txt. When, i restart the container, the process test.sh
> restarts and  the old file is overwritten! i find only the new results in the file !

Check the file contents after dump but before restore. Does this file exists
at all? Does it contain proper data?

> Have you an idea please ?
> 
> Thanks a lot for help.
> Best Regards.



More information about the CRIU mailing list