lxd 初始化失败
Failed lxd init
我运行lxd init --auto
:
后失败了
$ lxd init --auto
Error: Failed to create network 'lxdbr0': Failed adding DHCP/DNS access rules for network "lxdbr0" (ip): Failed apply nftables config: Failed to run: nft
table ip lxd {
chain in.lxdbr0 {
type filter hook input priority 0; policy accept;
iifname "lxdbr0" tcp dport 53 accept
iifname "lxdbr0" udp dport 53 accept
iifname "lxdbr0" udp dport 67 accept
}
chain out.lxdbr0 {
type filter hook output priority 0; policy accept;
oifname "lxdbr0" tcp sport 53 accept
oifname "lxdbr0" udp sport 53 accept
oifname "lxdbr0" udp sport 67 accept
}
}
: Error: Could not process rule: No such file or directory
^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
我一直在尝试重新安装 lxd 但错误再次出现(lxd 使用 snap 安装)。
我知道这个问题很老了,但我也有同样的问题。谷歌搜索错误消息结束后在这里。仍然没有解决方案,所以这可能会有所帮助:
在我的例子中,lxc 错误地检测到我使用的是 nftables 而不是 iptables,因为 iptables 是空的。
我添加了一个 iptable 规则,重新启动了 lxd,它现在可以工作了。
更多信息:https://github.com/lxc/lxd/issues/8724
我运行lxd init --auto
:
$ lxd init --auto
Error: Failed to create network 'lxdbr0': Failed adding DHCP/DNS access rules for network "lxdbr0" (ip): Failed apply nftables config: Failed to run: nft
table ip lxd {
chain in.lxdbr0 {
type filter hook input priority 0; policy accept;
iifname "lxdbr0" tcp dport 53 accept
iifname "lxdbr0" udp dport 53 accept
iifname "lxdbr0" udp dport 67 accept
}
chain out.lxdbr0 {
type filter hook output priority 0; policy accept;
oifname "lxdbr0" tcp sport 53 accept
oifname "lxdbr0" udp sport 53 accept
oifname "lxdbr0" udp sport 67 accept
}
}
: Error: Could not process rule: No such file or directory
^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
我一直在尝试重新安装 lxd 但错误再次出现(lxd 使用 snap 安装)。
我知道这个问题很老了,但我也有同样的问题。谷歌搜索错误消息结束后在这里。仍然没有解决方案,所以这可能会有所帮助: 在我的例子中,lxc 错误地检测到我使用的是 nftables 而不是 iptables,因为 iptables 是空的。 我添加了一个 iptable 规则,重新启动了 lxd,它现在可以工作了。 更多信息:https://github.com/lxc/lxd/issues/8724