unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#48053: Starting the hurd-vm service doesn't always succeed
@ 2021-04-27  4:40 Maxim Cournoyer
  2021-04-27  5:27 ` Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Cournoyer @ 2021-04-27  4:40 UTC (permalink / raw)
  To: 48053

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#48053: Starting the hurd-vm service doesn't always succeed
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2021-04-27  5:27 UTC (permalink / raw)
  To: 48053

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-27  5:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git