[lxc-users] LXC Checkpoint

Tycho Andersen tycho.andersen at canonical.com
Wed Oct 1 20:38:37 UTC 2014


On Wed, Oct 01, 2014 at 09:19:41PM +0100, Thouraya TH wrote:
> Hello,
> i have this on the first terminal:
> root at thouraya-Lenovo-3000-N500:~# lxc-attach -n u1
> root at u1:~# ls
> root at u1:~# ls
> root at u1:~#
>
> in the second, i have done:
> root at thouraya-Lenovo-3000-N500
> :/home/thouraya# sudo lxc-checkpoint -s -D /tmp/checkpoint -n u1
> lxc_container: lxccontainer.c: exec_criu: 3566 Couldn't find criu binary
>
> Checkpointing u1 failed.
>
> as i remember i have already configured the path:
> root at thouraya-Lenovo-3000-N500:/home/thouraya# criu
>
> Usage:
>   criu dump|pre-dump -t PID [<options>]
>   criu restore [<options>]
>   criu show (-D DIR)|(-f FILE) [<options>]
>   criu check [--ms]
>   criu exec -p PID <syscall-string>
>   criu page-server
>   criu service [<options>]
>   criu dedup
>
> Commands:
>   dump           checkpoint a process/tree identified by pid
> pre-dump       pre-dump task(s) minimizing their frozen time
>   restore        restore a process/tree
>   show           show dump file(s) contents
>   check          checks whether the kernel support is up-to-date
>   exec           execute a system call by other task
>   page-server    launch page server
>   service        launch service
>   dedup          remove duplicates in memory dump
>
> Try -h|--help for more info
>
> Here i'm not a root:
>
> thouraya at thouraya-Lenovo-3000-
> N500:~$ lxc-checkpoint -s -D /tmp/checkpoint -n u1
> u1 is not defined
> thouraya at thouraya-Lenovo-3000-N500:~$
>
> thouraya at thouraya-Lenovo-3000-
> N500:~$ sudo lxc-ls -f
> [sudo] password for thouraya:
> NAME  STATE    IPV4        IPV6  GROUPS  AUTOSTART
> --------------------------------------------------
> u1    RUNNING  10.0.3.216  -     -       NO
> thouraya at thouraya-Lenovo-3000-N500:~$ lxc-ls -f
> NAME  STATE  IPV4  IPV6  GROUPS  AUTOSTART
> ------------------------------------------
> thouraya at thouraya-Lenovo-3000-N500:~$
>
>
> Have you an idea please ?

I think this is still your problem:

2014-10-01 19:27 GMT+01:00 Tycho Andersen <tycho.andersen at canonical.com>:
>
> Your path is probably getting cleared when you do 'sudo' (you can
> verify this by doing sudo which criu). Since you're running as root
> anyway, you don't need to do sudo (or you can do sudo -E, or install
> it somewhere that is on root's path).

Tycho


More information about the lxc-users mailing list