4f69d96e4e9a41e5376b298d9950eb9bc1fcbfcb
QEMU's `-netdev bridge,br=pxe0` delegates the actual `brctl addif` to a setuid qemu-bridge-helper binary, paired with an /etc/qemu/bridge.conf ACL file. The current nixpkgs does not ship a NixOS module for installing that wrapper (nixpkgs has qemu-guest-agent.nix — a different thing, the in-VM guest agent) so the default is to fail with: failed to parse default acl file /etc/qemu/bridge.conf -netdev bridge,…: bridge helper failed The standard workaround is the same pattern NixOS itself uses in qemu-vm.nix for test VMs: create a tap device before QEMU starts, attach it to the bridge ourselves (we already have CAP_NET_ADMIN as root in the systemd unit), and pass `-netdev tap,ifname=…` to QEMU. No helper needed. - modules/pxe-infra/vm.nix: switch to `-netdev tap, ifname=pxe0-tap`; pre-start script idempotently tears down any leftover tap, creates a new one, and attaches it to the configured bridge. `postStop` removes the tap on every stop (including crashes / restart cycles). - modules/pxe-infra/bridge.nix: drop the no-op `services.qemuGuest.enable = true;` (option doesn't exist in this nixpkgs).
I'm a super newbie who just posted my stuff here. Now maybe about intermediate
Languages
Nix
82.8%
Python
9%
Shell
7.3%
Dockerfile
0.5%
Perl
0.4%