I am running LXD 4.0.7 on Gentoo Linux:
$ lxd --version
4.0.7
$ uname -a
Linux t470 5.4.109-gentoo #1 SMP Mon Jun 14 20:49:12 CEST 2021 x86_64 Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz GenuineIntel GNU/Linux
I am using a network bridge:
$ lxc network show lxdbr0
config:
ipv4.address: 10.248.20.1/24
ipv4.nat: "true"
ipv6.address: fd42:9c78:69e0:463f::1/64
ipv6.nat: "true"
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/instances/gentoo-PG-C01
- /1.0/instances/gentoo-WS-C01
- /1.0/instances/ubuntu-PG-C01
- /1.0/profiles/default
managed: true
status: Created
locations:
- none
I have three containers with these virtual interfaces:
12: vethe85a88ba@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lxdbr0 state UP group default qlen 1000
link/ether da:dc:5c:4c:24:bb brd ff:ff:ff:ff:ff:ff link-netnsid 0
14: vethb351eb70@if13: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lxdbr0 state UP group default qlen 1000
link/ether 8e:fc:81:15:0f:fd brd ff:ff:ff:ff:ff:ff link-netnsid 1
18: vethb2d12909@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether aa:0e:9e:25:e7:36 brd ff:ff:ff:ff:ff:ff link-netnsid 2
My problem: Unless I have connected to a container via network once, these interfaces bounce up and down. In the best case, I catch the interface while it is up and can connect, in the worst case, connection attempts freeze and I have to use the console and reset the network inside the container.
I have two Gentoo containers and a Ubuntu container, and it is doing this in all of them. I get notifications on the host (which is a desktop machine) and they are so distracting that, if I don’t actually need the container right then, I will shut it down just to shut it up.
It seems like it is not attaching to the bridge. How can I fix this?