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 EBeRC+Wa4l7IQQAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 20:58: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 IEFqB+Wa4l5pXwAAB5/wlQ (envelope-from ) for ; Thu, 11 Jun 2020 20:58: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 BB2D594053B for ; Thu, 11 Jun 2020 20:58:12 +0000 (UTC) Received: from localhost ([::1]:40284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjUH5-0002TF-Lu for larch@yhetil.org; Thu, 11 Jun 2020 16:58:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjTNm-0006vm-OC for guix-patches@gnu.org; Thu, 11 Jun 2020 16:01:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjTNm-0004Kq-Bp for guix-patches@gnu.org; Thu, 11 Jun 2020 16:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjTNm-0006Uu-B5 for guix-patches@gnu.org; Thu, 11 Jun 2020 16:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41785] [PATCH] DRAFT services: Add 'hurd-in-vm service-type'. Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41785 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Mathieu Othacehe , 41785@debbugs.gnu.org Received: via spool by 41785-submit@debbugs.gnu.org id=B41785.159190561424881 (code B ref 41785); Thu, 11 Jun 2020 20:01:02 +0000 Received: (at 41785) by debbugs.gnu.org; 11 Jun 2020 20:00:14 +0000 Received: from localhost ([127.0.0.1]:38163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjTMz-0006TE-LG for submit@debbugs.gnu.org; Thu, 11 Jun 2020 16:00:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjTMx-0006S3-TN for 41785@debbugs.gnu.org; Thu, 11 Jun 2020 16:00:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40290) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjTMr-0003zC-Oo; Thu, 11 Jun 2020 16:00:05 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=58896 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 1jjTMn-0004yq-MS; Thu, 11 Jun 2020 16:00:03 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl References: <20200610085441.890-1-janneke@gnu.org> <87r1unm9xy.fsf@gnu.org> <87tuzh9yn3.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Thu, 11 Jun 2020 21:59:59 +0200 In-Reply-To: <87tuzh9yn3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 11 Jun 2020 21:43:28 +0200") Message-ID: <87ftb15q68.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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: Uhy+dZCWi5PW Ludovic Court=C3=A8s writes: Hello, > Mathieu Othacehe skribis: > >> Just to clarify things here, we now have the "disk-image" command that >> produces a Hurd bootable disk-image. The "vm-image" command is almost >> working, and should produce a very similar result. (yes) >> The "vm" command that produces a vm-image and spawns a VM isn't working >> yet with the Hurd. This command is for now passing directly "kernel" and >> "initrd" arguments to QEMU, so a few adaptations will be needed. >> >> Now the goad of hurd-in-vm-service-type is to provide a service that >> does almost the same thing as the "vm" command, but as a service, right? > > That=E2=80=99s my understanding. Indeed, mine too. >> So, I don't get why would we need to run a Hurd VM inside a VM. I've >> been struggling a lot with running nested layers of virtualization (for >> system generation before the recent patches), and the result is often >> too slow to be really usable. > > I guess it=E2=80=99s useful if you want to test a GNU/Linux system that u= ses the > VM service, as in: > > guix system vm my-gnu+linux.scm > > where =E2=80=98my-gnu+linux.scm=E2=80=99 contains: > > (services (cons (service hurd-vm-service-type) > =E2=80=A6)) > > I suppose it should just work, though probably without =E2=80=98-enable-k= vm=E2=80=99; > janneke? Well -- yes. That was my thinking. We would not normally use such a VM-in-VM thing; when you want a Hurd VM using the "vm" command would be great (or as now, create a disk image and start QEMU). However, for writing and debugging (testing?) this Hurd-in-VM service, I thought adding it to a linux bare-bones.tmpl and using guix vm on that was a nice and "trivial" way to test it. That proved so troublesome that I added it to my system. As I understand it the intended use for this service is to have a real simple way to add a Hurd VM to some build machines, so that we can easily create a herd of Hurd-VMs to aid the Hurd work. Ludo? Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com