Merge pull request #34710 from markus1189/doc-vm-login
docs: Explain how to login into built vm
This commit is contained in:
commit
7fb90db696
|
@ -70,9 +70,21 @@ $ ./result/bin/run-*-vm
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
The VM does not have any data from your host system, so your existing
|
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
|
user accounts and home directories will not be available unless you
|
||||||
forward ports on the host to the guest. For instance, the following
|
have set <literal>mutableUsers = false</literal>. Another way is to
|
||||||
will forward host port 2222 to guest port 22 (SSH):
|
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>
|
<screen>
|
||||||
$ QEMU_NET_OPTS="hostfwd=tcp::2222-:22" ./result/bin/run-*-vm
|
$ QEMU_NET_OPTS="hostfwd=tcp::2222-:22" ./result/bin/run-*-vm
|
||||||
|
|
Loading…
Reference in a new issue