From 007f4f05dfc4a332f9964c97c089490b240a83e3 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 4 Oct 2023 11:17:03 +0200 Subject: [PATCH] network: Disable RoutesToDNS Flatcar VMs on Azure with multiple nics fail to provision correctly because of multiple routes to wireserver (168.63.129.16) with the same metric, and wireserver only responds to 'ready' signals on the primary nic. The primary nic gets an explicit route to wireserver through dhcp. It turns out systemd is adding the extra routes because wireserver is also the dhcp and dns server, and the default RoutesToDNS=true setting is the reason. This behavior is non-standard and I don't think it's expected on any platform. Disable this behavior by default. Signed-off-by: Jeremi Piotrowski --- dracut/03flatcar-network/zz-default.network | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dracut/03flatcar-network/zz-default.network b/dracut/03flatcar-network/zz-default.network index 555343c..f51045b 100644 --- a/dracut/03flatcar-network/zz-default.network +++ b/dracut/03flatcar-network/zz-default.network @@ -9,3 +9,6 @@ IPv6AcceptRA=true [DHCP] UseMTU=true UseDomains=true + +[DHCPv4] +RoutesToDNS=false