According to the LXD documentation, OVN setups require at least two network interfaces. However, I came across this GitHub comment suggesting it might be possible with a single interface using bridge/OVS configurations.
As someone new to networking concepts, I’m struggling to understand how to implement this workaround. Could someone help explain:
- The exact network configuration steps needed (bridge setup, OVS rules, etc.)
- Any potential caveats or limitations of this single-NIC setup
- How to integrate this with LXD specifically
I’d greatly appreciate any guidance or examples of working configurations. Thank you in advance for helping a networking novice!
Hi @qiuwei1987, you have posted this under the MicroCloud section so I am guessing you are trying to setup a MicroCloud using only a single interface.
If you are using a bridge you can use it to configure all of the networks of a MicroCloud. But we don’t recommend this for production setups. The bridge needs to have an address configured. You can achieve this by configuring the address on the bridge and assigning the interface to it. See https://netplan.readthedocs.io/en/stable/examples/#how-to-configure-network-bridges.
During the MicroCloud questionnaire you can then select the address configured on the bridge for MicroCloud’s internal network, Ceph public/internal network and OVN underlay network. Also the bridge can be used to configure the OVN uplink.
Make sure to use MicroCloud 2/edge
channel to be able to select the bridge for all the different networks (there was a fix Interfaces: Allow selection of bridges when using network segregation by roosterfish · Pull Request #515 · canonical/microcloud · GitHub).