summary refs log tree commit diff
path: root/nixos/modules/testing/test-instrumentation.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-09-26 22:17:14 +0300
committerDomen Kožar <domen@enlambda.com>2018-09-28 10:53:08 +0100
commitd6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9 (patch)
tree3b124458e5fa3f4dc1f55516959a3cbb5cdfb8b5 /nixos/modules/testing/test-instrumentation.nix
parentf0e4b31eb2035dfbbb6cb419584141f709579969 (diff)
downloadnixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar.gz
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar.bz2
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar.lz
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar.xz
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.tar.zst
nixpkgs-d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.zip
Add ssh backdoor to VM tests infrastructure.
Thanks to @dezgeg for prototype implementation, I've
cleaned it up and added documentation.
Diffstat (limited to 'nixos/modules/testing/test-instrumentation.nix')
-rw-r--r--nixos/modules/testing/test-instrumentation.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix
index ed4cfa7805e..aa0db4afd97 100644
--- a/nixos/modules/testing/test-instrumentation.nix
+++ b/nixos/modules/testing/test-instrumentation.nix
@@ -55,7 +55,8 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
     systemd.services."serial-getty@hvc0".enable = false;
 
     # Only use a serial console, no TTY.
-    virtualisation.qemu.consoles = [ qemuSerialDevice ];
+    # hvc1: socket backdoor, see "Debugging NixOS tests" section in NixOS manual
+    virtualisation.qemu.consoles = [ "hvc1" qemuSerialDevice ];
 
     boot.initrd.preDeviceCommands =
       ''