about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-04-22 22:27:03 +0300
committerK900 <me@0upti.me>2022-04-22 22:27:03 +0300
commitadf3fe6811c62431b6cdbbac5cc7d6497927aa56 (patch)
treeea0ffcc64ce66395fda770da9c2e091cfb086732 /nixos
parented3cc9672ad507ca4d00e15b35f3d24edd1dff6c (diff)
downloadnixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar.gz
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar.bz2
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar.lz
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar.xz
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.tar.zst
nixlib-adf3fe6811c62431b6cdbbac5cc7d6497927aa56.zip
nixos/tests/installer: disable vlans for initial VM
This saves 10-15 minutes of waiting for things to time out later.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/installer.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 364c69fcf09a..ea2b2d04ed19 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -299,6 +299,13 @@ let
           virtualisation.qemu.diskInterface =
             if grubVersion == 1 then "scsi" else "virtio";
 
+          # We don't want to have any networking in the guest whatsoever.
+          # Also, if any vlans are enabled, the guest will reboot
+          # (with a different configuration for legacy reasons),
+          # and spend 5 minutes waiting for the vlan interface to show up
+          # (which will never happen).
+          virtualisation.vlans = [];
+
           boot.loader.systemd-boot.enable = mkIf (bootLoader == "systemd-boot") true;
 
           hardware.enableAllFirmware = mkForce false;