If the default scripted networking is used and the main outside-facing port is added as a bridge member, with the bridge owning a manually set IP (and gateway+DNS), then the system will boot without network, or more specifically, boot with network interface DOWN, and the bridge is not created.
This can be reproduced, maybe regardless of the type of the Ethernet adapter, or the vendor of it. I reproduced it with an on-board i219, a Mellanox Connect-X3 PCIe card, and an Intel 82599 x520 PCIe card.
This cannot be reproduced with systemd-networkd. Just scripted networking.
Steps To Reproduce
Steps to reproduce the behavior:
Do a normal installation of NixOS with the configuration nixos-generate-config would give, plus:
The system boots with eno1 (as in my example case) UP and is added as a bridge member of mybridge, with IP address set and online.
Screenshots
Additional context
The important and mysterious part of the issue is, that if I build the system without setting resolv.conf, which leaves networking.resolvconf.enable on given its default value, then this issue will disappear or not reproducible, resulting in a system that everything works except DNS resolving ability being broken.
I wouldn't catch this at all if I remembered to set DNS together with the gateway the first time I tried. I assumed that the existence of the resolvconf service might briefly touch the interface, before the Open vSwitch module "think" there is nothing to add.
Without setting resolv.conf, I can see this briefly during boot.
Also, without resetOnStart = true; this issue is still reproducible.
Notify maintainers
@netixx @adamcstephens @kmcopper
Metadata
system: "x86_64-linux"
host os: Linux 6.6.53, NixOS, 24.11 (Vicuna), 24.11pre-git
While I maintain the package, I know very little about the module and cannot commit to supporting it. If it works with networkd then I’d recommend sticking with networkd.
Describe the bug
If the default scripted networking is used and the main outside-facing port is added as a bridge member, with the bridge owning a manually set IP (and gateway+DNS), then the system will boot without network, or more specifically, boot with network interface
DOWN
, and the bridge is not created.This can be reproduced, maybe regardless of the type of the Ethernet adapter, or the vendor of it. I reproduced it with an on-board i219, a Mellanox Connect-X3 PCIe card, and an Intel 82599 x520 PCIe card.
This cannot be reproduced with systemd-networkd. Just scripted networking.
Steps To Reproduce
Steps to reproduce the behavior:
Do a normal installation of NixOS with the configuration
nixos-generate-config
would give, plus:Expected behavior
The system boots with
eno1
(as in my example case)UP
and is added as a bridge member ofmybridge
, with IP address set and online.Screenshots
Additional context
The important and mysterious part of the issue is, that if I build the system without setting
resolv.conf
, which leavesnetworking.resolvconf.enable
on given its default value, then this issue will disappear or not reproducible, resulting in a system that everything works except DNS resolving ability being broken.I wouldn't catch this at all if I remembered to set DNS together with the gateway the first time I tried. I assumed that the existence of the
resolvconf
service might briefly touch the interface, before the Open vSwitch module "think" there is nothing to add.Without setting
resolv.conf
, I can see this briefly during boot.Also, without
resetOnStart = true;
this issue is still reproducible.Notify maintainers
@netixx @adamcstephens @kmcopper
Metadata
"x86_64-linux"
Linux 6.6.53, NixOS, 24.11 (Vicuna), 24.11pre-git
yes
yes
nix-env (Nix) 2.18.8
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos
Add a :+1: reaction to issues you find important.