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 c0FJDxUmzV5uQwAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 14:22:13 +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 INbRChUmzV5kcwAAB5/wlQ (envelope-from ) for ; Tue, 26 May 2020 14:22:13 +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 720FD940C73 for ; Tue, 26 May 2020 14:22:12 +0000 (UTC) Received: from localhost ([::1]:47930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdaT5-00016u-EX for larch@yhetil.org; Tue, 26 May 2020 10:22:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdaSx-00015z-5C for bug-guix@gnu.org; Tue, 26 May 2020 10:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdaSw-0008Ro-Rh for bug-guix@gnu.org; Tue, 26 May 2020 10:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdaSw-0001jZ-N9 for bug-guix@gnu.org; Tue, 26 May 2020 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41541: merge wip-hurd-vm Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 26 May 2020 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41541 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41541@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15905028886623 (code B ref -1); Tue, 26 May 2020 14:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2020 14:21:28 +0000 Received: from localhost ([127.0.0.1]:46050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdaSK-0001ii-T9 for submit@debbugs.gnu.org; Tue, 26 May 2020 10:21:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:49916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdaSJ-0001ia-2D for submit@debbugs.gnu.org; Tue, 26 May 2020 10:21:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdaSI-0000xf-T3 for bug-guix@gnu.org; Tue, 26 May 2020 10:21:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44912) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdaSI-0008Nq-K4; Tue, 26 May 2020 10:21:22 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=36580 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jdaSE-0000Uu-EW; Tue, 26 May 2020 10:21:18 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Tue, 26 May 2020 16:21:16 +0200 Message-ID: <87o8qavktf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: IrX5VsdSB2jU Hello! TL; DR: I propose to rebase on master, squash the squash!es, collapse the Reverts, hard reset and =3D> review+finish the rest, merge! So... After about two months in the working, current wip-hurd-vm commit 6a284069188f59553f27760614ffb604b49ec62b squash! linux-boot: Update 'make-hurd-device-nodes'. is finally in a state where it supports building a VM image for the Hurd in three ways. The April-1st hack^H^H^H^method --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix build -f gnu/system/hurd.scm=20 --8<---------------cut here---------------end--------------->8--- =3D> /gnu/store/f1vzgwgxjacn1rd9cpnmpgbv8c5k3rbx-qemu-image still produces a bootable VM, but fails during startup; lacking /boot/activation. Starting the Shepherd from RC was introduced, which broke this. We could spend some effort to resurrect it, but... It was a fun and amazing feat but I think we should remove it before the merge. I don't think we realised how sharp/smart this hack was, navigating cleanly across and through cross-build and qemu-image bugs. The next method is by using --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system vm-image --no-grafts --target=3Di586-pc-gnu gnu/= system/examples/bare-hurd.tmpl --8<---------------cut here---------------end--------------->8--- =3D> /gnu/store/8pr6qnwl4b5kria0j0hxscv66izc8zpi-qemu-image TODO: address the no-grafts (See https://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D41350#71) This produces a functional VM, including openssh server. Closures haven't been registered, though, so adding and starting a guix-daemon may not do what we want yet. And lastly the new, preferred method that we finally got working yesterday --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system disk-image --no-grafts --target=3Di586-pc-gnu gn= u/system/examples/bare-hurd.tmpl --8<---------------cut here---------------end--------------->8--- =3D> /gnu/store/qyq2pj175skkc8kffy5nzfyb47sk3kls-disk-image It should be trivial to add a guix-daemon and do some real work here. Mattieu is looking into cleaning up of --8<---------------cut here---------------start------------->8--- b605a36031 * origin/wip-hurd-vm WIP hurd-directives --8<---------------cut here---------------end--------------->8--- and we also already had a small brain storming on IRC about --8<---------------cut here---------------start------------->8--- dd62341283 * bootloader: grub: Add support for ''. ec1dfae81b * system: Add 'hurd' field to . 43df8616f6 * bootloader: Add `'. --8<---------------cut here---------------end--------------->8--- I guess that before merging, we will want to rewrite this bit, alongside these lines, nicely summarized as --8<---------------cut here---------------start------------->8--- so to sum up, the following fields would be added to : kernel, multiboot-modules janneke: it's not GRUB-specific though, in the sense that GRUB closely matches the underlying abstractions that is: "multiboot kernel + modules", or "linux + initrd", etc. and yes, needs to be extended to reflect these addition --8<---------------cut here---------------end--------------->8--- Greetings, janneke PS: I'm starting the VMs like so guix environment --ad-hoc qemu -- qemu-system-i386 -enable-kvm -m 512\ -device rtl8139,netdev=3Dnet0 -netdev user,id=3Dnet0,hostfwd=3Dtcp:127= .0.0.1:10022-:2222\ -snapshot -hda --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com