创建检查点失败,并且错误消息对我没有帮助。 我在做什么错了?
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
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 -a
:Linux 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 --version
:3.0.3
答案 0 :(得分:0)
此问题是由于v1.6.1中iptables-restore
缺少选项-w
而引起的。
有关更多信息,请参见iptables issues for Ubuntu 18.04 #551和iptables-restore is missing -w option 。
一种选择是自己编译iptables-restore 1.6.2。