lxcコンテナを特定のブリッジにバインドする方法は?

lxcコンテナを特定のブリッジにバインドする方法は?

特定のブリッジを作成し、特定のコンテナをそのブリッジにbr1バインドしたいと思います。それが重要であればインストールしましたcont1(違いが正確に何であるかよくわかりません)。lxclxd

アクセスを無効にしてlxcbr0ファイルを/etc/default-lxc-net作成しました。/var/lib/lxc/cont1/config

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br1
lxc.network.name = eth0
lxc.network.ipv4 = 10.10.11.0/24
lxc.network.ipv4.gateway = 10.10.11.11

しかしlxc cont1 start失敗しました(他のログ情報とともに)

lxc 20160313185746.671 ERROR    lxc_conf - conf.c:instantiate_veth:2590 - failed to attach 'vethM1YGJS' to the bridge 'lxcbr0': Operation not permitted
lxc 20160313185746.741 ERROR    lxc_conf - conf.c:lxc_create_network:2867 - failed to create netdev
lxc 20160313185746.741 ERROR    lxc_start - start.c:lxc_spawn:1023 - failed to create the network
lxc 20160313185746.741 ERROR    lxc_start - start.c:__lxc_start:1286 - failed to spawn 'cont1'

それ良いこれを構成するコマンド(?)があり、そのトピックに関する文書が見つかりません。

ベストアンサー1

おすすめ記事