From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GPFiFkeevGaZZAAA62LTzQ:P1 (envelope-from ) for ; Wed, 14 Aug 2024 12:08:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GPFiFkeevGaZZAAA62LTzQ (envelope-from ) for ; Wed, 14 Aug 2024 14:08:39 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723637319; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=psJUCKAHyGvOcKbkGUPejHB+GFpPabO0JBHDYGQfWv0=; b=WEdHA38lTx4oi67/CPbG/paZkWXzCQl4Qng+zq7YY2QPj+LONixznrQjg4odbRLzErfv8r F6/UtLR0iJwqMqp7DY0Id5jtmk0mAuiJ3u4JbOo6l6sYU3pa21hPYqdm97H9crUBlyTsID Pnb2VlrPSCkDgcrdVjf/7hsp5/n+vwfLf/H6prB7Mxtut+aXR5EwS78DCfVwqY4ibAs8Dj WSFcobniADVHzGg5ROilUXGQTqnp/Q6qcyO0nBf1jXUz4Tu5NtLPhYZoMeUwT/0KIy58Eh LQiwnJiUHa72O/2yaAz9vpExtf6ZowadzxC/8qFPUvhU1JBPSmsxH8b72qBihQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723637319; a=rsa-sha256; cv=none; b=Y76hH8Kyys/kbNEIhsrgGfOsE2rM3Bdq+lJaWt8UyeKO4O5+irlC41yy76btzhTMu6BxdK wprUnuOOYwCugtR7RtqpQIeUDDQ8hBHIBd0j5/0+LdSGKdCZQ+HSC2A+D0ATuHCUikfNqt wYrAs3PBZS/sZhsAn6OMvYbid7VbFCC4Xpbw2QOGe1zc/X8GNh0Ff9xrx2AM9qgCtQ+IO1 wsWBHQVl1SKYYgWn275Dv5vJXA15hTWNR+F24f7xFZatOm8Ba/l9ZqPwumXgCYNhIfzMsb k9vXKXoTcPsAycRHoI6ndvBApe5FdMHLn4ReSJo5UtY6g2bg/KwkVgbjFo69kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" 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 23E6C62A0D for ; Wed, 14 Aug 2024 14:08:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seCnI-0007ZU-6O; Wed, 14 Aug 2024 08:08:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdmmQ-0000Up-33 for help-guix@gnu.org; Tue, 13 Aug 2024 04:21:22 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdmmN-0004rX-OL for help-guix@gnu.org; Tue, 13 Aug 2024 04:21:21 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sdmmI-00DQ8I-DZ for help-guix@gnu.org; Tue, 13 Aug 2024 10:21:14 +0200 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sdmmI-00018V-24 for help-guix@gnu.org; Tue, 13 Aug 2024 10:21:14 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (899476)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1sdmlz-009WYB-LM for help-guix@gnu.org; Tue, 13 Aug 2024 10:20:55 +0200 From: James Geddes Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Guix under QEMU on Aarch64? Message-Id: <8175855D-25D3-4DAF-ADC2-AA8EB2158F02@jamesgeddes.org> Date: Tue, 13 Aug 2024 09:20:24 +0100 To: help-guix@gnu.org X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2a0c:5a00:149::25; envelope-from=james@jamesgeddes.org; helo=mailtransmit04.runbox.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 14 Aug 2024 08:07:50 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.56 X-Spam-Score: -1.56 X-Migadu-Queue-Id: 23E6C62A0D X-Migadu-Scanner: mx11.migadu.com X-TUID: li/Pi8UFA11n I'd like to run Guix (the distribution) under QEMU on Aarch64 but I am = really struggling to boot. I wonder if anyone has succeeded and could = offer advice? I *can* run Ubuntu (under QEMU on Aarch64); and in Ubuntu I have = installed Guix as a package manager. That all works (very) nicely. In Ubuntu-under-qemu I built a CD installer with `guix system image = --image-type=3Diso9660 install.scm`, and created a "blank" drive using = `qemu-img`. I run the installer (back on the native side) with: ``` =20 qemu-system-aarch64 \ -nographic \ -cpu host -machine virt,accel=3Dhvf \ -smp 4 -m 4G \ -drive if=3Dvirtio,file=3Dguix.iso,media=3Dcdrom \ -drive if=3Dvirtio,file=3Dguix.qcow2 \ -device virtio-rng-pci \ -bios edk2-aarch64-code.fd ``` That gets as far as the menu asking to install Guix; and then gives this = error: ``` error: plain image kernel not supported - rebuild with = CONFIG_(U)EFI_STUB enabled. error: you need to load the kernel first. ``` So! I have three questions! 1. Should I, in fact, attempt to rebuild the kernel with CONFIG_EFI_STUB = enabled? If so, is there anything I should be aware of (noting I am new = to Guix and everything I knew about building kernels is 25 years out of = date)?=20 2. Or should I try to make QEMU use U-boot? (Which I understand is = perhaps more common for aarch64 systems?) 3. Or is all this a red herring? =20 Many thanks for any advice! (NB: I have tried a few other things: `guix system init ... config.scm` = to a new drive; and `guix system image --image-type=3Dqcow2 config.scm` = (which fails for other reasons I don't understand).)=20 James James Geddes GitHub: triangle-man