From unknown Fri Aug 15 20:51:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28768: guix system vm Failed to install GRUB (EFI) Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 09 Oct 2017 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28768 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 28768@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150757865024735 (code B ref -1); Mon, 09 Oct 2017 19:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2017 19:50:50 +0000 Received: from localhost ([127.0.0.1]:58667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1e4g-0006Qp-9S for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1e4e-0006Qc-C4 for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1e4Y-00066X-H8 for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1e4Y-00066P-DQ for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1e4X-0003Ak-B3 for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1e4S-0005yF-F4 for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:41 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:45514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1e4S-0005wt-7d for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:36 -0400 Received: by mail-lf0-x232.google.com with SMTP id n69so717905lfn.2 for ; Mon, 09 Oct 2017 12:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=bR5PKAQjT6/i9XrcRV2dg1ErZs7QSPufPnmDa3onMTc=; b=Ri2rPrN8z0rdGfctI00SEm+YodKlW+mbNedJhgnKqyYFfeyKwEYl9ZoDrGPkDa2cTN VZh5R1H8t98R4Wcky5P1JCiKZYcUUXNyLG40BEXOoNgx8zf7+Ynsb/yy36LFlmtdrv4C rMfcms/qKcEIowstVy1B0dV+izFnDeYmh/FNRC4T4dcP0teHTwJF23s1k2S3qJaa6/Xe 7qs74G8uvdKYbGD9l13ttONQeAfYpeZKDG0oUNvqY7bmD/WA0up9xINqprZUfdfg50zs NH1u6gOSiq8Te6GNa1bprcFlwrdtfttFL691ZNcJiJvhwdht/G3vbdsijD/yXUlXzAdl OUEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=bR5PKAQjT6/i9XrcRV2dg1ErZs7QSPufPnmDa3onMTc=; b=IL9Tl1cWLox+cYlUtYNsIAUb549E50lPwTUeUNc0owL0iJLq+/85y1XYB2TgCnmClc Hcxuy6w2wjxuC0C/S1NbQdW8lEoQPcs1GtrfvW6O9Hn1dEORgAVO8K/1z73fY7Dzk8F9 pSgDFkAEocoz94AU9E9ECg+Ctb/iCv678uKsoidGEVck/LNZ7YBS8rzpqx7e3+PwsQBE u9enmgTFBmfhC3s8kNslLCA42fq2y/mM2h3pwxdFs/NSf5pyLTGyHhiAtpSGLlsFbV/Q 08Q8SMHs/cIELQVAEM8kLtpgUHtMEJIbXUt/E6PfgBy6w4vIbR6JCckqDlLkmER0q7AC hKWg== X-Gm-Message-State: AMCzsaWek17ZDY9mk86OOc2UYVkzmjdRi9RZWy4S3A8BRgsqks9W+btQ Ds6hERb8E6ezYOlK0OYVGPsu6A== X-Google-Smtp-Source: AOwi7QD8aQNpT1abGVT/h5d0LYokE2ESRTeytXZS305qRAseCR/fM9ByIuyoFQrQ5Fuk3e8j9Z8BLg== X-Received: by 10.46.21.25 with SMTP id s25mr4899621ljd.71.1507578634471; Mon, 09 Oct 2017 12:50:34 -0700 (PDT) Received: from magnolia ([178.67.252.42]) by smtp.gmail.com with ESMTPSA id e13sm1313610ljb.93.2017.10.09.12.50.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 12:50:33 -0700 (PDT) From: Oleg Pykhalov Date: Mon, 09 Oct 2017 22:50:32 +0300 Message-ID: <87info3xtj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.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: -4.0 (----) Hello Guix, EFI bootloader configuration causes problems to test with 'system vm' before 'reconfigure'. To reproduce it replace default bootloader expression with following snippet in gnu/system/examples/vm-image.tmpl (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi"))) --8<---------------cut here---------------start------------->8--- [ 0.909226] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null) installing bootloader... /gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/sbin/grub-install: error: /gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. ERROR: In procedure scm-error: ERROR: failed to install GRUB (EFI) Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 2.2.2 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> [ 1.344109] tsc: Refined TSC clocksource calibration: 3392.250 MHz [ 1.344677] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x30e5b54dbe0, max_idle_ns: 440795272496 ns C-c C-c --8<---------------cut here---------------end--------------->8--- From unknown Fri Aug 15 20:51:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28768: guix system vm Failed to install GRUB (EFI) Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Oct 2017 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28768 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov , 28768@debbugs.gnu.org Received: via spool by 28768-submit@debbugs.gnu.org id=B28768.150766254022052 (code B ref 28768); Tue, 10 Oct 2017 19:09:01 +0000 Received: (at 28768) by debbugs.gnu.org; 10 Oct 2017 19:09:00 +0000 Received: from localhost ([127.0.0.1]:60927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1ztk-0005jb-BG for submit@debbugs.gnu.org; Tue, 10 Oct 2017 15:09:00 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1zti-0005jS-Qo for 28768@debbugs.gnu.org; Tue, 10 Oct 2017 15:08:59 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id ECCEE20BA9; Tue, 10 Oct 2017 15:08:57 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 10 Oct 2017 15:08:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=vWo8itqIy+ZMNgkhgaRDCbVQ0PAx7suuGuyjjB3OO gs=; b=ubNA8VpRRgW4vTlNE81gY9kUA2Is1n1F9VTI5De2rNiD4lf3U3QfQTE0I ejXFQAdAliqhWn4hi2JkFfiD5pe+I5UIrziiVfYsw4Wli/cd0KIWd1uIh03SlY0K EFpmgztWDS5FNahnO+jH42XZm760bKDDhYPbrEU8aZY7HOACqO2WcPBUi8J9LzbO zuaf3hYYKATDVDr03lFxOX9qmua12E5U7qr1Mmk8f5i2ln9SdLnUjm8gamFJpIG9 yXe1DcZ1/a3244lRxNR3FZVR+NJWwbWy4lJsDOeVU8sM8oW+RsWsr565YFw3xrEj DJL4qFZk/s7NRy7fuswAZV9B3sT2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=vWo8itqIy+ZMNgkhga RDCbVQ0PAx7suuGuyjjB3OOgs=; b=NggkdYPIxN/OJkKJnK+3BT7i3zrWOJGGAJ 5achqD6zAoiwwPkH1Efq7rnDewOJk4sXgswH9pEYnAZDdPui2p4cZBu0mmfyBKoZ 4NRhxAaehOxBR0BnQoTu6e1k7l2kBJ20FyJ3H44Ls/84T0Lb6c4veRx074KNqy44 0uRJY1ITb8quDPL7zye4Y2k8kjHUUKoM2Q7FYDAQZPq7pJ3XeWmcxvaiKz8KfSlK nWzmymgX7sJB+Gss7MozVr+nJwx+1SaKJEgb+Q24ljBgQgrPhn7Dw//ljnlCwFdt +JdimpeVGZNPMI7Xv8W0P+uQ/YaziDrS8A2RfsD+iZepDstop+BA== X-ME-Sender: X-Sasl-enc: 0dqft1Ak19opV9/9BkuHNrFEvOLsBOI7FGClSCyQm6W/ 1507662537 Received: from localhost (cm-84.214.173.174.getinternet.no [84.214.173.174]) by mail.messagingengine.com (Postfix) with ESMTPA id 7AB7D24038; Tue, 10 Oct 2017 15:08:57 -0400 (EDT) From: Marius Bakke In-Reply-To: <87info3xtj.fsf@gmail.com> References: <87info3xtj.fsf@gmail.com> User-Agent: Notmuch/0.25.1 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Tue, 10 Oct 2017 21:08:55 +0200 Message-ID: <87efqa95x4.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: -0.7 (/) --=-=-= Content-Type: text/plain Oleg Pykhalov writes: > EFI bootloader configuration causes problems to test with 'system vm' > before 'reconfigure'. This is because `guix system vm` is not currently UEFI enabled, so GRUB tries to install for a normal PC BIOS. The fix would be to make the various QEMU invocations in (gnu system vm) take a #:firmware parameter that passes something along the lines of '-bios #$(file-append ovmf "/share/ovmf/firmware/ovmf_x64.bin")' to the QEMU command-line, and update other scripts to take advantage. It's on my ever-growing TODO list and would be nice to have indeed. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlndGsgACgkQoqBt8qM6 VPoLYAf/TwYGG3q6BS7NpSRyp5NVbHNPeHSbwP8QSLxYYuFK4ZkdIsdJnEuPtKPP SmUX9jehYe5s0a0HB0yQFsX7gZPTP8SBoSOR7kbQfvFQtlbapzHRFIwvIl8392g4 Dq2MA/VLnNXzjQ6/HP2koP6NTcQJrIo53f4nO0+dJyN0QjPE3x7Q7mv6E5b4HSgh sK4SqBCHNqfmAB2/Tn2eGSwjpV/QZMPOryiXQjk2X4F/cYWnCMFrkzXIBTtLHLOA 8jNbYBSV4z/W1IzIbB29woBkBAhWkKUQYWArBLXu2Yudo7qiFRZWP9u0HMynOXky dC/epqiRw0UoMb8AlU+TIox9QvFWbw== =Ca+V -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 20:51:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28768: guix system vm Failed to install GRUB (EFI) Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Oct 2017 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28768 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Cc: Oleg Pykhalov , 28768@debbugs.gnu.org Received: via spool by 28768-submit@debbugs.gnu.org id=B28768.150779798925614 (code B ref 28768); Thu, 12 Oct 2017 08:47:02 +0000 Received: (at 28768) by debbugs.gnu.org; 12 Oct 2017 08:46:29 +0000 Received: from localhost ([127.0.0.1]:34851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Z8P-0006f4-5i for submit@debbugs.gnu.org; Thu, 12 Oct 2017 04:46:29 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:48694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Z8N-0006ev-9m for 28768@debbugs.gnu.org; Thu, 12 Oct 2017 04:46:27 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 66972E0A1; Thu, 12 Oct 2017 10:46:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AsLlKMXw4H4e; Thu, 12 Oct 2017 10:46:25 +0200 (CEST) Received: from ribbon (unknown [193.50.110.214]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 46734DFB3; Thu, 12 Oct 2017 10:46:25 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) In-Reply-To: <87efqa95x4.fsf@fastmail.com> (Marius Bakke's message of "Tue, 10 Oct 2017 21:08:55 +0200") References: <87info3xtj.fsf@gmail.com> <87efqa95x4.fsf@fastmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 =?UTF-8?Q?Vend=C3=A9miaire?= an 226 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: Thu, 12 Oct 2017 10:46:23 +0200 Message-ID: <877ew0rbxc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.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 Marius Bakke skribis: > Oleg Pykhalov writes: > >> EFI bootloader configuration causes problems to test with 'system vm' >> before 'reconfigure'. > > This is because `guix system vm` is not currently UEFI enabled, so GRUB > tries to install for a normal PC BIOS. > > The fix would be to make the various QEMU invocations in (gnu system vm) > take a #:firmware parameter that passes something along the lines of > '-bios #$(file-append ovmf "/share/ovmf/firmware/ovmf_x64.bin")' to the > QEMU command-line, and update other scripts to take advantage. Perhaps by adding it to records we=E2=80=99d make it less annoying to pass around? Or are there other places that would still need extra care? Another option, in the meantime is this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 273a895be..f763b430b 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -565,6 +565,14 @@ environment with the store shared with the host. MAPPINGS is a list of user-file-systems))) (operating-system (inherit os) + + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware), + ;; force the traditional i386/BIOS method. + ;; See . + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (target "/dev/vda"))) + (initrd (lambda (file-systems . rest) (apply base-initrd file-systems #:volatile-root? #t --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable That=E2=80=99s what I do manually anyway. WDYT? If that=E2=80=99s fine with you, I can commit it. Thanks, Ludo=E2=80=99. --=-=-=-- From unknown Fri Aug 15 20:51:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28768: guix system vm Failed to install GRUB (EFI) Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Oct 2017 18:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28768 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Oleg Pykhalov , 28768@debbugs.gnu.org Received: via spool by 28768-submit@debbugs.gnu.org id=B28768.15084373117854 (code B ref 28768); Thu, 19 Oct 2017 18:22:02 +0000 Received: (at 28768) by debbugs.gnu.org; 19 Oct 2017 18:21:51 +0000 Received: from localhost ([127.0.0.1]:50696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5FS2-00022c-Qj for submit@debbugs.gnu.org; Thu, 19 Oct 2017 14:21:51 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5FS1-00022V-BY for 28768@debbugs.gnu.org; Thu, 19 Oct 2017 14:21:49 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EFB0E20C5F; Thu, 19 Oct 2017 14:21:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 19 Oct 2017 14:21:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=eiYfMnSULtbpJJFkKeZiPvWzI8C1Bg12JQ6m/haTaZ0=; b=nRjtisY+ 2VQZ+cJxcTCoczgs9HdBGAlQh+SGzPu9go0B69Ie6TwN+3UKv6a+wwNj2ff6o1qz wWF9b1NawFBjj4XOy1NEnUNwtvymshgscMtoqtGBICYkYXDVVHyS2BQz9WipL7Hs GuWQcD5JCkdC0eBoN1sGHcT7tQOXe4znjDFqLZ3mGg/K3phCg4BM/2sMPB/lQ2/W ncn/Q3Yed1kG8RZvNITmAZzsf6ZvRru6FrGyMdYOHHsPb+nLbhrns5/O1czgQpKi 2oN4qweIlJnbC7WM7wKW1AVYEzR5e+jI/WKGV8tC/oj3Iep7w4SmyHcoy11+J1PK /hRbT5ue6Qwriw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=eiYfMnSULtbpJJFkKeZiPvWzI8C1B g12JQ6m/haTaZ0=; b=MmEh18A73s8u0DS5/E/lanvoNY1CT3IchaJj6Qtv5wYov te0mBh7ue1CnOJ+CYbHhMkKBJtvDoKnsXeUBKh8p5sPWVG4eY35uNB3F0yd43dUz MsgyuXFNz+SnpyzqHmynJvYJ2FzRmN34f9qKUVB6tNg8QpKv6lNm+l+sCFXeSV3s hNLP631CT26z4EW8gumxLh+M5RPGahVrf0mdiVvUHkz+OKVbiMk5nLQIeVnmVuzn BY6QcCt8+/KXtpL1nvozuE6VuNQR7WpNJ6Y189kFxT91rBda9oQ6YfGTWCI9oT+h rbW32agsnZgxnGkO+G7MEVR8/a36/XYgFOlA4/+Iw== X-ME-Sender: Received: from localhost (cm-84.214.173.174.getinternet.no [84.214.173.174]) by mail.messagingengine.com (Postfix) with ESMTPA id 734307E9EF; Thu, 19 Oct 2017 14:21:48 -0400 (EDT) From: Marius Bakke In-Reply-To: <877ew0rbxc.fsf@gnu.org> References: <87info3xtj.fsf@gmail.com> <87efqa95x4.fsf@fastmail.com> <877ew0rbxc.fsf@gnu.org> User-Agent: Notmuch/0.25.1 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Thu, 19 Oct 2017 20:21:46 +0200 Message-ID: <87infb577p.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Marius Bakke skribis: > >> Oleg Pykhalov writes: >> >>> EFI bootloader configuration causes problems to test with 'system vm' >>> before 'reconfigure'. >> >> This is because `guix system vm` is not currently UEFI enabled, so GRUB >> tries to install for a normal PC BIOS. >> >> The fix would be to make the various QEMU invocations in (gnu system vm) >> take a #:firmware parameter that passes something along the lines of >> '-bios #$(file-append ovmf "/share/ovmf/firmware/ovmf_x64.bin")' to the >> QEMU command-line, and update other scripts to take advantage. > > Perhaps by adding it to records we=E2=80=99d make it le= ss > annoying to pass around? Or are there other places that would still > need extra care? Sorry for late response, still going through a backlog! I think should be sufficient, did not do a lot of research. > Another option, in the meantime is this: > > diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm > index 273a895be..f763b430b 100644 > --- a/gnu/system/vm.scm > +++ b/gnu/system/vm.scm > @@ -565,6 +565,14 @@ environment with the store shared with the host. MA= PPINGS is a list of > user-file-systems))) >=20=20 > (operating-system (inherit os) > + > + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware), > + ;; force the traditional i386/BIOS method. > + ;; See . > + (bootloader (bootloader-configuration > + (bootloader grub-bootloader) > + (target "/dev/vda"))) > + > (initrd (lambda (file-systems . rest) > (apply base-initrd file-systems > #:volatile-root? #t > > That=E2=80=99s what I do manually anyway. > > WDYT? If that=E2=80=99s fine with you, I can commit it. LGTM! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlno7TsACgkQoqBt8qM6 VPr9ogf/YfnSnQDGPp05BWXtBeXzSOhYeROgYabI1yqjbrPY9FJIhFHGXL+e4eof AUXe+Wfg2XsI1QXkcG1KJ8H5VviF1Ubuftw2DSIY7l40Kaerj+U9I/6M0ZA6SUa/ JEI4nP7VUWeIu3HPf5g2xPgZmgG5KcFcBs9Kj1Nuwe+Yz7QRcW7xTTrzSwsGW6lm I3KwZ1cT/lBr1EEYWnq3CyCnPzY+TKlkrTYwcK3zWuyllLP6Dgtw5m/UzZXCiicU prj3424ZaPGA5le2JqQU6T79eezoy6K6PtZBCMRQzq8+d5oMMlARt0g/REBm3s41 74cmORod1EOeCr7k/UlHEcwjEqypPw== =/ktA -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 20:51:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28768: guix system vm Failed to install GRUB (EFI) Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Oct 2017 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28768 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Cc: Marius Bakke , 28768@debbugs.gnu.org Received: via spool by 28768-submit@debbugs.gnu.org id=B28768.150844518729051 (code B ref 28768); Thu, 19 Oct 2017 20:34:02 +0000 Received: (at 28768) by debbugs.gnu.org; 19 Oct 2017 20:33:07 +0000 Received: from localhost ([127.0.0.1]:50760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5HV4-0007YV-Jq for submit@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:06 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5HV2-0007Y0-DW for 28768@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:05 -0400 Received: by mail-lf0-f66.google.com with SMTP id g70so10983584lfl.3 for <28768@debbugs.gnu.org>; Thu, 19 Oct 2017 13:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=eLJVWK9EshC9jmZoIsu2IywQbL/cdGncUDFDX77lk/U=; b=FOvSGvEUjaQF+d8PPkfXlBcI+v5F2emDEV+1eYYWWvNC1pT8G8jb8oTtKY5RgPltZS Y8alyZUOI7obun2v26BTmD/WNJGvVAxwaNj/gHBlhw05CcGLYS/5UjiaDNw7I3YDn861 vQNVi30dTri+AmYbMiB3GSlYGHHIApJ1HIGvu4Z4zcBd6bbLBwXsBnetGwJJy3uzAh7i 6yJ6WYP/RpQ1vwILjVZiHfeT1ofRr1jB7V29fvk0YTgOXXfMMS4//JdCvrGp8L+8cXKA jORRymw1kqG53suQlzbFT2QhILxSwxQUV1f2KCnO2LHBCeFkxstH4mSZgnTy0cNmldHO arPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=eLJVWK9EshC9jmZoIsu2IywQbL/cdGncUDFDX77lk/U=; b=Qa4M7GFwrY097PYNC+fBHCgdhF6Ao7IkAR+Xp9svDazJmDDYMfoeGEuNOwd1Tmcenw xGtzah11emRYPT95B/zEPEdsq2zjtBvvJVj9MwEl9EFQu3H7xHOMnSxvGFhbUj4Zy4WJ JTOjzh7l2+3cacbgLnv4Wst67UN/Co8mBIZQf00tQy+LDLxzOA8GJx0H8mSMKwrwLTri wDnReUgejzV3sjMJPF8Qs9rTzqgYQtGhOgqzsORGdsHb5Mhu39khX+IZCwjI0/9zE3Cx Or0hTewjGdKDjO/qxD/0QhsPJT5TD67H9ldWgq2BUkew9fa5i1Qmy26jloCYXFEjN7fQ nMSA== X-Gm-Message-State: AMCzsaWsNEuUVnioUn4NA/79Wvd3jKHQDMy2S668mGlJtKOTZU8l+4wb MituExjLyBpV/A3GYzKwaRtqWg== X-Google-Smtp-Source: ABhQp+QWN2fY9sTY2gEvm4UbgieZ0wnCGqC0Fxv7CmsLQNSTI1lZ8UiPOcA88Mqr73BUlhds3eJjYA== X-Received: by 10.25.78.141 with SMTP id u13mr905959lfk.156.1508445177976; Thu, 19 Oct 2017 13:32:57 -0700 (PDT) Received: from magnolia (pppoe.178-66-62-9.dynamic.avangarddsl.ru. [178.66.62.9]) by smtp.gmail.com with ESMTPSA id l200sm3331261lfg.33.2017.10.19.13.32.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 13:32:57 -0700 (PDT) From: Oleg Pykhalov References: <87info3xtj.fsf@gmail.com> <87efqa95x4.fsf@fastmail.com> <877ew0rbxc.fsf@gnu.org> Date: Thu, 19 Oct 2017 23:32:56 +0300 In-Reply-To: <877ew0rbxc.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 12 Oct 2017 10:46:23 +0200") Message-ID: <87y3o6yj2f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) 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.5 (/) Hello Ludovic, Apologies for the late reply. ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Marius Bakke skribis: > >> Oleg Pykhalov writes: >> >>> EFI bootloader configuration causes problems to test with 'system vm' >>> before 'reconfigure'. >> >> This is because `guix system vm` is not currently UEFI enabled, so GRUB >> tries to install for a normal PC BIOS. >> >> The fix would be to make the various QEMU invocations in (gnu system vm) >> take a #:firmware parameter that passes something along the lines of >> '-bios #$(file-append ovmf "/share/ovmf/firmware/ovmf_x64.bin")' to the >> QEMU command-line, and update other scripts to take advantage. > > Perhaps by adding it to records we=E2=80=99d make it le= ss > annoying to pass around? Or are there other places that would still > need extra care? > > Another option, in the meantime is this: > > diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm > index 273a895be..f763b430b 100644 > --- a/gnu/system/vm.scm > +++ b/gnu/system/vm.scm > @@ -565,6 +565,14 @@ environment with the store shared with the host. MA= PPINGS is a list of > user-file-systems))) >=20=20 > (operating-system (inherit os) > + > + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware), > + ;; force the traditional i386/BIOS method. > + ;; See . > + (bootloader (bootloader-configuration > + (bootloader grub-bootloader) > + (target "/dev/vda"))) > + > (initrd (lambda (file-systems . rest) > (apply base-initrd file-systems > #:volatile-root? #t > > > That=E2=80=99s what I do manually anyway. > > WDYT? If that=E2=80=99s fine with you, I can commit it. > > Thanks, > Ludo=E2=80=99. Tiny improvement: --8<---------------cut here---------------start------------->8--- natsu@magnolia ~/src/guix$ pre-guix system vm ~/dotfiles/guix/system-magnol= ia.scm Backtrace: 10 (primitive-load "/home/natsu/src/guix/scripts/guix") In guix/ui.scm: 1384:12 9 (run-guix-command _ . _) In ice-9/boot-9.scm: 837:9 8 (catch _ _ # _) 837:9 7 (catch _ _ # =E2=80=A6) In guix/scripts/system.scm: 1099:8 6 (_) 974:6 5 (process-action _ _ _) In guix/store.scm: 1444:24 4 (run-with-store _ _ #:guile-for-build _ #:system _ #:target _) In guix/scripts/system.scm: 987:13 3 (_ _) 706:18 2 (perform-action vm #< kernel: # =E2=80=A6) In gnu/system/vm.scm: 671:31 1 (system-qemu-image/shared-store-script #< ke= rnel=E2=80=A6> =E2=80=A6) 559:4 0 (virtualized-operating-system #< kernel: # =E2=80=A6) gnu/system/vm.scm:559:4: In procedure virtualized-operating-system: gnu/system/vm.scm:559:4: In procedure module-lookup: Unbound variable: grub= -bootloader --8<---------------cut here---------------end--------------->8--- diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index f763b430b..7feb242d5 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -49,7 +49,8 @@ #:use-module (gnu packages admin) =20 #:use-module (gnu bootloader) - #:use-module ((gnu bootloader grub) #:select (grub-mkrescue-bootloader)) + #:use-module ((gnu bootloader grub) #:select (grub-mkrescue-bootloader + grub-bootloader)) #:use-module (gnu system shadow) #:use-module (gnu system pam) #:use-module (gnu system linux-initrd) But I got another issue, not related to Grub. Loops in QEMU: =E2=80=A6 waiting for partition 'magnolia-data' to appear =E2=80=A6 failed to start service 'file-systems' =E2=80=A6 From unknown Fri Aug 15 20:51:02 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: Oleg Pykhalov Subject: bug#28768: closed (Re: bug#28768: guix system vm Failed to install GRUB (EFI)) Message-ID: References: <87a80mj0eq.fsf@gnu.org> <87info3xtj.fsf@gmail.com> X-Gnu-PR-Message: they-closed 28768 X-Gnu-PR-Package: guix Reply-To: 28768@debbugs.gnu.org Date: Thu, 19 Oct 2017 21:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1508448362-2114-1" This is a multi-part message in MIME format... ------------=_1508448362-2114-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28768: guix system vm Failed to install GRUB (EFI) 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 28768@debbugs.gnu.org. --=20 28768: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28768 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1508448362-2114-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28768-done) by debbugs.gnu.org; 19 Oct 2017 21:25:06 +0000 Received: from localhost ([127.0.0.1]:50781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5IJO-0000Wg-7P for submit@debbugs.gnu.org; Thu, 19 Oct 2017 17:25:06 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:39698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5IJM-0000WY-3Y for 28768-done@debbugs.gnu.org; Thu, 19 Oct 2017 17:25:04 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id B8EFCF398; Thu, 19 Oct 2017 23:25:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GjBr_397tBz3; Thu, 19 Oct 2017 23:25:04 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8B11AE4A5; Thu, 19 Oct 2017 23:25:03 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Marius Bakke Subject: Re: bug#28768: guix system vm Failed to install GRUB (EFI) References: <87info3xtj.fsf@gmail.com> <87efqa95x4.fsf@fastmail.com> <877ew0rbxc.fsf@gnu.org> <87infb577p.fsf@fastmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 =?utf-8?Q?Vend=C3=A9miaire?= an 226 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: Thu, 19 Oct 2017 23:25:01 +0200 In-Reply-To: <87infb577p.fsf@fastmail.com> (Marius Bakke's message of "Thu, 19 Oct 2017 20:21:46 +0200") Message-ID: <87a80mj0eq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 28768-done Cc: Oleg Pykhalov , 28768-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.0 (+) Hello! Marius Bakke skribis: > Ludovic Court=C3=A8s writes: [...] >> Another option, in the meantime is this: >> >> diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm >> index 273a895be..f763b430b 100644 >> --- a/gnu/system/vm.scm >> +++ b/gnu/system/vm.scm >> @@ -565,6 +565,14 @@ environment with the store shared with the host. M= APPINGS is a list of >> user-file-systems))) >>=20=20 >> (operating-system (inherit os) >> + >> + ;; XXX: Until we run QEMU with UEFI support (with the OVMF firmware= ), >> + ;; force the traditional i386/BIOS method. >> + ;; See . >> + (bootloader (bootloader-configuration >> + (bootloader grub-bootloader) >> + (target "/dev/vda"))) >> + >> (initrd (lambda (file-systems . rest) >> (apply base-initrd file-systems >> #:volatile-root? #t >> >> That=E2=80=99s what I do manually anyway. >> >> WDYT? If that=E2=80=99s fine with you, I can commit it. > > LGTM! Pushed as 9b396c0cabb086746cbe4ec20d4ae0d79962d758 (along with the missing #:use-module clause that Oleg reported.) I=E2=80=99m closing this bug. We can create a new issue when we add suppor= t for UEFI in VMs. Oleg Pykhalov skribis: > But I got another issue, not related to Grub. > > Loops in QEMU: > > =E2=80=A6 > waiting for partition 'magnolia-data' to appear > =E2=80=A6 > failed to start service 'file-systems' > =E2=80=A6 This is expected: there=E2=80=99s no partition with that label in the VM. You have to comment out the =E2=80=98file-system=E2=80=99 declaration becau= se it doesn=E2=80=99t make sense inside the VM. Perhaps =E2=80=98virtualized-operating-system=E2= =80=99 could do it automatically as well, not sure. HTH, Ludo=E2=80=99. ------------=_1508448362-2114-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Oct 2017 19:50:50 +0000 Received: from localhost ([127.0.0.1]:58667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1e4g-0006Qp-9S for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1e4e-0006Qc-C4 for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1e4Y-00066X-H8 for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1e4Y-00066P-DQ for submit@debbugs.gnu.org; Mon, 09 Oct 2017 15:50:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1e4X-0003Ak-B3 for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1e4S-0005yF-F4 for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:41 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:45514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1e4S-0005wt-7d for bug-guix@gnu.org; Mon, 09 Oct 2017 15:50:36 -0400 Received: by mail-lf0-x232.google.com with SMTP id n69so717905lfn.2 for ; Mon, 09 Oct 2017 12:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=bR5PKAQjT6/i9XrcRV2dg1ErZs7QSPufPnmDa3onMTc=; b=Ri2rPrN8z0rdGfctI00SEm+YodKlW+mbNedJhgnKqyYFfeyKwEYl9ZoDrGPkDa2cTN VZh5R1H8t98R4Wcky5P1JCiKZYcUUXNyLG40BEXOoNgx8zf7+Ynsb/yy36LFlmtdrv4C rMfcms/qKcEIowstVy1B0dV+izFnDeYmh/FNRC4T4dcP0teHTwJF23s1k2S3qJaa6/Xe 7qs74G8uvdKYbGD9l13ttONQeAfYpeZKDG0oUNvqY7bmD/WA0up9xINqprZUfdfg50zs NH1u6gOSiq8Te6GNa1bprcFlwrdtfttFL691ZNcJiJvhwdht/G3vbdsijD/yXUlXzAdl OUEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=bR5PKAQjT6/i9XrcRV2dg1ErZs7QSPufPnmDa3onMTc=; b=IL9Tl1cWLox+cYlUtYNsIAUb549E50lPwTUeUNc0owL0iJLq+/85y1XYB2TgCnmClc Hcxuy6w2wjxuC0C/S1NbQdW8lEoQPcs1GtrfvW6O9Hn1dEORgAVO8K/1z73fY7Dzk8F9 pSgDFkAEocoz94AU9E9ECg+Ctb/iCv678uKsoidGEVck/LNZ7YBS8rzpqx7e3+PwsQBE u9enmgTFBmfhC3s8kNslLCA42fq2y/mM2h3pwxdFs/NSf5pyLTGyHhiAtpSGLlsFbV/Q 08Q8SMHs/cIELQVAEM8kLtpgUHtMEJIbXUt/E6PfgBy6w4vIbR6JCckqDlLkmER0q7AC hKWg== X-Gm-Message-State: AMCzsaWek17ZDY9mk86OOc2UYVkzmjdRi9RZWy4S3A8BRgsqks9W+btQ Ds6hERb8E6ezYOlK0OYVGPsu6A== X-Google-Smtp-Source: AOwi7QD8aQNpT1abGVT/h5d0LYokE2ESRTeytXZS305qRAseCR/fM9ByIuyoFQrQ5Fuk3e8j9Z8BLg== X-Received: by 10.46.21.25 with SMTP id s25mr4899621ljd.71.1507578634471; Mon, 09 Oct 2017 12:50:34 -0700 (PDT) Received: from magnolia ([178.67.252.42]) by smtp.gmail.com with ESMTPSA id e13sm1313610ljb.93.2017.10.09.12.50.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 12:50:33 -0700 (PDT) From: Oleg Pykhalov To: bug-guix@gnu.org Subject: guix system vm Failed to install GRUB (EFI) Date: Mon, 09 Oct 2017 22:50:32 +0300 Message-ID: <87info3xtj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) Hello Guix, EFI bootloader configuration causes problems to test with 'system vm' before 'reconfigure'. To reproduce it replace default bootloader expression with following snippet in gnu/system/examples/vm-image.tmpl (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi"))) --8<---------------cut here---------------start------------->8--- [ 0.909226] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null) installing bootloader... /gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/sbin/grub-install: error: /gnu/store/b1kdjsmwkphwh06gcm2ym0d0zh5wf4gc-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory. ERROR: In procedure scm-error: ERROR: failed to install GRUB (EFI) Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 2.2.2 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> [ 1.344109] tsc: Refined TSC clocksource calibration: 3392.250 MHz [ 1.344677] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x30e5b54dbe0, max_idle_ns: 440795272496 ns C-c C-c --8<---------------cut here---------------end--------------->8--- ------------=_1508448362-2114-1--