guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BLOG] Childhurds and GNU/Hurd substitutes


From: zimoun
Subject: Re: [BLOG] Childhurds and GNU/Hurd substitutes
Date: Wed, 14 Oct 2020 22:31:05 +0200

Dear Janneke,

Thank you for the help!  I have fun. :-)


On Wed, 14 Oct 2020 at 16:15, Jan Nieuwenhuizen <janneke@gnu.org> wrote:

> > Using this command line (from gnu/system/examples/bare-hurd.tmpl):
> >
> >     guix environment --ad-hoc qemu \
> >          -- qemu-system-i386 -enable-kvm -m 512  \
> >           -device rtl8139,netdev=net0 -netdev 
> > user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
> >          -snapshot -hda \
> >          $(guix system disk-image -t hurd-raw bare-hurd.tmpl)
> >
> > it is telling me that the ’ssh’ service is not started.  Therefore,
> >
> >     ssh -p 10022 root@localhost
> >     ssh: connect to host localhost port 10022: Connection refused
> >
> > What do I miss?
>
> I have no idea.  This exact command works for me.  Maybe you had bad
> luck/try again?  Does `herd start ssh' work after you login as root?
>
> It could be that your "bad luck" comes from qemu networking -- maybe you
> could try running your foreign distro's qemu instead of guix's?

I do not know if it was bad luck or if "herd start ssh" does the trick
but here we go! \o/

--8<---------------cut here---------------start------------->8---
$ ssh -p 10022 root@localhost
The authenticity of host '[localhost]:10022 ([127.0.0.1]:10022)' can't
be established.
ECDSA key fingerprint is SHA256:iETZ8thOyFqk+35g02tRW9FRzLqilgYYlxWr/9xn/kI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:10022' (ECDSA) to the list of
known hosts.


  This is the GNU Hurd.  Welcome.
--8<---------------cut here---------------end--------------->8---

Thank you.


> > Last, I am confused:
> >
> >    debian$ guix build hello --target=i586-pc-gnu hello
> >    /gnu/store/09sz4qsqp3zgnbaxhzppspaxihwmfzll-hello-2.10

[..]

> It's tricky; --target is != --system: --target is a cross-build.  IOW,
> --system => (%current-system), --target => (%current-target-system).
>
> So,
>
>     guix build hello --system=i586-gnu hello
>
> should give the identical hash.

What is the target?  i586-pc-gnu or i586-gnu?  The blog post mentions
'i586-pc-gnu' at the beginning and then 'i586-gnu'.  I suppose it is
'i586-gnu' since using this target produces the expected hash.
What do I miss?


All the best,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]