How do you create a network bridge for virtual machines on a current Ubuntu, given the desktop tools will not do it?
I want a bridge so my virtual machines appear on the LAN with their own addresses rather than behind NAT. The graphical network settings offer no way to create one.
Every guide I find is several years old and describes files or tools that either do not exist here or are clearly not the current way. Some edit one configuration system and some another, and I cannot tell which one is actually in charge on this machine.
What is the correct approach now, and how do I avoid locking myself out while testing it?
@netplan_nazli · 3d ago
The renderer can be set per device, which is the detail that unlocks this and is rarely mentioned:
Two things worth knowing about that parameters block, because a bridge that works and then behaves strangely usually needs them.
forward-delay is a pause before the bridge starts passing traffic. With the default, a machine can come up, request an address, and get no answer because the bridge is still waiting. Setting it to zero fixes the boot-time race that makes a bridge look intermittent.
stp is the loop-prevention protocol. On a simple host bridge with one physical port there is no loop to prevent, and leaving it on adds delay.
Reply
Report