Using bridges under NixOS
In order to use macvtap bridges in KVM, LXC, Xen or another hypervisor on NixOS, you have to configure your DHCP server to not assign an IP address to that interface.
By default, the DHCP server on NixOS configures every interface with an IP.
Configuration
If you are running dhcpcd
, then you have to define a denyInterfaces
parameter:
configuration.nix
{
networking.dhcpcd.denyInterfaces = [ "macvtap0@*" ];
}
Issue #67966 is relevant for DHCP and bridging.