/srv/irclogs.ubuntu.com/2021/08/12/#ubuntu-server.txt

brandonkalsystemd-networkd-wait-online.service is basically slowing startup by 2min. It's waiting for interfaces which never go up. Is there a way to tell it to ignore all but one interface or otherwise fix it?00:21
rfmbrandonkal, mark the interfaces as "optional: true" in netplan...00:27
brandonkalI've done that but it seems the system generates random interfaces. There should only be two but I've got a whole lot...00:28
brandonkalrfm Could snap packages be generating cruft here?00:29
rfmbrandonkal, never seen snap generate net interfaces, container stuff like docker, yes..00:31
rfmbrandonkal, are there systemd network units for these strange interfaces?   if so need to find out who's generating them...00:31
brandonkalI have docker, but typically when I've done that it only added a docker000:32
brandonkalI have br-a8c7c,docker0,eno0,enp7s0f1,ens5f0,ens5f1,lo,veth4bc9,virbr000:32
brandonkalAnd also an IP on br-a8c7ce24a6eb00:33
brandonkalI did have an eth4 and eth5 earlier as references in my netplan file.00:33
brandonkalHow does one check for that. Thanks rfm00:34
rfmbrandonkal, I'd start with "sudo lshw -C network" to see what those other interfaces are, and put entries in netplan matching on MAC address (not the interface name, which can change around on PCIe) to mark them optional00:38
brandonkalThanks. That lists the ones that went missing such as eth3,eth4. Now I recall I have a 4-port pcie eth card that was previously passed through to a VM. Is there a way to disable those ports when not being passed through? rfm00:47
rfmbrandonkal, I guess you could blacklist the driver. not anything I've ever done. also could disable  networking on those interfaces in /etc/sysctl.conf, but I can't tell you the syntax offhand 00:53
brandonkalOk thanks, I'll look into those options. It's interesting because based on this: https://unix.stackexchange.com/questions/134483/why-is-my-ethernet-interface-called-enp0s10-instead-of-eth0 I shouldn't be seeing ehtX on some of those ports.00:56
rfmbrandonkal, this is all controlled in the udev rules, perhaps you (or somebody else) tweaked them sometime?00:59
rfmbrandonkal, that's why I use MAC matching, that doesn't change around...01:00
brandonkalInstalled NetworkManager for Cockpit and uninstalled but I suspect it left some cruft behind...01:02
brandonkalI will be switching to mac01:02
JanCMAC addresses can change too...08:41
tuxickusually not13:21
=== genii-core is now known as genii
daevskiTrying to setup wifi on ubuntu 20.04 server using netplan and getting some output I'm not understanding... https://pastebin.com/g0fWUBYy17:33
=== Walex_away is now known as Walex
tomreyndaevski: while this configuration seems to be in line with https://netplan.io/examples/#connecting-to-a-wpa-personal-wireless-network i also seem to remember that systemd-networkd does not actually work well with setting up a wireless connection, and you should be using network-manager for it. this info may be outdated or just wrong, i suggest studying bug reports.19:48
daevskiCan I use NetworkManager on the server edition without a gui?19:49
tomreynsure19:49
tomreynthere is nmcli and nmtui19:50
daevskiOkay, I will try those. Thanks for the tip!19:50
tomreynnote also that netplan.org points to #netplan for support19:50
tomreynhttps://netplan.io/examples/#using-network-manager-as-a-renderer19:51
tomreyn"You can specify which network backend should be used to configure particular devices by using the renderer key."19:52
tomreynso this seems to suggest that you can use networkd for ethernet and networkmanager for wireless19:54
tomreynnetworkmanager is a bit resource hungry and slow sadly, which is why you may want to only use it where you have to.19:55
=== daevski3 is now known as daevski
daevskitomreyn great info, thanks again :)20:09
tomreynyou're welcome 20:09
=== Woet_ is now known as Woet
=== genii is now known as genii-core

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