【问题标题】:lxc-checkpoint fails with ambiguous error messagelxc-checkpoint 失败并显示不明确的错误消息
【发布时间】:2020-08-15 09:10:12
【问题描述】:

检查点的创建不成功,错误消息对我没有帮助。 我做错了什么?

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

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

【问题讨论】:

    标签: linux containers iptables lxc


    【解决方案1】:

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

    一个选项是自己编译 iptables-restore 1.6.2。

    【讨论】:

      猜你喜欢
      • 2019-11-01
      • 2012-11-26
      • 2015-02-02
      • 1970-01-01
      • 2013-07-07
      • 2020-05-14
      • 2020-05-10
      • 2018-08-28
      • 1970-01-01
      相关资源
      最近更新 更多