From dc4f68bf85eda01f79353c993304121ef6b12a48 Mon Sep 17 00:00:00 2001 From: devhell Date: Tue, 24 Mar 2020 17:48:15 +0000 Subject: machines/hildr: Add exceptions for certain ifaces This has come about because qemu-kvm VMs lost the ability to gain a DHCP issued IP address after a reboot. As it turns out networkd seems to have played a part in messing with the virbr0 interface. Thanks to @aszlig we figured out what was going on, so now we're going to make networkd ignore all interfaces that are not physical. --- machines/devhell/hildr.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machines/devhell/hildr.nix b/machines/devhell/hildr.nix index d667b84b..d9e034e2 100644 --- a/machines/devhell/hildr.nix +++ b/machines/devhell/hildr.nix @@ -56,6 +56,10 @@ # XXX Ensure that these are added in addition to the DHCP provided DNS servers systemd.network.networks."99-main".dns = [ "1.1.1.1" "1.0.0.1" ]; + systemd.network.networks."99-libvirt" = { + matchConfig.Name = "virbr* vnet* docker*"; + linkConfig.Unmanaged = true; + }; networking = { hostName = "hildr"; -- cgit 1.4.1