From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CJn8FvkHh18hSAAA0tVLHw (envelope-from ) for ; Wed, 14 Oct 2020 14:15:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0LDaEvkHh19hcgAAB5/wlQ (envelope-from ) for ; Wed, 14 Oct 2020 14:15:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0FAC99404D7 for ; Wed, 14 Oct 2020 14:15:21 +0000 (UTC) Received: from localhost ([::1]:33782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kShYl-000568-U3 for larch@yhetil.org; Wed, 14 Oct 2020 10:15:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kShYc-00055w-JS for guix-devel@gnu.org; Wed, 14 Oct 2020 10:15:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58539) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kShYc-0003QG-0e; Wed, 14 Oct 2020 10:15:10 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=35900 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kShYb-0000iZ-IG; Wed, 14 Oct 2020 10:15:09 -0400 From: Jan Nieuwenhuizen To: zimoun Subject: Re: [BLOG] Childhurds and GNU/Hurd substitutes In-Reply-To: <86eem1jg0i.fsf@gmail.com> (zimoun's message of "Wed, 14 Oct 2020 11:47:25 +0200") Organization: AvatarAcademy.nl References: <87h7r496z1.fsf@gnu.org> <86eem1jg0i.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) X-Url: http://AvatarAcademy.nl Date: Wed, 14 Oct 2020 16:15:07 +0200 Message-ID: <87lfg8evx0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: sxQkKVLQFGgZ zimoun writes: Dear Simon, > On Thu, 08 Oct 2020 at 15:34, Jan Nieuwenhuizen wrote: > >> We have just published a blog post on building your own Guix System with >> GNU/Hurd and running it in a virtual machine; the road we traveled since >> beginning of April and what is possible right now. Read it here: >> >> https://guix.gnu.org/en/blog/2020/childhurds-and-substitutes/ > > Amazing! Thanks! > On foreign distro, I have missed how to setup the =E2=80=9Cchildhurd=E2= =80=9C. The > =E2=80=9Cguix system=E2=80=9D is still a bit mysterious to me=E2=80=A6 Yeah, guix system in essence "just" builds a disk-image (aka vm-image). Then, qemu can start that image. > 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=3Dnet0 -netdev user,id=3Dnet0,hostfwd=3D= 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 =E2=80=99ssh=E2=80=99 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? > Then, > > login> login root RET RET > root@guixygnu ~# $(guix build hello)/bin/hello > > downloads, builds, and displays as expected =E2=80=9CHello, world!=E2=80= =9D. \o/ \o/ > Last, I am confused: > > debian$ guix build hello --target=3D586-pc-gnu hello > /gnu/store/09sz4qsqp3zgnbaxhzppspaxihwmfzll-hello-2.10 > > root@guixygnu ~# guix build hello > /gnu/store/-hello-2.10 > > What do I miss? It's tricky; --target is !=3D --system: --target is a cross-build. IOW, --system =3D> (%current-system), --target =3D> (%current-target-system). So, guix build hello --system=3Di586-gnu hello should give the identical hash. > (Sorry for these naive questions.) You're welcome. Thanks for looking at this! > Thank you! All is really neat! Hehe, that's what we are doing it for; Have fun! Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com