summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Hauck <markus1189@gmail.com>2018-02-07 20:01:13 +0100
committerMarkus Hauck <markus1189@gmail.com>2018-02-07 21:34:50 +0100
commit0525e823929dd9116aaba9f194ef629c83f80d81 (patch)
tree648e3bfcd6f0d2b9f760e134a764c072d9554a03
parent93aa83deb4923a2362814d952495aeab3ec49288 (diff)
downloadnixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar.gz
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar.bz2
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar.lz
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar.xz
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.tar.zst
nixpkgs-0525e823929dd9116aaba9f194ef629c83f80d81.zip
docs: Explain how to login into built vm
-rw-r--r--nixos/doc/manual/installation/changing-config.xml18
1 files changed, 15 insertions, 3 deletions
diff --git a/nixos/doc/manual/installation/changing-config.xml b/nixos/doc/manual/installation/changing-config.xml
index 75df307a1b7..4db9020b960 100644
--- a/nixos/doc/manual/installation/changing-config.xml
+++ b/nixos/doc/manual/installation/changing-config.xml
@@ -70,9 +70,21 @@ $ ./result/bin/run-*-vm
 </screen>
 
 The VM does not have any data from your host system, so your existing
-user accounts and home directories will not be available.  You can
-forward ports on the host to the guest.  For instance, the following
-will forward host port 2222 to guest port 22 (SSH):
+user accounts and home directories will not be available unless you
+have set <literal>mutableUsers = false</literal>.  Another way is to
+temporarily add the following to your configuration:
+
+<screen>
+users.extraUsers.your-user.initialPassword = "test"  
+</screen>
+
+<emphasis>Important:</emphasis> delete the $hostname.qcow2 file if you
+have started the virtual machine at least once without the right
+users, otherwise the changes will not get picked up.
+
+You can forward ports on the host to the guest.  For
+instance, the following will forward host port 2222 to guest port 22
+(SSH):
 
 <screen>
 $ QEMU_NET_OPTS="hostfwd=tcp::2222-:22" ./result/bin/run-*-vm