Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Server dumping failed #1652

Closed
Avijit009 opened this issue Nov 12, 2021 · 13 comments
Closed

Page Server dumping failed #1652

Avijit009 opened this issue Nov 12, 2021 · 13 comments

Comments

@Avijit009
Copy link

Dest:
**sudo mount -t tmpfs none test

sudo criu page-server -D test --port 8080**

Warn (criu/kerndat.c:1205): CRIU was built without libnftables support

Src:
sudo mount -t tmpfs none test
sudo criu dump --tree 4495 --shell-job -D test --leave-stopped --page-server --address 192.168.122.1 --port 8080

4495- is the container pid

Error (criu/mount.c:654): mnt: 1638:./proc/sched_debug doesn't have a proper root mount
Error (criu/cr-dump.c:1781): Dumping FAILED.

how to solve this issue?

@rst0git
Copy link
Member

rst0git commented Nov 12, 2021

4495- is the container pid

Hi @Avijit009,

It looks like you are trying to checkpoint a container directly with CRIU. This is challenging as you need to figure out all the options you need to specify to make it work. You can use runc instead.

This pull request describes the implementation opencontainers/runc#1541, and an example is available in this article https://www.redhat.com/en/blog/container-migration-around-world.

I hope this helps.

@Avijit009
Copy link
Author

Yes I was trying to checkpoint a container directly with CRIU.

Ok I will try using runC.

Thank You.

@Avijit009
Copy link
Author

@rst0git HI.

Is there any proper documentation for runC like CRIU and Podman?

Actually, I am not getting the runc thing how it will work.
If you can refer me to those commands that will really helpful for me because with disk I can work with but diskless I am not able to do that.
If possible please refer to me for exact commands.

one more thing sudo docker export $(docker create busybox) | tar -C rootfs -xvf - is not working in my case getting below error

tar: bin: Cannot mkdir: Permission denied
tar: bin/reformime: Cannot hard link to ‘bin/[’: No such file or directory
bin/remove-shell
tar: bin: Cannot mkdir: Permission denied
tar: bin/remove-shell: Cannot hard link to ‘bin/[’: No such file or directory
bin/renice
tar: bin: Cannot mkdir: Permission denied
tar: bin/renice: Cannot hard link to ‘bin/[’: No such file or directory
bin/reset
tar: bin: Cannot mkdir: Permission denied
tar: bin/reset: Cannot hard link to ‘bin/[’: No such file or directory
bin/resize
tar: bin: Cannot mkdir: Permission denied
tar: bin/resize: Cannot hard link to ‘bin/[’: No such file or directory
bin/resume
tar: bin: Cannot mkdir: Permission denied
tar: bin/resume: Cannot hard link to ‘bin/[’: No such file or directory
bin/rev
tar: bin: Cannot mkdir: Permission denied
tar: bin/rev: Cannot hard link to ‘bin/[’: No such file or directory
bin/rm
tar: bin: Cannot mkdir: Permission denied
tar: bin/rm: Cannot hard link to ‘bin/[’: No such file or directory
bin/rmdir
tar: bin: Cannot mkdir: Permission denied
tar: bin/rmdir: Cannot hard link to ‘bin/[’: No such file or directory
bin/rmmod
tar: bin: Cannot mkdir: Permission denied
tar: bin/rmmod: Cannot hard link to ‘bin/[’: No such file or directory
bin/route
tar: bin: Cannot mkdir: Permission denied
tar: bin/route: Cannot hard link to ‘bin/[’: No such file or directory
bin/rpm
tar: bin: Cannot mkdir: Permission denied
tar: bin/rpm: Cannot hard link to ‘bin/[’: No such file or directory
bin/rpm2cpio
tar: bin: Cannot mkdir: Permission denied
tar: bin/rpm2cpio: Cannot hard link to ‘bin/[’: No such file or directory
bin/rtcwake
tar: bin: Cannot mkdir: Permission denied
tar: bin/rtcwake: Cannot hard link to ‘bin/[’: No such file or directory
bin/run-init
tar: bin: Cannot mkdir: Permission denied
tar: bin/run-init: Cannot hard link to ‘bin/[’: No such file or directory
bin/run-parts
tar: bin: Cannot mkdir: Permission denied
tar: bin/run-parts: Cannot hard link to ‘bin/[’: No such file or directory
bin/runlevel
tar: bin: Cannot mkdir: Permission denied
tar: bin/runlevel: Cannot hard link to ‘bin/[’: No such file or directory
bin/runsv
tar: bin: Cannot mkdir: Permission denied
tar: bin/runsv: Cannot hard link to ‘bin/[’: No such file or directory
bin/runsvdir
tar: bin: Cannot mkdir: Permission denied
tar: bin/runsvdir: Cannot hard link to ‘bin/[’: No such file or directory
bin/rx
tar: bin: Cannot mkdir: Permission denied
tar: bin/rx: Cannot hard link to ‘bin/[’: No such file or directory
bin/script
tar: bin: Cannot mkdir: Permission denied
tar: bin/script: Cannot hard link to ‘bin/[’: No such file or directory
bin/scriptreplay
tar: bin: Cannot mkdir: Permission denied
tar: bin/scriptreplay: Cannot hard link to ‘bin/[’: No such file or directory
bin/sed
tar: bin: Cannot mkdir: Permission denied
tar: bin/sed: Cannot hard link to ‘bin/[’: No such file or directory
bin/sendmail
tar: bin: Cannot mkdir: Permission denied
tar: bin/sendmail: Cannot hard link to ‘bin/[’: No such file or directory
bin/seq
tar: bin: Cannot mkdir: Permission denied
tar: bin/seq: Cannot hard link to ‘bin/[’: No such file or directory
bin/setarch
tar: bin: Cannot mkdir: Permission denied
tar: bin/setarch: Cannot hard link to ‘bin/[’: No such file or directory
bin/setconsole
tar: bin: Cannot mkdir: Permission denied
tar: bin/setconsole: Cannot hard link to ‘bin/[’: No such file or directory
bin/setfattr
tar: bin: Cannot mkdir: Permission denied
tar: bin/setfattr: Cannot hard link to ‘bin/[’: No such file or directory
bin/setfont
tar: bin: Cannot mkdir: Permission denied
tar: bin/setfont: Cannot hard link to ‘bin/[’: No such file or directory
bin/setkeycodes
tar: bin: Cannot mkdir: Permission denied
tar: bin/setkeycodes: Cannot hard link to ‘bin/[’: No such file or directory
bin/setlogcons
tar: bin: Cannot mkdir: Permission denied
tar: bin/setlogcons: Cannot hard link to ‘bin/[’: No such file or directory
bin/setpriv
tar: bin: Cannot mkdir: Permission denied
tar: bin/setpriv: Cannot hard link to ‘bin/[’: No such file or directory
bin/setserial
tar: bin: Cannot mkdir: Permission denied
tar: bin/setserial: Cannot hard link to ‘bin/[’: No such file or directory
bin/setsid
tar: bin: Cannot mkdir: Permission denied
tar: bin/setsid: Cannot hard link to ‘bin/[’: No such file or directory
bin/setuidgid
tar: bin: Cannot mkdir: Permission denied
tar: bin/setuidgid: Cannot hard link to ‘bin/[’: No such file or directory
bin/sh
tar: bin: Cannot mkdir: Permission denied
tar: bin/sh: Cannot hard link to ‘bin/[’: No such file or directory
bin/sha1sum
tar: bin: Cannot mkdir: Permission denied
tar: bin/sha1sum: Cannot hard link to ‘bin/[’: No such file or directory
bin/sha256sum
tar: bin: Cannot mkdir: Permission denied
tar: bin/sha256sum: Cannot hard link to ‘bin/[’: No such file or directory
bin/sha3sum
tar: bin: Cannot mkdir: Permission denied
tar: bin/sha3sum: Cannot hard link to ‘bin/[’: No such file or directory
bin/sha512sum
tar: bin: Cannot mkdir: Permission denied
tar: bin/sha512sum: Cannot hard link to ‘bin/[’: No such file or directory
bin/showkey
tar: bin: Cannot mkdir: Permission denied
tar: bin/showkey: Cannot hard link to ‘bin/[’: No such file or directory
bin/shred
tar: bin: Cannot mkdir: Permission denied
tar: bin/shred: Cannot hard link to ‘bin/[’: No such file or directory
bin/shuf
tar: bin: Cannot mkdir: Permission denied
tar: bin/shuf: Cannot hard link to ‘bin/[’: No such file or directory
bin/slattach
tar: bin: Cannot mkdir: Permission denied
tar: bin/slattach: Cannot hard link to ‘bin/[’: No such file or directory
bin/sleep
tar: bin: Cannot mkdir: Permission denied
tar: bin/sleep: Cannot hard link to ‘bin/[’: No such file or directory
bin/smemcap
tar: bin: Cannot mkdir: Permission denied
tar: bin/smemcap: Cannot hard link to ‘bin/[’: No such file or directory
bin/softlimit
tar: bin: Cannot mkdir: Permission denied
tar: bin/softlimit: Cannot hard link to ‘bin/[’: No such file or directory
bin/sort
tar: bin: Cannot mkdir: Permission denied
tar: bin/sort: Cannot hard link to ‘bin/[’: No such file or directory
bin/split
tar: bin: Cannot mkdir: Permission denied
tar: bin/split: Cannot hard link to ‘bin/[’: No such file or directory
bin/ssl_client
tar: bin: Cannot mkdir: Permission denied
tar: bin/ssl_client: Cannot hard link to ‘bin/[’: No such file or directory
bin/start-stop-daemon
tar: bin: Cannot mkdir: Permission denied
tar: bin/start-stop-daemon: Cannot hard link to ‘bin/[’: No such file or directory
bin/stat
tar: bin: Cannot mkdir: Permission denied
tar: bin/stat: Cannot hard link to ‘bin/[’: No such file or directory
bin/strings
tar: bin: Cannot mkdir: Permission denied
tar: bin/strings: Cannot hard link to ‘bin/[’: No such file or directory
bin/stty
tar: bin: Cannot mkdir: Permission denied
tar: bin/stty: Cannot hard link to ‘bin/[’: No such file or directory
bin/su
tar: bin: Cannot mkdir: Permission denied
tar: bin/su: Cannot hard link to ‘bin/[’: No such file or directory
bin/sulogin
tar: bin: Cannot mkdir: Permission denied
tar: bin/sulogin: Cannot hard link to ‘bin/[’: No such file or directory
bin/sum
tar: bin: Cannot mkdir: Permission denied
tar: bin/sum: Cannot hard link to ‘bin/[’: No such file or directory
bin/sv
tar: bin: Cannot mkdir: Permission denied
tar: bin/sv: Cannot hard link to ‘bin/[’: No such file or directory
bin/svc
tar: bin: Cannot mkdir: Permission denied
tar: bin/svc: Cannot hard link to ‘bin/[’: No such file or directory
bin/svlogd
tar: bin: Cannot mkdir: Permission denied
tar: bin/svlogd: Cannot hard link to ‘bin/[’: No such file or directory
bin/svok
tar: bin: Cannot mkdir: Permission denied
tar: bin/svok: Cannot hard link to ‘bin/[’: No such file or directory
bin/swapoff
tar: bin: Cannot mkdir: Permission denied
tar: bin/swapoff: Cannot hard link to ‘bin/[’: No such file or directory
bin/swapon
tar: bin: Cannot mkdir: Permission denied
tar: bin/swapon: Cannot hard link to ‘bin/[’: No such file or directory
bin/switch_root
tar: bin: Cannot mkdir: Permission denied
tar: bin/switch_root: Cannot hard link to ‘bin/[’: No such file or directory
bin/sync
tar: bin: Cannot mkdir: Permission denied
tar: bin/sync: Cannot hard link to ‘bin/[’: No such file or directory
bin/sysctl
tar: bin: Cannot mkdir: Permission denied
tar: bin/sysctl: Cannot hard link to ‘bin/[’: No such file or directory
bin/syslogd
tar: bin: Cannot mkdir: Permission denied
tar: bin/syslogd: Cannot hard link to ‘bin/[’: No such file or directory
bin/tac
tar: bin: Cannot mkdir: Permission denied
tar: bin/tac: Cannot hard link to ‘bin/[’: No such file or directory
bin/tail
tar: bin: Cannot mkdir: Permission denied
tar: bin/tail: Cannot hard link to ‘bin/[’: No such file or directory
bin/tar
tar: bin: Cannot mkdir: Permission denied
tar: bin/tar: Cannot hard link to ‘bin/[’: No such file or directory
bin/taskset
tar: bin: Cannot mkdir: Permission denied
tar: bin/taskset: Cannot hard link to ‘bin/[’: No such file or directory
bin/tc
tar: bin: Cannot mkdir: Permission denied
tar: bin/tc: Cannot hard link to ‘bin/[’: No such file or directory
bin/tcpsvd
tar: bin: Cannot mkdir: Permission denied
tar: bin/tcpsvd: Cannot hard link to ‘bin/[’: No such file or directory
bin/tee
tar: bin: Cannot mkdir: Permission denied
tar: bin/tee: Cannot hard link to ‘bin/[’: No such file or directory
bin/telnet
tar: bin: Cannot mkdir: Permission denied
tar: bin/telnet: Cannot hard link to ‘bin/[’: No such file or directory
bin/telnetd
tar: bin: Cannot mkdir: Permission denied
tar: bin/telnetd: Cannot hard link to ‘bin/[’: No such file or directory
bin/test
tar: bin: Cannot mkdir: Permission denied
tar: bin/test: Cannot hard link to ‘bin/[’: No such file or directory
bin/tftp
tar: bin: Cannot mkdir: Permission denied
tar: bin/tftp: Cannot hard link to ‘bin/[’: No such file or directory
bin/tftpd
tar: bin: Cannot mkdir: Permission denied
tar: bin/tftpd: Cannot hard link to ‘bin/[’: No such file or directory
bin/time
tar: bin: Cannot mkdir: Permission denied
tar: bin/time: Cannot hard link to ‘bin/[’: No such file or directory
bin/timeout
tar: bin: Cannot mkdir: Permission denied
tar: bin/timeout: Cannot hard link to ‘bin/[’: No such file or directory
bin/top
tar: bin: Cannot mkdir: Permission denied
tar: bin/top: Cannot hard link to ‘bin/[’: No such file or directory
bin/touch
tar: bin: Cannot mkdir: Permission denied
tar: bin/touch: Cannot hard link to ‘bin/[’: No such file or directory
bin/tr
tar: bin: Cannot mkdir: Permission denied
tar: bin/tr: Cannot hard link to ‘bin/[’: No such file or directory
bin/traceroute
tar: bin: Cannot mkdir: Permission denied
tar: bin/traceroute: Cannot hard link to ‘bin/[’: No such file or directory
bin/traceroute6
tar: bin: Cannot mkdir: Permission denied
tar: bin/traceroute6: Cannot hard link to ‘bin/[’: No such file or directory
bin/true
tar: bin: Cannot mkdir: Permission denied
tar: bin/true: Cannot hard link to ‘bin/[’: No such file or directory
bin/truncate
tar: bin: Cannot mkdir: Permission denied
tar: bin/truncate: Cannot hard link to ‘bin/[’: No such file or directory
bin/ts
tar: bin: Cannot mkdir: Permission denied
tar: bin/ts: Cannot hard link to ‘bin/[’: No such file or directory
bin/tty
tar: bin: Cannot mkdir: Permission denied
tar: bin/tty: Cannot hard link to ‘bin/[’: No such file or directory
bin/ttysize
tar: bin: Cannot mkdir: Permission denied
tar: bin/ttysize: Cannot hard link to ‘bin/[’: No such file or directory
bin/tunctl
tar: bin: Cannot mkdir: Permission denied
tar: bin/tunctl: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubiattach
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubiattach: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubidetach
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubidetach: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubimkvol
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubimkvol: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubirename
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubirename: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubirmvol
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubirmvol: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubirsvol
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubirsvol: Cannot hard link to ‘bin/[’: No such file or directory
bin/ubiupdatevol
tar: bin: Cannot mkdir: Permission denied
tar: bin/ubiupdatevol: Cannot hard link to ‘bin/[’: No such file or directory
bin/udhcpc
tar: bin: Cannot mkdir: Permission denied
tar: bin/udhcpc: Cannot hard link to ‘bin/[’: No such file or directory
bin/udhcpc6
tar: bin: Cannot mkdir: Permission denied
tar: bin/udhcpc6: Cannot hard link to ‘bin/[’: No such file or directory
bin/udhcpd
tar: bin: Cannot mkdir: Permission denied
tar: bin/udhcpd: Cannot hard link to ‘bin/[’: No such file or directory
bin/udpsvd
tar: bin: Cannot mkdir: Permission denied
tar: bin/udpsvd: Cannot hard link to ‘bin/[’: No such file or directory
bin/uevent
tar: bin: Cannot mkdir: Permission denied
tar: bin/uevent: Cannot hard link to ‘bin/[’: No such file or directory
bin/umount
tar: bin: Cannot mkdir: Permission denied
tar: bin/umount: Cannot hard link to ‘bin/[’: No such file or directory
bin/uname
tar: bin: Cannot mkdir: Permission denied
tar: bin/uname: Cannot hard link to ‘bin/[’: No such file or directory
bin/unexpand
tar: bin: Cannot mkdir: Permission denied
tar: bin/unexpand: Cannot hard link to ‘bin/[’: No such file or directory
bin/uniq
tar: bin: Cannot mkdir: Permission denied
tar: bin/uniq: Cannot hard link to ‘bin/[’: No such file or directory
bin/unix2dos
tar: bin: Cannot mkdir: Permission denied
tar: bin/unix2dos: Cannot hard link to ‘bin/[’: No such file or directory
bin/unlink
tar: bin: Cannot mkdir: Permission denied
tar: bin/unlink: Cannot hard link to ‘bin/[’: No such file or directory
bin/unlzma
tar: bin: Cannot mkdir: Permission denied
tar: bin/unlzma: Cannot hard link to ‘bin/[’: No such file or directory
bin/unshare
tar: bin: Cannot mkdir: Permission denied
tar: bin/unshare: Cannot hard link to ‘bin/[’: No such file or directory
bin/unxz
tar: bin: Cannot mkdir: Permission denied
tar: bin/unxz: Cannot hard link to ‘bin/[’: No such file or directory
bin/unzip
tar: bin: Cannot mkdir: Permission denied
tar: bin/unzip: Cannot hard link to ‘bin/[’: No such file or directory
bin/uptime
tar: bin: Cannot mkdir: Permission denied
tar: bin/uptime: Cannot hard link to ‘bin/[’: No such file or directory
bin/users
tar: bin: Cannot mkdir: Permission denied
tar: bin/users: Cannot hard link to ‘bin/[’: No such file or directory
bin/usleep
tar: bin: Cannot mkdir: Permission denied
tar: bin/usleep: Cannot hard link to ‘bin/[’: No such file or directory
bin/uudecode
tar: bin: Cannot mkdir: Permission denied
tar: bin/uudecode: Cannot hard link to ‘bin/[’: No such file or directory
bin/uuencode
tar: bin: Cannot mkdir: Permission denied
tar: bin/uuencode: Cannot hard link to ‘bin/[’: No such file or directory
bin/vconfig
tar: bin: Cannot mkdir: Permission denied
tar: bin/vconfig: Cannot hard link to ‘bin/[’: No such file or directory
bin/vi
tar: bin: Cannot mkdir: Permission denied
tar: bin/vi: Cannot hard link to ‘bin/[’: No such file or directory
bin/vlock
tar: bin: Cannot mkdir: Permission denied
tar: bin/vlock: Cannot hard link to ‘bin/[’: No such file or directory
bin/volname
tar: bin: Cannot mkdir: Permission denied
tar: bin/volname: Cannot hard link to ‘bin/[’: No such file or directory
bin/w
tar: bin: Cannot mkdir: Permission denied
tar: bin/w: Cannot hard link to ‘bin/[’: No such file or directory
bin/wall
tar: bin: Cannot mkdir: Permission denied
tar: bin/wall: Cannot hard link to ‘bin/[’: No such file or directory
bin/watch
tar: bin: Cannot mkdir: Permission denied
tar: bin/watch: Cannot hard link to ‘bin/[’: No such file or directory
bin/watchdog
tar: bin: Cannot mkdir: Permission denied
tar: bin/watchdog: Cannot hard link to ‘bin/[’: No such file or directory
bin/wc
tar: bin: Cannot mkdir: Permission denied
tar: bin/wc: Cannot hard link to ‘bin/[’: No such file or directory
bin/wget
tar: bin: Cannot mkdir: Permission denied
tar: bin/wget: Cannot hard link to ‘bin/[’: No such file or directory
bin/which
tar: bin: Cannot mkdir: Permission denied
tar: bin/which: Cannot hard link to ‘bin/[’: No such file or directory
bin/who
tar: bin: Cannot mkdir: Permission denied
tar: bin/who: Cannot hard link to ‘bin/[’: No such file or directory
bin/whoami
tar: bin: Cannot mkdir: Permission denied
tar: bin/whoami: Cannot hard link to ‘bin/[’: No such file or directory
bin/whois
tar: bin: Cannot mkdir: Permission denied
tar: bin/whois: Cannot hard link to ‘bin/[’: No such file or directory
bin/xargs
tar: bin: Cannot mkdir: Permission denied
tar: bin/xargs: Cannot hard link to ‘bin/[’: No such file or directory
bin/xxd
tar: bin: Cannot mkdir: Permission denied
tar: bin/xxd: Cannot hard link to ‘bin/[’: No such file or directory
bin/xz
tar: bin: Cannot mkdir: Permission denied
tar: bin/xz: Cannot hard link to ‘bin/[’: No such file or directory
bin/xzcat
tar: bin: Cannot mkdir: Permission denied
tar: bin/xzcat: Cannot hard link to ‘bin/[’: No such file or directory
bin/yes
tar: bin: Cannot mkdir: Permission denied
tar: bin/yes: Cannot hard link to ‘bin/[’: No such file or directory
bin/zcat
tar: bin: Cannot mkdir: Permission denied
tar: bin/zcat: Cannot hard link to ‘bin/[’: No such file or directory
bin/zcip
tar: bin: Cannot mkdir: Permission denied
tar: bin/zcip: Cannot hard link to ‘bin/[’: No such file or directory
dev/
tar: dev: Cannot mkdir: Permission denied
dev/console
tar: dev: Cannot mkdir: Permission denied
tar: dev/console: Cannot open: No such file or directory
dev/pts/
tar: dev: Cannot mkdir: Permission denied
tar: dev/pts: Cannot mkdir: No such file or directory
dev/shm/
tar: dev: Cannot mkdir: Permission denied
tar: dev/shm: Cannot mkdir: No such file or directory
etc/
tar: etc: Cannot mkdir: Permission denied
etc/group
tar: etc: Cannot mkdir: Permission denied
tar: etc/group: Cannot open: No such file or directory
etc/hostname
tar: etc: Cannot mkdir: Permission denied
tar: etc/hostname: Cannot open: No such file or directory
etc/hosts
tar: etc: Cannot mkdir: Permission denied
tar: etc/hosts: Cannot open: No such file or directory
etc/localtime
tar: etc: Cannot mkdir: Permission denied
tar: etc/localtime: Cannot open: No such file or directory
etc/mtab
tar: etc: Cannot mkdir: Permission denied
tar: etc/mtab: Cannot open: No such file or directory
etc/network/
tar: etc: Cannot mkdir: Permission denied
tar: etc/network: Cannot mkdir: No such file or directory
etc/network/if-down.d/
tar: etc: Cannot mkdir: Permission denied
tar: etc/network/if-down.d: Cannot mkdir: No such file or directory
etc/network/if-post-down.d/
tar: etc: Cannot mkdir: Permission denied
tar: etc/network/if-post-down.d: Cannot mkdir: No such file or directory
etc/network/if-pre-up.d/
tar: etc: Cannot mkdir: Permission denied
tar: etc/network/if-pre-up.d: Cannot mkdir: No such file or directory
etc/network/if-up.d/
tar: etc: Cannot mkdir: Permission denied
tar: etc/network/if-up.d: Cannot mkdir: No such file or directory
etc/passwd
tar: etc: Cannot mkdir: Permission denied
tar: etc/passwd: Cannot open: No such file or directory
etc/resolv.conf
tar: etc: Cannot mkdir: Permission denied
tar: etc/resolv.conf: Cannot open: No such file or directory
etc/shadow
tar: etc: Cannot mkdir: Permission denied
tar: etc/shadow: Cannot open: No such file or directory
home/
tar: home: Cannot mkdir: Permission denied
proc/
tar: proc: Cannot mkdir: Permission denied
root/
tar: root: Cannot mkdir: Permission denied
sys/
tar: sys: Cannot mkdir: Permission denied
tmp/
tar: tmp: Cannot mkdir: Permission denied
usr/
tar: usr: Cannot mkdir: Permission denied
usr/sbin/
tar: usr: Cannot mkdir: Permission denied
tar: usr/sbin: Cannot mkdir: No such file or directory
var/
tar: var: Cannot mkdir: Permission denied
var/spool/
tar: var: Cannot mkdir: Permission denied
tar: var/spool: Cannot mkdir: No such file or directory
var/spool/mail/
tar: var: Cannot mkdir: Permission denied
tar: var/spool/mail: Cannot mkdir: No such file or directory
var/www/
tar: var: Cannot mkdir: Permission denied
tar: var/www: Cannot mkdir: No such file or directory
tar: Exiting with failure status due to previous errors

Sorry for this but I need to solve this issue that is why I am posting.

@rst0git
Copy link
Member

rst0git commented Nov 14, 2021

Hi @Avijit009,

You can find runc documentation for checkpoint/restore with --help and these man pages:

  • man runc-checkpoint
  • man runc-restore

The following commands create, checkpoint and restore a runc container:

mkdir -p tmp/rootfs && cd tmp
sudo docker export $(sudo docker create alpine:latest) --output="alpine.tar"
sudo tar xf alpine.tar -C rootfs
runc spec
sed -i '/terminal/c\   \"terminal": false,' config.json
sed -i '/"sh"/c\   \"sh", "-c", "i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done"' config.json

# Run container
sudo runc run -d looper &> /dev/null  < /dev/null
sudo runc ps looper

# Checkpoint container
mkdir c1
sudo runc checkpoint --image-path c1 --work-path c1 looper

# Restore container
sudo runc restore -d --image-path c1 --work-path c1 looper
sudo runc ps looper

@Avijit009
Copy link
Author

@rst0git Thank you.
The problem is man is not working. When I try to see man runc, it output like No manual entry for runc that is why I am confused and can't use runc properly.

The runC version I am using.

runc version 1.0.0+dev
commit: v1.0.0-366-gf247ad20
spec: 1.0.2-dev
go: go1.17.3
libseccomp: 2.5.1

It's the development version. I installed it using https://github.com/opencontainers/runc this repository. Is It the wrong version I am using?
If it is wrong, then which one should I use?

@rst0git
Copy link
Member

rst0git commented Nov 14, 2021

@Avijit009 you should be able to install the man pages with sudo make install-man.

@Avijit009
Copy link
Author

@rst0git Will you please let me know what did I do wrong here?

Create a container by following this:

mkdir /tmp/cp && cd tmp
mkdir rootfs
sudo docker export $(docker create alpine:latest) --output="alpine.tar"
sudo tar xf alpine.tar -C rootfs
runc spec
sed -i '/terminal/c\   \"terminal": false,' config.json
sed -i '/"sh"/c\   \"sh", "-c", "i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done"' config.json

# Run container
sudo runc run -d looper &> /dev/null  < /dev/null
sudo runc ps looper

Then I run this command on the source where the image is created
sudo runc checkpoint --pre-dump --image-path /tmp/cp --work-path /tmp/cp --page-server 192.168.122.241:8888 --tcp-established
Output:

Incorrect Usage.
**Checkpoint options**
ERRO[0000] runc: "checkpoint" requires exactly 1 argument(s)

I got stuck here. Please have a look at this one.

@rst0git
Copy link
Member

rst0git commented Nov 17, 2021

ERRO[0000] runc: "checkpoint" requires exactly 1 argument(s)

The container ID is missing: runc checkpoint [command options] <container-id>

@Avijit009
Copy link
Author

@rst0git Hey.

When I dumped a container I got one file named status-dump but while restoring why I am not getting anything like this?

How to determine downtime and how to get the image size that I am migrating?

Thank you for your help.

@rst0git
Copy link
Member

rst0git commented Nov 18, 2021

When I dumped a container I got one file named status-dump but while restoring why I am not getting anything like this?

status-dump is created during checkpoint and stats-restore during restore. These files should be created in the directory specified with --work-path. You can find more information in https://criu.org/Statistics

(FYI: Adrian recently implemented the --print-stats option in Podman)

How to determine downtime and how to get the image size that I am migrating?

First you need to define what is downtime, then you can try to measure it.
For example, if you migrate an application that sends network packets, you can measure the delay between packets.

Also, you need to define what is an image and what data it contains. This would vary across the different applications.
There is a wiki page with information about images in CRIU: https://criu.org/Images

I hope this helps.

@Avijit009
Copy link
Author

@rst0git Thank you.
I think this will work.
I forgot to mention status-restore I was not getting. status-dump was in the work path.

Anyway, thank you and Adrian very much. You both help me a lot.

@rst0git
Copy link
Member

rst0git commented Nov 18, 2021

@Avijit009 No problem :)

Do you think we can close this GitHub issue?
You can always ask questions in https://gitter.im/save-restore/CRIU.

@Avijit009
Copy link
Author

@rst0git Yes you can close this.

If I stuck anywhere then I will ask on Gitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants