[14:00] <kotgc> test
[14:00] <kotgc> Hello, my bridges disappear after a reboot on Ubuntu 22.04?
[14:02] <kotgc> Also, my host 192.168.1.120 won't ping the vm router on 192.168.1.1.  I'm missing something on the /etc/netplan/01-network-manager-all.yaml code? https://dpaste.org/5jVRG
[14:04] <rbasak> Why are you using Network Manager? And what's vtnet0 and why is it on both bridges?
[14:05] <kotgc> rbasak, that's the default that came with the Ubuntu 22.04 install.
[14:05] <rbasak> Using the Server installer? Or something else?
[14:05] <kotgc> rbasak, vtnet0 is my manual entry, I'll delete it if it's an issue.
[14:05] <kotgc> not sure what I'm doing.
[14:06] <kotgc> rbasak, just Ubuntu 22.04 and Virtual Machine Manager 4.0.0.
[14:06] <rbasak> So Ubuntu Desktop?
[14:06] <rbasak> This is the Server channel.
[14:07] <rbasak> Server defaults to networkd, and it's usual to use Network Manager.
[14:07] <kotgc> rbasak, yes Ubuntu desktop.  Ubuntu said ubuntu-server might be able to help.
[14:07] <rbasak> *un*usual (on Server)
[14:08] <rbasak> It's also strange to override regular Network Manager on Desktop FWIW. What are you actually trying to achieve? See https://xyproblem.info/ etc.
[14:08] <kotgc> here's how I create the bridges: sudo ip link add name br0 type bridge > bring the bridge interface up > add interface to bridge > confirm network bridge interface is configured > configure /etc/netplan/01-network-manager-all.yaml.
[14:11] <kotgc> rbasak, I'm trying to build a vm router https://i.imgur.com/5bURvD5.png
[14:11] <ahasenack> happy Mailman day
[14:13] <rbasak> I'm sure that's possible but I don't know how to integrate Ubuntu Desktop's Network Manager with netplan, sorry.
[14:14] <rbasak> I do think it's wrong to include vtnet0 in two bridges
[14:15] <kotgc> rbasak, maybe I'll change the renderer to netpland.
[14:15] <kotgc> *networkd
[14:15] <rbasak> Also you need to create those interfaces first. Usually they would be created and added to the bridge by the creation of the VM, not configured beforehand when it doesn't exist yet.
[14:16] <oerheks> for a start; dhcp4: no >>> dhcp4: false
[14:18] <kotgc> rbasak, yes, I tried via VMM, but the GUI doesn't create or save the bridges, so I ran the iplink commands.
[14:21] <rbasak> kotgc: by VMM do you mean virt-manager or something else?
[14:21] <rbasak> You do have to create the bridges, yes. Just not add the NICs to them that don't exist yet.
[14:22] <rbasak> So you might eg. have a bridge with only one physical NIC attached to it. When the VMs are created, they'll add more to the bridge and actually make it useful.
[14:23] <rbasak> If you're using Ubuntu Desktop then you should probably stick to Network Manager. Else the GUI becomes far less useful (networkd doesn't have a GUI, etc).
[14:23] <kotgc> rbasak, yes, virt-manager.
[14:24] <rbasak> OK so I think you can arrange for netplan to create the bridges using Network Manager and then they'll persist. But do not add the VMs NICs to that - just use virt-manager to configure the NICs to connect to the bridge.
[14:24] <kotgc> rbasak, yes, I do what you say, create the bridges, then create the vm, add the bridges and the guest does its thing.
[14:25] <rbasak> However, I don't have any experience with netplan in combination with Network Manager, sorry.
[14:25] <kotgc> thanks, I'll work on it later.