From e7ab051cda36caefee79209be32d3f298ee0e6a4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 19 Apr 2014 10:13:46 +0200 Subject: [PATCH] Disable predictable interface names in tests Apparently systemd is now smart enough to figure out predictable names for QEMU network interfaces. But since our tests expect them to be named eth0/eth1..., this is not desirable at the moment. http://hydra.nixos.org/build/10418789 --- nixos/modules/virtualisation/qemu-vm.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 3152a227418..6605b94439b 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -402,6 +402,8 @@ in # Speed up booting by not waiting for ARP. networking.dhcpcd.extraConfig = "noarp"; + networking.usePredictableInterfaceNames = false; + system.requiredKernelConfig = with config.lib.kernelConfig; [ (isEnabled "VIRTIO_BLK") (isEnabled "VIRTIO_PCI")