lxc-checkpoint失败并显示错误消息

时间:2020-08-15 09:10:12

标签: linux containers iptables lxc

创建检查点失败,并且错误消息对我没有帮助。 我在做什么错了?

sudo lxc-create -t download -n bionic (`ubuntu`, `bionic`, `amd64`)
sudo lxc-start -n bionic -d

sudo lxc-checkpoint -n bionic -D /tmp/cp失败,并显示以下信息:

lxc-checkpoint: bionic: criu.c: do_dump: 1328 dump failed with 1
lxc-checkpoint: bionic: criu.c: do_dump: 1342 criu output: Will skip in-flight TCP connections

lxc-checkpoint: bionic: tools/lxc_checkpoint.c: checkpoint: 200 Checkpointing bionic failed

dump.log:

iptables-restore: invalid option -- 'w'
ip6tables-restore: invalid option -- 'w'
Warn  (criu/fsnotify.c:283): fsnotify:  Handle 0x1b:0xc46 cannot be opened
Error (criu/irmap.c:86): irmap: Can't stat /no-such-path: No such file or directory
Error (criu/fsnotify.c:286): fsnotify:  Can't dump that handle
Error (criu/cr-dump.c:1352): Dump files (pid: 6126) failed with -1
iptables-restore: invalid option -- 'w'
ip6tables-restore: invalid option -- 'w'
Error (criu/cr-dump.c:1709): Dumping FAILED.

必填信息

  • uname -aLinux bionic 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • lxc-start --version3.0.3

  • Github问题:https://github.com/lxc/lxc/issues/3521

1 个答案:

答案 0 :(得分:0)

此问题是由于v1.6.1中iptables-restore缺少选项-w而引起的。 有关更多信息,请参见iptables issues for Ubuntu 18.04 #551iptables-restore is missing -w option

一种选择是自己编译iptables-restore 1.6.2。