mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
doc: Update bit about SSH in the VM.
* doc/guix.texi (Running Guix in a VM): Remove mentions of 'lsh-server'; mention 'openssh-service-type' and add a cross-reference. * gnu/system/examples/vm-image.tmpl (services): Add a commented-out line for 'openssh-service-type'.
This commit is contained in:
parent
05b60752a6
commit
ea2acfe98a
2 changed files with 8 additions and 6 deletions
|
@ -24703,11 +24703,10 @@ network connectivity, for example @command{guix download}.
|
||||||
|
|
||||||
@cindex SSH
|
@cindex SSH
|
||||||
@cindex SSH server
|
@cindex SSH server
|
||||||
To enable SSH inside a VM you need to add a SSH server like @code{(dropbear-service)}
|
To enable SSH inside a VM you need to add an SSH server like
|
||||||
or @code{(lsh-service)} to your VM. The @code{(lsh-service}) doesn't currently
|
@code{openssh-service-type} to your VM (@pxref{Networking Services,
|
||||||
boot unsupervised. It requires you to type some characters to initialize the
|
@code{openssh-service-type}}). In addition you need to forward the SSH port,
|
||||||
randomness generator. In addition you need to forward the SSH port, 22 by
|
22 by default, to the host. You can do this with
|
||||||
default, to the host. You can do this with
|
|
||||||
|
|
||||||
@example
|
@example
|
||||||
`guix system vm config.scm` -net user,hostfwd=tcp::10022-:22
|
`guix system vm config.scm` -net user,hostfwd=tcp::10022-:22
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(use-modules (gnu) (srfi srfi-1))
|
(use-modules (gnu) (srfi srfi-1))
|
||||||
(use-service-modules desktop networking xorg)
|
(use-service-modules desktop networking ssh xorg)
|
||||||
(use-package-modules bootloaders nvi wget xorg)
|
(use-package-modules bootloaders nvi wget xorg)
|
||||||
|
|
||||||
(define vm-image-motd (plain-file "motd" "
|
(define vm-image-motd (plain-file "motd" "
|
||||||
|
@ -73,6 +73,9 @@ accounts.\x1b[0m
|
||||||
(xorg-configuration
|
(xorg-configuration
|
||||||
(keyboard-layout keyboard-layout)))))
|
(keyboard-layout keyboard-layout)))))
|
||||||
|
|
||||||
|
;; Uncomment the line below to add an SSH server.
|
||||||
|
;;(service openssh-service-type)
|
||||||
|
|
||||||
;; Use the DHCP client service rather than NetworkManager.
|
;; Use the DHCP client service rather than NetworkManager.
|
||||||
(service dhcp-client-service-type))
|
(service dhcp-client-service-type))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue