From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 48053@debbugs.gnu.org
Subject: bug#48053: Starting the hurd-vm service doesn't always succeed
Date: Tue, 27 Apr 2021 01:27:03 -0400 [thread overview]
Message-ID: <87bla0jo0o.fsf@gmail.com> (raw)
In-Reply-To: <87fszcjq72.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 27 Apr 2021 00:40:01 -0400")
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hello!
>
> I'm not sure if that's only on my setup, but starting or restart the
> hurd-vm service seems a bit dodgy here:
>
> $ sudo herd restart hurd-vm
> Service hurd-vm is not running.
> secret service: sending secrets to 11004
> secret service: retrying connection [59 attempts left]
> secret service: connected; waiting for handshake...
> secret service: invalid handshake #<eof>
> Service hurd-vm could not be started.
>
> [...] many tries fail as above
>
> Finally, it worked:
>
> $ sudo herd start hurd-vm
> secret service: sending secrets to 11004
> secret service: retrying connection [59 attempts left]
> secret service: connected; waiting for handshake...
> secret service: sending files from "/etc/childhurd"...
> secret service: done sending files to port 11004
> Service hurd-vm has been started.
>
> Have others experience this?
>
> Maxim
Here's the relevant config in case it matters:
(service hurd-vm-service-type
(hurd-vm-configuration
(os (operating-system
(inherit %hurd-vm-operating-system)
(services
(modify-services (operating-system-user-services
%hurd-vm-operating-system)
(openssh-service-type
config => (openssh-configuration
(inherit config)
(authorized-keys
`(("root" ,(local-file "maxim_nopwd.pub"))))))))))
(memory-size (* 4 1024)) ;4GiB
(disk-size (* 20000 (expt 2 20))) ;20GiB
;; Extend the default net-options with a port forward
;; for the incoming 10.0.1.1 Wireguard IP as well.
(net-options '("--device" "rtl8139,netdev=net0"
"--netdev"
(string-append
"user,id=net0,"
"hostfwd=tcp:127.0.0.1:11004-:1004,"
"hostfwd=tcp::10022-:2222,"
"hostfwd=tcp:127.0.0.1:15900-:5900")))))
The net-options override is to make QEMU listen for 10022 on all
interfaces, not just the loopback one. Otherwise I've added my ssh key
and set the memory and disk-size.
prev parent reply other threads:[~2021-04-27 5:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-27 4:40 bug#48053: Starting the hurd-vm service doesn't always succeed Maxim Cournoyer
2021-04-27 5:27 ` Maxim Cournoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bla0jo0o.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=48053@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).