From unknown Thu Jun 19 14:03:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61986 <61986@debbugs.gnu.org> To: bug#61986 <61986@debbugs.gnu.org> Subject: Status: Installing qemu-binfmt with support for emulating the host architecture breaks everything Reply-To: bug#61986 <61986@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:04 +0000 retitle 61986 Installing qemu-binfmt with support for emulating the host ar= chitecture breaks everything reassign 61986 guix submitter 61986 "J. Sims" severity 61986 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 05 13:33:27 2023 Received: (at submit) by debbugs.gnu.org; 5 Mar 2023 18:33:27 +0000 Received: from localhost ([127.0.0.1]:40627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYtAl-0000A9-EZ for submit@debbugs.gnu.org; Sun, 05 Mar 2023 13:33:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:60470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYtAj-0000A0-5B for submit@debbugs.gnu.org; Sun, 05 Mar 2023 13:33:25 -0500 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 1pYtAi-0001YR-R7 for bug-guix@gnu.org; Sun, 05 Mar 2023 13:33:24 -0500 Received: from mail-40141.protonmail.ch ([185.70.40.141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYtAh-0002OL-33 for bug-guix@gnu.org; Sun, 05 Mar 2023 13:33:24 -0500 Date: Sun, 05 Mar 2023 18:33:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1678041193; x=1678300393; bh=lwMqcJFoXwaoijwo0mZhcR0Y/p8cA6ts/++UFlAbeEQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Y/mYVB7jXXprYHu8I1rwpLpv9SZIXlX9maSpfrOpciIdn+cSVSVfvh6VdX4s7MBp4 jeCGXtfS5GbJQxVRuu3eLwlu22NxayudSZs68mH2sH82teNqrOji+0OXKkEcWzzXA8 tgBYSlKLDWts/i3zT9l4JYsMLysAjkW6uuwVsdvfc3Rr+qG6eF4tcPz2GPCSLJvOUx e/f2ZGiLrfVoCn63Qc73NBKljh8I8hBPYNGFcEXjKULo8nbM7zfsn8tQPWVQvx4Z1x XRpUHsExJMVZPValGIv+lw8Ue++7uUkb5PC8Dp/GUjYN3Q5rFCe6qL9mlKwDSSyQdj Wb9vYM4aU0lLw== To: "bug-guix@gnu.org" From: "J. Sims" Subject: Installing qemu-binfmt with support for emulating the host architecture breaks everything Message-ID: Feedback-ID: 12133992:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.141; envelope-from=jtsims@protonmail.com; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hey y'all, I recently setup virtualization on my Guix machine (both libvirt and qemu, = for different purposes). While configuring libvirt (via virt-manager), I go= t a bit confused about how to make things work and also installed qemu-binf= mt for x86_64, the host architecture. Upon my next reboot, however, I reach= ed a fully-booted TTY and was unable to do anything else. GDM was not launc= hing, and if I attempted to login to the TTY itself, I was greeted by an er= ror message like the following: "cannot execute /gnu/store/path-to-something/bin/thing: Too many layers of = symlinks" After some misadventures, I have finally narrowed down that the cause of th= is issue was having x86_64 in the list of qemu-binfmt-configuration platfor= ms while running on x86_64. I assume that including the host architecture i= n the list of platforms for qemu-binfmt will do this regardless of architec= ture, but cannot currently test this. Here's what I believe to be a minimum reproducible example for x86_64: ``` (operating-system ... (services (cons* (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms (lookup-qemu-platforms "x86_64")))) ...) ...) ``` Good luck, Juli From debbugs-submit-bounces@debbugs.gnu.org Thu May 23 14:21:28 2024 Received: (at 61986) by debbugs.gnu.org; 23 May 2024 18:21:28 +0000 Received: from localhost ([127.0.0.1]:60310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAD4C-0005id-IG for submit@debbugs.gnu.org; Thu, 23 May 2024 14:21:28 -0400 Received: from mail-108-mta217.mxroute.com ([136.175.108.217]:44731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAD4A-0005iV-7l for 61986@debbugs.gnu.org; Thu, 23 May 2024 14:21:27 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta217.mxroute.com (ZoneMTA) with ESMTPSA id 18fa6af9787000efce.001 for <61986@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 23 May 2024 18:21:16 +0000 X-Zone-Loop: ab4c6957f3e142f89c4793255923d95c137f1fc670d8 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qUg1VPOkzydpvIqAX/KUYCqMGyxuqf0gQDHbPIrB040=; b=j9+y6WgOPxAA0SHpqWron3ehS4 lRePAkwknTV0VcmrhtVIGAkHpfdiVl5n20WwuLTlfrJHLanDJsGCTGARNcrukhWLIgxh+p2TM7lph CcAvlkrLVAT2Ugs6ZLBZqMZFcZU3y3glX5vbu08rHVNhkCH1QOSqMAG8sbVTbNJVfdGpDs4yKVZnf WZJMtZ+Q4UNTEbbBjWqhfXsVbFIsyW0N4jxit+IxfKUk/Jew4AAIKj/vawRDV0gPHxsxdE7Wis28h kTY/AcxeXU1p0p+S4tNiDcLiWON5M8Im06UVF5eHGSpj7YESsoitriIlhx8bE2XtyEY+F2O1bN+mp kvGnKXTw==; From: Richard Sent To: 61986@debbugs.gnu.org Subject: qemu-binfmt-service-type should protect against adding platforms for target system Date: Thu, 23 May 2024 14:21:06 -0400 Message-ID: <87ttiov17x.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61986 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 (-) Hi Guix! I can confirm that this issue is still around and still causing headaches! ;) It's definitely a problem on the aarch64 architecture. It's probably safe to say it's a problem on every platform. Given how cryptic this error is and how easily it can sneak up in more complicated system configurations ([1] and [2]), we should capture this mistake sometime during the build process. Even if putting the target system as a QEMU emulation platform doesn't make sense, a broken system with no helpful diagnostics isn't a proportional consequence. [1]: https://lists.gnu.org/archive/html/help-guix/2023-03/msg00121.html [2]: https://lists.gnu.org/archive/html/help-guix/2024-05/msg00160.html -- Take it easy, Richard Sent Making my computer weirder one commit at a time.