From unknown Sun Jun 15 08:53:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?disk-image=E2=80=99?= successfully builds a bad image Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 01 Feb 2019 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 34276@debbugs.gnu.org X-Debbugs-Original-To: Bug Guix Received: via spool by submit@debbugs.gnu.org id=B.154903671013199 (code B ref -1); Fri, 01 Feb 2019 15:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Feb 2019 15:58:30 +0000 Received: from localhost ([127.0.0.1]:55165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpbD4-0003Qo-H5 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpbD1-0003QX-Ls for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:51972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpbCv-0006qZ-NF for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpbCu-0005lA-OC for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpbCt-0006pO-7e for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:20 -0500 Received: from tobias.gr ([2001:470:7405::1]:43716) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpbCs-0006lv-1m for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:19 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 9420957b for ; Fri, 1 Feb 2019 15:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=ta/uen3kb +winSWcV//ucKwK+DejGLRUIjU3C6FNOk4=; b=bFPWea5WiVsHKDSggbAi5Ddgm 2PLUWqQqQ2GDpGacUUsDNIQS/e/O3tqg70baUkMIQ2Ukm4bTfSSEt2mErCF78CUe +mXhIPaGGgsx5b2F/q4RiUU+AoVU5lwmHJmkC0hXxdepDTTB1JRf1Mq/I3vI81Os SF3h80+Pcph56lqox/DHf87M2nPsnX2Ejrp1eks1bd6B8h2dGmG8DKEqhzOmLX03 G8aIPcbY7P9NxsuAiFiQ5oa+XSxl0UHObF58EWbY/iRlNjkaPJyy4OXpaDpWqfGF yDVnjuWnVgnT+13iwOkUFgrEHJW5fM1RSUYKOecISPgmAcIJ30Pcchq69tp/g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 68eec9ce (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 1 Feb 2019 15:58:07 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Fri, 01 Feb 2019 16:57:48 +0100 Message-ID: <877eejfqmb.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hullo! I wanted to install this =E2=80=98Guix=E2=80=99 thing that everyone's so hy= ped up=20 about. I have a small forgotten script in my ~/guix.git that runs: ./pre-inst-env guix system disk-image --fallback=20 --image-size=3D1.5G \ gnu/system/install.scm This was written back when 1.5G was higher than the default. Now it's much lower and too small to store all the Guix. However,=20 the command completes =E2=80=98successfully=E2=80=99: copying 422 store items [#########: In srfi/srfi-1.scm: 466:18 19 (fold # ?) In unknown file: 18 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 17 (loop _ _ #(21 1706421 16749 3 0 0 0 4096 1548869386=20 ?) ?) In srfi/srfi-1.scm: 466:18 16 (fold # ?) In unknown file: 15 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 14 (loop _ _ #(21 1739151 16749 3 0 0 0 4096 1548869386=20 ?) ?) In srfi/srfi-1.scm: 466:18 13 (fold # ?) In unknown file: 12 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 11 (loop _ _ #(21 1772091 16749 13 0 0 0 4096 1548869389=20 ?) ?) In srfi/srfi-1.scm: 466:18 10 (fold # ?) In unknown file: 9 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 8 (loop _ _ #(21 2132258 16749 98 0 0 0 4096 1548869432=20 ?) ?) In srfi/srfi-1.scm: 466:18 7 (fold # ?) In unknown file: 6 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 5 (loop _ _ #(21 4589344 16749 24 0 0 0 4096 1548869676=20 ?) ?) In srfi/srfi-1.scm: 466:18 4 (fold # ?) In unknown file: 3 (_ #=20 # ?) In ice-9/ftw.scm: 482:39 2 (loop _ _ #(21 4589402 16749 3 0 0 0 4096 1548869687=20 ?) ?) In ./guix/build/utils.scm: 312:27 1 (_=20 "/gnu/store/ricf82z3mqqrqim67jz3jlsglfm1g1a8-linux-?" ?) In unknown file: 0 (copy-file=20 "/gnu/store/ricf82z3mqqrqim67jz3jlsglfm1g1a?" ?) ERROR: In procedure copy-file: In procedure copy-file: No space left on device ^MESC[Kcopying 422 store items boot program=20 '/gnu/store/lbvrvrlqab4qpw9f907na445kppmknab-linux-vm-loader'=20 terminated, rebooting [ 1071.512054] Unregister pv shared memory for cpu 0 [ 1071.522414] reboot: Restarting system [ 1071.542285] reboot: machine restart successfully built=20 /gnu/store/lbyq5790j5hfq3spbm76i1yw3sj41l8b-disk-image.drv /gnu/store/dby523cy1l4wrqi8wwmk5ln9qr7g5mh8-disk-image Kind regards, T G-R Sent from my GNU Emacs From unknown Sun Jun 15 08:53:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?disk-image=E2=80=99?= successfully builds a bad image Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 17 Mar 2019 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 34276@debbugs.gnu.org Received: via spool by 34276-submit@debbugs.gnu.org id=B34276.15528245879058 (code B ref 34276); Sun, 17 Mar 2019 12:10:02 +0000 Received: (at 34276) by debbugs.gnu.org; 17 Mar 2019 12:09:47 +0000 Received: from localhost ([127.0.0.1]:46988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5Ubr-0002M1-2I for submit@debbugs.gnu.org; Sun, 17 Mar 2019 08:09:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5Ubo-0002Lp-Qz for 34276@debbugs.gnu.org; Sun, 17 Mar 2019 08:09:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5Ubj-00064T-7O; Sun, 17 Mar 2019 08:09:39 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41608 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h5Ubi-0003s4-Jr; Sun, 17 Mar 2019 08:09:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877eejfqmb.fsf@nckx> Date: Sun, 17 Mar 2019 13:09:35 +0100 In-Reply-To: <877eejfqmb.fsf@nckx> (Tobias Geerinckx-Rice's message of "Fri, 01 Feb 2019 16:57:48 +0100") Message-ID: <878sxdzoqo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Tobias Geerinckx-Rice skribis: > ERROR: In procedure copy-file: > In procedure copy-file: No space left on device > ^MESC[Kcopying 422 store items > boot program > '/gnu/store/lbvrvrlqab4qpw9f907na445kppmknab-linux-vm-loader' > terminated, rebooting > [ 1071.512054] Unregister pv shared memory for cpu 0 > [ 1071.522414] reboot: Restarting system > [ 1071.542285] reboot: machine restart > successfully built > /gnu/store/lbyq5790j5hfq3spbm76i1yw3sj41l8b-disk-image.drv I investigated a bit. I managed to get our code to cause a kernel panic upon failure (patch below). However I fail to turn that guest kernel panic into a different QEMU exit code. I tried to use the =E2=80=9Cpvpanic=E2=80=9D paravirtualized device (the = =E2=80=98pvpanic.ko=E2=80=99 module in the guest, and =E2=80=9C-device pvpanic=E2=80=9D on the QEMU comm= and line), but unfortunately that thing is almost undocumented and I can=E2=80=99t get= it to turn the panic into a non-zero exit code, nor do I know if it=E2=80=99s possible. Thoughts anyone? The other option would be to create a special file in the 9p mount that=E2=80=99s shared with the host upon success, but that seems a bit hack= y. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 983c6d81c8..cb29a656b9 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Court=C3= =A8s +;;; Copyright =C2=A9 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Cour= t=C3=A8s ;;; Copyright =C2=A9 2016 Mark H Weaver ;;; Copyright =C2=A9 2016 Jan Nieuwenhuizen ;;; Copyright =C2=A9 2017 Mathieu Othacehe @@ -279,6 +279,7 @@ FILE-SYSTEMS." "isci") ;for SAS controllers like Intel C= 602 '()) =20 + "pvpanic" ,@virtio-modules)) =20 (define-syntax %base-initrd-modules diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index e561285964..b671c74ab8 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -187,8 +187,9 @@ made available under the /xchg CIFS share." ;; When USER-BUILDER succeeds, reboot (indicating a ;; success), otherwise die, which causes a kernel panic ;; ("Attempted to kill init!"). - #~(when (zero? (system* #$user-builder)) - (reboot)))) + #~(if (zero? (system* #$user-builder)) + (reboot) + (exit 1)))) =20 (let ((initrd (or initrd (base-initrd file-systems --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 01 16:19:59 2019 Received: (at control) by debbugs.gnu.org; 1 May 2019 20:19:59 +0000 Received: from localhost ([127.0.0.1]:45017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLvhs-0006RJ-B4 for submit@debbugs.gnu.org; Wed, 01 May 2019 16:19:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLvhr-0006R8-Gx for control@debbugs.gnu.org; Wed, 01 May 2019 16:19:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLvhl-0006cB-Rh for control@debbugs.gnu.org; Wed, 01 May 2019 16:19:50 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48868 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hLvhl-0003Sv-3I for control@debbugs.gnu.org; Wed, 01 May 2019 16:19:49 -0400 Date: Wed, 01 May 2019 22:19:46 +0200 Message-Id: <87ef5iexlp.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #34276 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 34276 important From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 01 16:37:59 2019 Received: (at control) by debbugs.gnu.org; 1 Sep 2019 20:37:59 +0000 Received: from localhost ([127.0.0.1]:57293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4Wbm-0004gL-Q0 for submit@debbugs.gnu.org; Sun, 01 Sep 2019 16:37:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4Wbl-0004g6-CD for control@debbugs.gnu.org; Sun, 01 Sep 2019 16:37:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i4Wbg-0008FK-8O for control@debbugs.gnu.org; Sun, 01 Sep 2019 16:37:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41000 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i4Wbf-0000wz-Nz for control@debbugs.gnu.org; Sun, 01 Sep 2019 16:37:52 -0400 Date: Sun, 01 Sep 2019 22:37:50 +0200 Message-Id: <878sr792ht.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #34276 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 34276 37164 quit From unknown Sun Jun 15 08:53:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system disk-im =?UTF-8?Q?age=E2=80=99?= successfully builds a bad image References: <877eejfqmb.fsf@nckx> In-Reply-To: <877eejfqmb.fsf@nckx> Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Mar 2020 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 34276@debbugs.gnu.org Received: via spool by 34276-submit@debbugs.gnu.org id=B34276.15846483198833 (code B ref 34276); Thu, 19 Mar 2020 20:06:02 +0000 Received: (at 34276) by debbugs.gnu.org; 19 Mar 2020 20:05:19 +0000 Received: from localhost ([127.0.0.1]:43663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jF1Pr-0002IP-7b for submit@debbugs.gnu.org; Thu, 19 Mar 2020 16:05:19 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jF1Pn-0002I7-F1 for 34276@debbugs.gnu.org; Thu, 19 Mar 2020 16:05:18 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id E7B0DE0007 for <34276@debbugs.gnu.org>; Thu, 19 Mar 2020 20:05:08 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 19 Mar 2020 20:05:08 +0000 From: Brice Waegeneire Message-ID: <7a36cb1fc7c68f5d63a324df49170cdc@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello Ludovic, > I investigated a bit. I managed to get our code to cause a kernel > panic > upon failure (patch below). However I fail to turn that guest kernel > panic into a different QEMU exit code. > > I tried to use the “pvpanic” paravirtualized device (the ‘pvpanic.ko’ > module in the guest, and “-device pvpanic” on the QEMU command line), > but unfortunately that thing is almost undocumented and I can’t get it > to turn the panic into a non-zero exit code, nor do I know if it’s > possible. > > Thoughts anyone? I looked a little into it and I have found how to use pvpanic. Unfortunately it's not as straight forward as getting a non-zero exit code form qemu. When pvpanic is loaded in a VṂ, as you did with “-device pvpanic”, generate events[0] on the QMP interface when a crash happen and qemu either shutdown or pause when using --no-shutdown[1]. (gnu build marionette) which use the “-monitor” interface could be recycled to use “-qmp” a machine interface using JSON. Following is log of a QMP session where the guest panicked[2]: --8<---------------cut here---------------start------------->8--- { "QMP": { "version": { "qemu": { "micro": 0, "minor": 2, "major": 4 }, "package": "" }, "capabilities": [ "oob" ] } } { "execute": "qmp_capabilities" } { "return": { } } { "timestamp": { "seconds": 1584645026, "microseconds": 936550 }, "event": "GUEST_PANICKED", "data": { "action": "pause" } } { "timestamp": { "seconds": 1584645026, "microseconds": 936675 }, "event": "GUEST_PANICKED", "data": { "action": "poweroff" } } { "timestamp": { "seconds": 1584645026, "microseconds": 936776 }, "event": "SHUTDOWN", "data": { "guest": true, "reason": "guest-panic" } } --8<---------------cut here---------------end--------------->8--- [0]: https://github.com/qemu/qemu/blob/9ced5c7c20cb16dff0c2fa3242c3ee96b68cec2a/qapi/run-state.json#L339-L355 [1]: https://github.com/qemu/qemu/blob/4dd6517e369828171290b65e11f6a45aeeed15af/softmmu/vl.c#L1423-L1427 [2]: https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/interop/qmp-intro.txt;hb=HEAD Brice. From unknown Sun Jun 15 08:53:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system disk-im =?UTF-8?Q?age=E2=80=99?= successfully builds a bad image Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Mar 2020 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Brice Waegeneire Cc: 34276@debbugs.gnu.org Received: via spool by 34276-submit@debbugs.gnu.org id=B34276.158480629321412 (code B ref 34276); Sat, 21 Mar 2020 15:59:01 +0000 Received: (at 34276) by debbugs.gnu.org; 21 Mar 2020 15:58:13 +0000 Received: from localhost ([127.0.0.1]:47828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFgVo-0005ZI-Sl for submit@debbugs.gnu.org; Sat, 21 Mar 2020 11:58:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFgVn-0005Z5-80 for 34276@debbugs.gnu.org; Sat, 21 Mar 2020 11:58:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFgVh-0006GY-ND; Sat, 21 Mar 2020 11:58:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56006 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jFgVf-0007LV-NL; Sat, 21 Mar 2020 11:58:04 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877eejfqmb.fsf@nckx> <7a36cb1fc7c68f5d63a324df49170cdc@waegenei.re> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Germinal an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 21 Mar 2020 16:58:02 +0100 In-Reply-To: <7a36cb1fc7c68f5d63a324df49170cdc@waegenei.re> (Brice Waegeneire's message of "Thu, 19 Mar 2020 20:05:08 +0000") Message-ID: <875zex1z05.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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Brice, Brice Waegeneire skribis: >> I investigated a bit. I managed to get our code to cause a kernel=20 >> panic >> upon failure (patch below). However I fail to turn that guest kernel >> panic into a different QEMU exit code. >>=20 >> I tried to use the =E2=80=9Cpvpanic=E2=80=9D paravirtualized device (the= =E2=80=98pvpanic.ko=E2=80=99 >> module in the guest, and =E2=80=9C-device pvpanic=E2=80=9D on the QEMU c= ommand line), >> but unfortunately that thing is almost undocumented and I can=E2=80=99t = get it >> to turn the panic into a non-zero exit code, nor do I know if it=E2=80= =99s >> possible. >>=20 >> Thoughts anyone? > > I looked a little into it and I have found how to use pvpanic. > Unfortunately it's not as straight forward as getting a non-zero exit > code form qemu. When pvpanic is loaded in a VM=CC=A3, as you did with=20 > =E2=80=9C-device > pvpanic=E2=80=9D, generate events[0] on the QMP interface when a crash ha= ppen > and qemu either shutdown or pause when using --no-shutdown[1]. > > (gnu build marionette) which use the =E2=80=9C-monitor=E2=80=9D interface= could be > recycled to use =E2=80=9C-qmp=E2=80=9D a machine interface using JSON. > > Following is log of a QMP session where the guest panicked[2]: Oooh, I see, thanks for digging into this! Any idea how to implement it? Is QMP a request/reply kind of interface like the monitor? Ludo=E2=80=99. From unknown Sun Jun 15 08:53:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system disk-im =?UTF-8?Q?age=E2=80=99?= successfully builds a bad image Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Mar 2020 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 34276@debbugs.gnu.org Received: via spool by 34276-submit@debbugs.gnu.org id=B34276.158480905127020 (code B ref 34276); Sat, 21 Mar 2020 16:45:01 +0000 Received: (at 34276) by debbugs.gnu.org; 21 Mar 2020 16:44:11 +0000 Received: from localhost ([127.0.0.1]:47897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFhEJ-00071j-Az for submit@debbugs.gnu.org; Sat, 21 Mar 2020 12:44:11 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:45585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFhEG-00071Q-Rx for 34276@debbugs.gnu.org; Sat, 21 Mar 2020 12:44:09 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay8-d.mail.gandi.net (Postfix) with ESMTPA id 671C61BF20B; Sat, 21 Mar 2020 16:44:02 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 21 Mar 2020 16:44:02 +0000 From: Brice Waegeneire In-Reply-To: <875zex1z05.fsf@gnu.org> References: <877eejfqmb.fsf@nckx> <7a36cb1fc7c68f5d63a324df49170cdc@waegenei.re> <875zex1z05.fsf@gnu.org> Message-ID: X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello Ludo, On 2020-03-21 15:58, Ludovic Courtès wrote: > Any idea how to implement it? Is QMP a request/reply kind of interface > like the monitor? Not really or I would have sent a patch instead. QMP is similar to the the monitor in the sense that you can send a command and receive a reply but it give us access to more features; in our case asynchronous events. To get notified by the pvpanic device that a panic occured on the guest it is needed to do the following: 1. Connect to the socket 2. Receive the server greetings 3. Respond with the capabilites request 4. Receive the capabilites respond 5. Listen on GUEST_PANICKED events The QMP specifications are available here[0]. [0]: https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/interop/qmp-spec.txt;hb=HEAD Brice. From unknown Sun Jun 15 08:53:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tobias Geerinckx-Rice Subject: bug#34276: closed (Re: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?disk-image=E2=80=99?= successfully builds a bad image) Message-ID: References: <877dz6911q.fsf@gnu.org> <877eejfqmb.fsf@nckx> X-Gnu-PR-Message: they-closed 34276 X-Gnu-PR-Package: guix Reply-To: 34276@debbugs.gnu.org Date: Thu, 26 Mar 2020 22:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1585263542-16905-1" This is a multi-part message in MIME format... ------------=_1585263542-16905-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34276: =E2=80=98guix system disk-image=E2=80=99 successfully builds a bad = image which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34276@debbugs.gnu.org. --=20 34276: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34276 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1585263542-16905-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34276-done) by debbugs.gnu.org; 26 Mar 2020 22:58:03 +0000 Received: from localhost ([127.0.0.1]:60349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbRr-0004N9-52 for submit@debbugs.gnu.org; Thu, 26 Mar 2020 18:58:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbRp-0004Md-Jt for 34276-done@debbugs.gnu.org; Thu, 26 Mar 2020 18:58:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHbRk-0007D3-0l; Thu, 26 Mar 2020 18:57:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38830 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHbRi-0006no-PG; Thu, 26 Mar 2020 18:57:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tobias Geerinckx-Rice Subject: Re: bug#34276: =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?disk-im?= =?utf-8?Q?age=E2=80=99?= successfully builds a bad image References: <877eejfqmb.fsf@nckx> <878sxdzoqo.fsf@gnu.org> Date: Thu, 26 Mar 2020 23:57:53 +0100 In-Reply-To: <878sxdzoqo.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 17 Mar 2019 13:09:35 +0100") Message-ID: <877dz6911q.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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34276-done Cc: 34276-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Ludovic Court=C3=A8s skribis: > The other option would be to create a special file in the 9p mount > that=E2=80=99s shared with the host upon success, but that seems a bit ha= cky. Turns out that was easily done and better than the status quo. Done in commit be6520e6a58d7f6ee58f4cab76db9d1245410113! Ludo=E2=80=99. ------------=_1585263542-16905-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Feb 2019 15:58:30 +0000 Received: from localhost ([127.0.0.1]:55165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpbD4-0003Qo-H5 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpbD1-0003QX-Ls for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:51972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpbCv-0006qZ-NF for submit@debbugs.gnu.org; Fri, 01 Feb 2019 10:58:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpbCu-0005lA-OC for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpbCt-0006pO-7e for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:20 -0500 Received: from tobias.gr ([2001:470:7405::1]:43716) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpbCs-0006lv-1m for bug-guix@gnu.org; Fri, 01 Feb 2019 10:58:19 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 9420957b for ; Fri, 1 Feb 2019 15:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=ta/uen3kb +winSWcV//ucKwK+DejGLRUIjU3C6FNOk4=; b=bFPWea5WiVsHKDSggbAi5Ddgm 2PLUWqQqQ2GDpGacUUsDNIQS/e/O3tqg70baUkMIQ2Ukm4bTfSSEt2mErCF78CUe +mXhIPaGGgsx5b2F/q4RiUU+AoVU5lwmHJmkC0hXxdepDTTB1JRf1Mq/I3vI81Os SF3h80+Pcph56lqox/DHf87M2nPsnX2Ejrp1eks1bd6B8h2dGmG8DKEqhzOmLX03 G8aIPcbY7P9NxsuAiFiQ5oa+XSxl0UHObF58EWbY/iRlNjkaPJyy4OXpaDpWqfGF yDVnjuWnVgnT+13iwOkUFgrEHJW5fM1RSUYKOecISPgmAcIJ30Pcchq69tp/g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 68eec9ce (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 1 Feb 2019 15:58:07 +0000 (UTC) From: Tobias Geerinckx-Rice To: Bug Guix Subject: =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?disk-image=E2=80=99?= successfully builds a bad image Date: Fri, 01 Feb 2019 16:57:48 +0100 Message-ID: <877eejfqmb.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hullo! I wanted to install this =E2=80=98Guix=E2=80=99 thing that everyone's so hy= ped up=20 about. I have a small forgotten script in my ~/guix.git that runs: ./pre-inst-env guix system disk-image --fallback=20 --image-size=3D1.5G \ gnu/system/install.scm This was written back when 1.5G was higher than the default. Now it's much lower and too small to store all the Guix. However,=20 the command completes =E2=80=98successfully=E2=80=99: copying 422 store items [#########: In srfi/srfi-1.scm: 466:18 19 (fold # ?) In unknown file: 18 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 17 (loop _ _ #(21 1706421 16749 3 0 0 0 4096 1548869386=20 ?) ?) In srfi/srfi-1.scm: 466:18 16 (fold # ?) In unknown file: 15 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 14 (loop _ _ #(21 1739151 16749 3 0 0 0 4096 1548869386=20 ?) ?) In srfi/srfi-1.scm: 466:18 13 (fold # ?) In unknown file: 12 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 11 (loop _ _ #(21 1772091 16749 13 0 0 0 4096 1548869389=20 ?) ?) In srfi/srfi-1.scm: 466:18 10 (fold # ?) In unknown file: 9 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 8 (loop _ _ #(21 2132258 16749 98 0 0 0 4096 1548869432=20 ?) ?) In srfi/srfi-1.scm: 466:18 7 (fold # ?) In unknown file: 6 (_ #=20 # ?) In ice-9/ftw.scm: 452:32 5 (loop _ _ #(21 4589344 16749 24 0 0 0 4096 1548869676=20 ?) ?) In srfi/srfi-1.scm: 466:18 4 (fold # ?) In unknown file: 3 (_ #=20 # ?) In ice-9/ftw.scm: 482:39 2 (loop _ _ #(21 4589402 16749 3 0 0 0 4096 1548869687=20 ?) ?) In ./guix/build/utils.scm: 312:27 1 (_=20 "/gnu/store/ricf82z3mqqrqim67jz3jlsglfm1g1a8-linux-?" ?) In unknown file: 0 (copy-file=20 "/gnu/store/ricf82z3mqqrqim67jz3jlsglfm1g1a?" ?) ERROR: In procedure copy-file: In procedure copy-file: No space left on device ^MESC[Kcopying 422 store items boot program=20 '/gnu/store/lbvrvrlqab4qpw9f907na445kppmknab-linux-vm-loader'=20 terminated, rebooting [ 1071.512054] Unregister pv shared memory for cpu 0 [ 1071.522414] reboot: Restarting system [ 1071.542285] reboot: machine restart successfully built=20 /gnu/store/lbyq5790j5hfq3spbm76i1yw3sj41l8b-disk-image.drv /gnu/store/dby523cy1l4wrqi8wwmk5ln9qr7g5mh8-disk-image Kind regards, T G-R Sent from my GNU Emacs ------------=_1585263542-16905-1-- From unknown Sun Jun 15 08:53:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jesse Gibbons Subject: bug#37164: closed (Re: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?disk-image=E2=80=99?= successfully builds a bad image) Message-ID: References: <877dz6911q.fsf@gnu.org> <7eb5e5964ad6564c7cc6cc7711b18daf1faac64a.camel@gmail.com> X-Gnu-PR-Message: they-closed 37164 X-Gnu-PR-Package: guix Reply-To: 37164@debbugs.gnu.org Date: Thu, 26 Mar 2020 22:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1585263542-16905-3" This is a multi-part message in MIME format... ------------=_1585263542-16905-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34276: Generated installation image does not include grub. which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37164@debbugs.gnu.org. --=20 34276: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34276 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1585263542-16905-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34276-done) by debbugs.gnu.org; 26 Mar 2020 22:58:03 +0000 Received: from localhost ([127.0.0.1]:60349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbRr-0004N9-52 for submit@debbugs.gnu.org; Thu, 26 Mar 2020 18:58:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHbRp-0004Md-Jt for 34276-done@debbugs.gnu.org; Thu, 26 Mar 2020 18:58:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHbRk-0007D3-0l; Thu, 26 Mar 2020 18:57:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38830 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHbRi-0006no-PG; Thu, 26 Mar 2020 18:57:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tobias Geerinckx-Rice Subject: Re: bug#34276: =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?disk-im?= =?utf-8?Q?age=E2=80=99?= successfully builds a bad image References: <877eejfqmb.fsf@nckx> <878sxdzoqo.fsf@gnu.org> Date: Thu, 26 Mar 2020 23:57:53 +0100 In-Reply-To: <878sxdzoqo.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 17 Mar 2019 13:09:35 +0100") Message-ID: <877dz6911q.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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34276-done Cc: 34276-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Ludovic Court=C3=A8s skribis: > The other option would be to create a special file in the 9p mount > that=E2=80=99s shared with the host upon success, but that seems a bit ha= cky. Turns out that was easily done and better than the status quo. Done in commit be6520e6a58d7f6ee58f4cab76db9d1245410113! Ludo=E2=80=99. ------------=_1585263542-16905-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Aug 2019 17:40:33 +0000 Received: from localhost ([127.0.0.1]:41122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1DY9-0001jM-Bn for submit@debbugs.gnu.org; Fri, 23 Aug 2019 13:40:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:49889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1DY7-0001jD-CD for submit@debbugs.gnu.org; Fri, 23 Aug 2019 13:40:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60139) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1DY6-0006q6-2J for bug-guix@gnu.org; Fri, 23 Aug 2019 13:40:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,BITCOIN_SPAM_05, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1DY4-0000KL-UE for bug-guix@gnu.org; Fri, 23 Aug 2019 13:40:29 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:43400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1DY4-0000Jr-OX for bug-guix@gnu.org; Fri, 23 Aug 2019 13:40:28 -0400 Received: by mail-pl1-x636.google.com with SMTP id 4so5934284pld.10 for ; Fri, 23 Aug 2019 10:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=R9/+JU2w4WNpjgfu4u93EHhkYHMOXFH2M/sqX1Y95Xo=; b=ccbDV/B87g25sYEdipCjkkHNT+7w1X0OvFfq/xgraQSUFIdbDHH7KZaQ7z+6VcLHJL eYVD2ivZx9w3Vib2ICzomua+sVVYFgY2HgM7eH8BxOSoqZg7s73RhRzWu0+I2++jKK2q +bDtqp0Ao0oOPIONEhSRXEFeKRRGwNZsZbfVwOszNDi4dqBX/J6v9gfdgtt53cTGJcPE 3WNRdUieNWXbLpgXvq+FYjdK6MGYOg+oXJxxiTgB6w/002P7sbvs12GwaxHGr+j6ixXG mAZpQxktQRhp53gVZ7BqmTf1SBLHg4KcVLVNCovT/HdkYcYt8fWpUopcRO13Fx6pY2P7 1XKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=R9/+JU2w4WNpjgfu4u93EHhkYHMOXFH2M/sqX1Y95Xo=; b=DeGNvDupS82tINnTxsHs/c7E6i4stvi0uMGeGtUdSjKprH89IKXOUUOUqs8nOMhU5H pdLFxkAzWI1SJyiyBkf8bAziM4QZX0oPupmecT82fGmiW/rYo7zAhwk3ePevHkM8OpNI +amirx8ZGzzWAqw5SxBMlT9jKTQhEZ1TLVljPA2JqNJtTQ2rl93pztSvYq9AQq+T7aM8 VsvLc1kAWaYkR2+AeHJqLE13mdBhfkBUc9GrZwvwpOphGbFqaGiBdlzxwvSYtmrex8/r 4Bfpg0OwNP7YJepBwgjUzWGlNMwwqEq7cMWMDJ05NcPuXdryPZMT35RaZxUXMceWiGaf FgQA== X-Gm-Message-State: APjAAAXJL4cwlUB22QUHrBkHQl77FWiLvNpBjM762GDqecjAY3TYnYjm bJ2nXoBENwGi2oFur9dGtSrRQGCLi84= X-Google-Smtp-Source: APXvYqyUhDw3FvW8Jwm1MkRxYHpFtvcnLffLlGgQhFaI+HSBNMud2wh6bHAeXISQjyQV5ts2yVuCNg== X-Received: by 2002:a17:902:3363:: with SMTP id a90mr6127383plc.270.1566582026840; Fri, 23 Aug 2019 10:40:26 -0700 (PDT) Received: from piranhaplant.local ([199.68.53.171]) by smtp.googlemail.com with ESMTPSA id o24sm7237932pfp.135.2019.08.23.10.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2019 10:40:26 -0700 (PDT) Message-ID: <7eb5e5964ad6564c7cc6cc7711b18daf1faac64a.camel@gmail.com> Subject: Generated installation image does not include grub. From: Jesse Gibbons To: bug-guix mailing list Content-Type: text/plain; charset="UTF-8" Date: Fri, 23 Aug 2019 11:40:13 -0600 Mime-Version: 1.0 X-Mailer: Evolution 3.28.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::636 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 1. generate the install image guix system disk-image --file-system-type=iso9600 --verbosity=3 -- root=installation-os-x86_64.iso --system=x86_64-linux -e '(@ (gnu system install) installation-os)' 2. examine the resulting iso readlink installation-os-x86_64.iso | xargs file Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (jgibbons2357[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jgibbons2357[at]gmail.com) -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.5 BITCOIN_SPAM_05 BitCoin spam pattern 05 X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) 1. generate the install image guix system disk-image --file-system-type=iso9600 --verbosity=3 -- root=installation-os-x86_64.iso --system=x86_64-linux -e '(@ (gnu system install) installation-os)' 2. examine the resulting iso readlink installation-os-x86_64.iso | xargs file output: /gnu/store/3xp541s4zrxass6h6rcwfz7bc33wv84p-disk-image: DOS/MBR boot sector; partition 1 : ID=0x83, active, start-CHS (0x0,32,33), end- CHS (0xe3,198,58), startsector 2048, 3657239 sectors; partition 2 : ID=0xef, start-CHS (0xe3,198,59), end-CHS (0xe8,224,16), startsector 3659287, 81921 sectors 3. Compare this output with what file says about the official installation iso: wget https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.1.x86_64-linu x.iso.xz unxz guix-system-install-1.0.1.x86_64-linux.iso.xz readlink guix-system-install-1.0.1.x86_64-linux.iso output:guix-system-install-1.0.1.x86_64-linux.iso: DOS/MBR boot sector; GRand Unified Bootloader, stage1 version 0x79, boot drive 0xbb, stage2 address 0x8e70, 1st sector stage2 0xb8db31c3, stage2 segment 0x201; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3f6,38,4), startsector 1, 2694403 sectors, extended partition table (last) It appears file discovered the GRand Unified Bootloader in the official iso but not in the generated iso. When I try to use the generated iso in virt-manager, it claims there are no bootable drives. I think this is because the generated iso has no GRUB. The manual says to specify the file gnu/system/install.scm instead of the value (@ (gnu system install) installation-os)) but ultimately they give guix the same value, so I think that wouldn't make a difference. removing --system=x86_64 does not trigger a full rebuild, so it looks like guix does not expect to build anything different. Guix describe outputs: Generation 47 Aug 23 2019 09:22:24 (current) guix d78bc23 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: d78bc23411b1351ff9495a511c22b27d17f9226f GUIX_PACKAGE_PATH="/home/jesse/Documents/broken-guix/Broken-Guix- Packages" Thanks -Jesse ------------=_1585263542-16905-3--