[CRIU] Restarting Process in an LXC Container
Andrew Vagin
avagin at parallels.com
Fri Jan 16 03:29:57 PST 2015
On Thu, Jan 15, 2015 at 02:02:56PM +0100, Thouraya TH wrote:
> Hello,
Hello,
Add Tycho into CC.
>
> Please,i have a question about the restarting process of a LXC container.
> i run this script http://criu.org/Simple_loop in a container:
>
> 1)
> ubuntu at worker:/home$ ./test.sh
> Wed Jan 14 22:30:23 CET 2015
> Wed Jan 14 22:30:24 CET 2015
> Wed Jan 14 22:30:25 CET 2015
> Wed Jan 14 22:30:26 CET 2015
> Wed Jan 14 22:30:35 CET 2015
> .......................
How do you enter into CT? Do you use screen or ssh?
> 2) i have done the dumping process:
> root at g-3:/home# lxc-checkpoint -s -D /home/ImGLXC1Worker -n worker
> 3) i have restart the container:
> root at g-3:/home/ImGLXC1Worker# lxc-checkpoint -r -D /home/ImGLXC1Worker -n
> worker
> # lxc-ls -f
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART
> -----------------------------------------------------
> worker RUNNING 10.0.3.109 - - NO
Thouraya, Could you increase verbose level for criu and show us dump and restore
logs? Tycho, could you explain how to do this with lxc-checkpoint?
Thanks,
Andrew
>
> 4) ssh ubuntu@$(sudo lxc-info -n worker -H -i)
> 5) ubuntu at worker:/home$ ps
> PID TTY TIME CMD
> 304 pts/0 00:00:00 bash
> 318 pts/0 00:00:00 ps
>
> The process "test" didn't restart!
>
> i have done another test : ubuntu at worker:/home$ ./test.sh > Results.txt /
> Dumping the container / Restarting the container/ The process "test" didn't
> restart! and the file Results.txt didn't change !
>
> Have you an idea please ?
>
> Thanks a lot.
> Best Regards.
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list