/srv/irclogs.ubuntu.com/2023/06/01/#ubuntu-server.txt

=== chris14_ is now known as chris14
=== shokohsc8 is now known as shokohsc
=== JanC is now known as Guest8709
=== JanC_ is now known as JanC
=== sdeziel_ is now known as sdeziel
kotgctest14:00
kotgcHello, my bridges disappear after a reboot on Ubuntu 22.04?14:00
kotgcAlso, 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/5jVRG14:02
rbasakWhy are you using Network Manager? And what's vtnet0 and why is it on both bridges?14:04
kotgcrbasak, that's the default that came with the Ubuntu 22.04 install.14:05
rbasakUsing the Server installer? Or something else?14:05
kotgcrbasak, vtnet0 is my manual entry, I'll delete it if it's an issue.14:05
kotgcnot sure what I'm doing.14:05
kotgcrbasak, just Ubuntu 22.04 and Virtual Machine Manager 4.0.0.14:06
rbasakSo Ubuntu Desktop?14:06
rbasakThis is the Server channel.14:06
rbasakServer defaults to networkd, and it's usual to use Network Manager.14:07
kotgcrbasak, yes Ubuntu desktop.  Ubuntu said ubuntu-server might be able to help.14:07
rbasak*un*usual (on Server)14:07
rbasakIt'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
kotgchere'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:08
kotgcrbasak, I'm trying to build a vm router https://i.imgur.com/5bURvD5.png14:11
ahasenackhappy Mailman day14:11
rbasakI'm sure that's possible but I don't know how to integrate Ubuntu Desktop's Network Manager with netplan, sorry.14:13
rbasakI do think it's wrong to include vtnet0 in two bridges14:14
kotgcrbasak, maybe I'll change the renderer to netpland.14:15
kotgc*networkd14:15
rbasakAlso 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:15
oerheksfor a start; dhcp4: no >>> dhcp4: false14:16
kotgcrbasak, yes, I tried via VMM, but the GUI doesn't create or save the bridges, so I ran the iplink commands.14:18
rbasakkotgc: by VMM do you mean virt-manager or something else?14:21
rbasakYou do have to create the bridges, yes. Just not add the NICs to them that don't exist yet.14:21
rbasakSo 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:22
rbasakIf 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
kotgcrbasak, yes, virt-manager.14:23
rbasakOK 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
kotgcrbasak, yes, I do what you say, create the bridges, then create the vm, add the bridges and the guest does its thing.14:24
rbasakHowever, I don't have any experience with netplan in combination with Network Manager, sorry.14:25
kotgcthanks, I'll work on it later.14:25
=== shokohsc9 is now known as shokohsc
=== fmirkes_ is now known as fmirkes
=== orndorffgrant4 is now known as orndorffgrant
=== lexandrop_ is now known as lexandrop

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!