summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 10:13:46 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 10:13:46 +0200
commite7ab051cda36caefee79209be32d3f298ee0e6a4 (patch)
tree55c34d3a015d4a5084cf9a0e3f529ee9b9989bf1 /nixos/modules/virtualisation
parent660d38e838855850528ba74d8a38be8a8dedc15c (diff)
downloadnixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar.gz
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar.bz2
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar.lz
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar.xz
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.tar.zst
nixlib-e7ab051cda36caefee79209be32d3f298ee0e6a4.zip
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
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/qemu-vm.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix
index 3152a2274182..6605b94439bc 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")