diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-04-27 10:15:34 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-27 15:08:17 +0200 |
| commit | ea2acfe98a3f3c00d15caa3e899ccbd126b97eb6 (patch) | |
| tree | defdebac881f95bf7e728cbf91dc122acb8e2222 | |
| parent | 05b60752a67af294c35d8f4218487c9a44b5fdee (diff) | |
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'.
| -rw-r--r-- | doc/guix.texi | 9 | ||||
| -rw-r--r-- | gnu/system/examples/vm-image.tmpl | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index de30743d58e..ddd20af256d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -24703,11 +24703,10 @@ network connectivity, for example @command{guix download}. | |||
| 24703 | 24703 | ||
| 24704 | @cindex SSH | 24704 | @cindex SSH |
| 24705 | @cindex SSH server | 24705 | @cindex SSH server |
| 24706 | To enable SSH inside a VM you need to add a SSH server like @code{(dropbear-service)} | 24706 | To enable SSH inside a VM you need to add an SSH server like |
| 24707 | or @code{(lsh-service)} to your VM. The @code{(lsh-service}) doesn't currently | 24707 | @code{openssh-service-type} to your VM (@pxref{Networking Services, |
| 24708 | boot unsupervised. It requires you to type some characters to initialize the | 24708 | @code{openssh-service-type}}). In addition you need to forward the SSH port, |
| 24709 | randomness generator. In addition you need to forward the SSH port, 22 by | 24709 | 22 by default, to the host. You can do this with |
| 24710 | default, to the host. You can do this with | ||
| 24711 | 24710 | ||
| 24712 | @example | 24711 | @example |
| 24713 | `guix system vm config.scm` -net user,hostfwd=tcp::10022-:22 | 24712 | `guix system vm config.scm` -net user,hostfwd=tcp::10022-:22 |
diff --git a/gnu/system/examples/vm-image.tmpl b/gnu/system/examples/vm-image.tmpl index b6f9daaf61c..9bc08fa635e 100644 --- a/gnu/system/examples/vm-image.tmpl +++ b/gnu/system/examples/vm-image.tmpl | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; | 5 | ;; |
| 6 | 6 | ||
| 7 | (use-modules (gnu) (srfi srfi-1)) | 7 | (use-modules (gnu) (srfi srfi-1)) |
| 8 | (use-service-modules desktop networking xorg) | 8 | (use-service-modules desktop networking ssh xorg) |
| 9 | (use-package-modules bootloaders nvi wget xorg) | 9 | (use-package-modules bootloaders nvi wget xorg) |
| 10 | 10 | ||
| 11 | (define vm-image-motd (plain-file "motd" " | 11 | (define vm-image-motd (plain-file "motd" " |
| @@ -73,6 +73,9 @@ accounts.\x1b[0m | |||
| 73 | (xorg-configuration | 73 | (xorg-configuration |
| 74 | (keyboard-layout keyboard-layout))))) | 74 | (keyboard-layout keyboard-layout))))) |
| 75 | 75 | ||
| 76 | ;; Uncomment the line below to add an SSH server. | ||
| 77 | ;;(service openssh-service-type) | ||
| 78 | |||
| 76 | ;; Use the DHCP client service rather than NetworkManager. | 79 | ;; Use the DHCP client service rather than NetworkManager. |
| 77 | (service dhcp-client-service-type)) | 80 | (service dhcp-client-service-type)) |
| 78 | 81 | ||
