我已经开始在我的主机上制作许多 lxc 容器。所以默认情况下 lxc 提供了一个默认的网桥 lxcbr0。可以使用 lxcbr0 实例化多少个虚拟接口(interface)。我从 2000 个容器开始,但在 1024 个容器之后我卡住了。

错误是:

lxc-start: conf.c: instantiate_veth: 2978 failed to attach 'vethO7X5DJ' to
the bridge 'lxcbr0': Exchange full
lxc-start: conf.c: lxc_create_network: 3261 failed to create netdev
lxc-start: start.c: lxc_spawn: 826 failed to create the network
lxc-start: start.c: __lxc_start: 1080 failed to spawn 'container_1024'
lxc-start: lxc_start.c: main: 342 The container failed to start.

最佳答案

那显然是 linux bridge ports limit,它是 1024。

您可能需要使用一些自定义网络(例如,多个网桥,因为网桥没有硬性限制)或者可能是 http://openvswitch.org/ 或其他东西。

关于linux - lxc 提供的默认 lxcbr0 网桥可以添加多少个虚拟接口(interface)?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32496080/

10-16 17:29