From unknown Tue Jun 17 01:44:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59846: "Running Guix in a Virtual Machine" documentation unclear/incomplete/wrong Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Dec 2022 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59846 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59846@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16702777738112 (code B ref -1); Mon, 05 Dec 2022 22:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Dec 2022 22:02:53 +0000 Received: from localhost ([127.0.0.1]:38660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2JY5-00026m-6f for submit@debbugs.gnu.org; Mon, 05 Dec 2022 17:02:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:45088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2JY3-00026f-Ga for submit@debbugs.gnu.org; Mon, 05 Dec 2022 17:02:52 -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 1p2JY3-0001We-8o for bug-guix@gnu.org; Mon, 05 Dec 2022 17:02:51 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2JY1-0000iU-2z for bug-guix@gnu.org; Mon, 05 Dec 2022 17:02:51 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 08B885C0102 for ; Mon, 5 Dec 2022 17:02:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Dec 2022 17:02:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1670277765; x=1670364165; bh=+I+3PbWsKH IMtqLupyonFN8iVRSURZ2x5SJPUytuzww=; b=UFw4dxHAkIABnymEVR3E7j9x/Y 6tjEGqjDPG6LZo4JYEA7FGxo1jizTmoPAzUaQlpP/piGNVuTumButyvO7G6Z2Vcg 8++sdGkdQLuQTiKaz2ScMFjGGuaiXbXeRQcNI+P9eSuNagBp4dDY1zyS4bIl93hu jGmGKUcLgcETT6PMR6rqJW3+alPCBZVqCdHJHPKxEBDve06kOPP1kjHAEvKFr2mM l6dq2e/DNpSwK0qwrK32bRXJQu7Sh7Z64cqI5nVTrV1TU+qFxnV7tYRswTNqHkBd ihgCwXmZAwafd3x3WXlrAfAbmifmLusWzEUnR7CyP9u3OrNpkxtSCWv0ANug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1670277765; x=1670364165; bh=+I+3PbWsKHIMtqLupyonFN8iVRSU RZ2x5SJPUytuzww=; b=YzC/nTekeznGuVILgjLbNu80Gqy6R2zQ5DfH/u1ssq5u Rcw9oe1zAc6zGqaFY76D8tKy/MFyEXSdg9411kmg9RJzcVpe9uURV7x8w3mecrgG i0pEh3hDPqdgWwycOQ4dje2wiSs7int8mWt89FFsZMNx9wrmeFy6/kcZpq25GY84 yJvOFceN4wT+s6JvXqOtDMggd6cGd56VgHEBsPIEiHSkXqpsgreeYH3uzgrg/RcQ FOleD8iTNERUFCLvvXy3ohPC359OWWlomaQ3Z07TFmqHBFgKED4fRJwl0ONvMLUJ IDwhjne+P4TaRCOTdTs5nTF2SxOaMT4xNDA39rWo8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeggdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgfgsehtqhertd dtreejnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehrvghtrhhoshhpvggtrdht vheqnecuggftrfgrthhtvghrnhepleeiieetjeefvefgueeileelvdejheehueduteevue efieffledtteegvdetgfeunecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesrhgvthhrohhsph gvtgdrthhv X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 5 Dec 2022 17:02:44 -0500 (EST) User-agent: mu4e 1.4.15; emacs 29.0.50 From: Ian Eure Date: Mon, 05 Dec 2022 14:02:43 -0800 Message-ID: <87ilipmruk.fsf@retrospec.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.28; envelope-from=ian@retrospec.tv; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.6 (-) 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.6 (--) I=E2=80=99m trying to explore Guix System by running it in a VM on my=20 computer which runs Debian. I=E2=80=99m interested in some of the Guix=20 ideas, but not ready to do a bare-metal install. I found the download page[1] and got a copy of the QEMU image,=20 then clicked "Installation instructions"[2]. These instructions=20 didn=E2=80=99t work, because they=E2=80=99re incomplete and/or unclear and/= or=20 wrong and/or not really installation instructions in the way one=20 might assume. Since I don=E2=80=99t really know anything about Guix=20 (which is why I=E2=80=99m reading the documentation and test driving it in= =20 a VM), I=E2=80=99m not sure which one-or-more of these it may be. Specifically: > To enable SSH inside a VM you need to add an SSH server like=20 > openssh-service-type to your VM (see openssh-service-type). The documentation doesn=E2=80=99t say *how* to do that. The=20 openssh-service-type link[3] takes me to a large page of code=20 documentation for every possible networking service, instead of=20 the openssh-service-type one specifically. This documentation=20 describes *what* the service type and its many configuration=20 options is, but is silent on *how* to make use of it. It continues: > In addition you need to forward the SSH port, 22 by default, to=20 > the host. You can do this with > $(guix system vm config.scm) -nic=20 > user,model=3Dvirtio-net-pci,hostfwd=3Dtcp::10022-:22 I=E2=80=99m really not sure what this is supposed to be doing. It can=E2= =80=99t=20 run on my Debian host, since there=E2=80=99s no guix command. It errors=20 inside the VM, since it can=E2=80=99t find a config.scm file; and I don=E2= =80=99t=20 see an obvious config.scm file anywhere inside the VM that it=20 might be looking for. I *suspect* that this documentation is actually targeted at=20 running a Guix System VM on an existing Guix host. Which is a=20 chicken-and-egg problem, if I=E2=80=99ve already installed Guix, I don=E2= =80=99t=20 need to follow instructions to install it. [1]: https://guix.gnu.org/en/download/ [2]:=20 https://guix.gnu.org/manual/en/html_node/Running-Guix-in-a-VM.html [3]:=20 https://guix.gnu.org/manual/en/html_node/Networking-Services.html From unknown Tue Jun 17 01:44:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59846: "Running Guix in a Virtual Machine" documentation unclear/incomplete/wrong References: <87ilipmruk.fsf@retrospec.tv> In-Reply-To: <87ilipmruk.fsf@retrospec.tv> Resent-From: zamfofex Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Dec 2022 12:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59846 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "59846@debbugs.gnu.org" <59846@debbugs.gnu.org> Received: via spool by 59846-submit@debbugs.gnu.org id=B59846.167032871026535 (code B ref 59846); Tue, 06 Dec 2022 12:12:02 +0000 Received: (at 59846) by debbugs.gnu.org; 6 Dec 2022 12:11:50 +0000 Received: from localhost ([127.0.0.1]:42612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Wne-0006tv-6o for submit@debbugs.gnu.org; Tue, 06 Dec 2022 07:11:50 -0500 Received: from mta-09-3.privateemail.com ([68.65.122.19]:19194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2WnZ-0006tp-7u for 59846@debbugs.gnu.org; Tue, 06 Dec 2022 07:11:48 -0500 Received: from mta-09.privateemail.com (localhost [127.0.0.1]) by mta-09.privateemail.com (Postfix) with ESMTP id 6030418000A7 for <59846@debbugs.gnu.org>; Tue, 6 Dec 2022 07:11:38 -0500 (EST) Received: from APP-12 (unknown [10.50.14.212]) by mta-09.privateemail.com (Postfix) with ESMTPA id 38F8318000A2 for <59846@debbugs.gnu.org>; Tue, 6 Dec 2022 07:11:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=twdb.moe; s=default; t=1670328698; bh=r2G3yQTL1OXfCjtv44hE/5xIieqIbhGQ/ZpUrB8VDvE=; h=Date:From:To:Subject:From; b=iuochYbDwLnFD0oqF8mfm0MbL9TZNbIwGicP67ZwIpf6qmQ+KTp0g3EbshQt+oFVJ lT+1OyokG3MjHAnUkevA7dYueWViR2VYaAm289HSjmOz+NbW0OyC8eDQlrIsVFW3a/ Sl0NbN3f9x0dMRfzxmdsWz0nJYF45WT+G/rE2TPAe9u7PaJqm2V6X2QhpWQXpUKnln Lu9heYb9XBHMQIhypC7Nrw61OtqKsGHRMcb1/lL2sW1YpvLlVKenGJP00L63L1qycw RlEjeQwV+a3/MW+iEVVhbkAj97oW4hdgqMh4Pxn2/XIl8JF4Kg70b6BOnerrD2dkpV pnNofgCumLFVw== Date: Tue, 6 Dec 2022 09:11:38 -0300 (BRT) From: zamfofex Message-ID: <884981701.1707758.1670328698183@privateemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev30 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP 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 (-) Hello! As far as I understand, the QEMU image is not meant to be used for i= nstalling Guix System, but rather just trying it out. You should instead use the =E2=80=9CGNU Guix Sytem on Linux=E2=80=9D image = from Here are some quick steps to get started: - - - - - % wget -Oguix.iso https://ci.guix.gnu.org/search/latest/ISO-9660?query=3Dsp= ec:images+status:success+system:x86_64-linux+image.iso % qemu-img create -f qcow2 guix.qcow2 500G % qemu-system-x86_64 -enable-kvm -m 2G -nic user -cdrom guix.iso guix.qcow2 - - - - - You can then proceed with the installation using the pseudo=E2=80=90graphic= al installer, then later use the installed system by using: - - - - - % qemu-system-x86_64 -enable-kvm -m 2G -nic user guix.qcow2 - - - - - Here is a short video I have coincidentally recorded another day: (Though I might remove it at som= e point.) Here is an even shorter video showing basically the same thing, but that is= likely more permanent: From unknown Tue Jun 17 01:44:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59846: "Running Guix in a Virtual Machine" documentation unclear/incomplete/wrong Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Dec 2022 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59846 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ian Eure Cc: 59846@debbugs.gnu.org Received: via spool by 59846-submit@debbugs.gnu.org id=B59846.167047955915990 (code B ref 59846); Thu, 08 Dec 2022 06:06:02 +0000 Received: (at 59846) by debbugs.gnu.org; 8 Dec 2022 06:05:59 +0000 Received: from localhost ([127.0.0.1]:54601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3A2g-00049q-U9 for submit@debbugs.gnu.org; Thu, 08 Dec 2022 01:05:59 -0500 Received: from mail.envs.net ([5.199.136.28]:37638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3A2e-00049k-HC for 59846@debbugs.gnu.org; Thu, 08 Dec 2022 01:05:58 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id EAB0738A2333; Thu, 8 Dec 2022 06:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1670479553; bh=aTHYuIIIX48NI4m/AGgFfbdZ+iEuSk1nQ78eDDviyI0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=b0QJUPmQNR6NVxPiRWVDz+vh0aNZjR+5b+KNuYMFo+XEjUc+jIdP1ET71w4LZZdmm 8P5ySO5sPA4AmRbuFNZ14+Io4qN39vRU/z/mrb0O67UuMhdL93m+nMeL/7Jd5ng+/i EMLlI7IRi08IlLqpMMCo0xGsiWJRWR5FXaHDy2nyOBxxx8vyFWbhYq+kAaSdrTjQtl /9Gq0kFPMAnkEPcgiFvYNcdfABiPNDyzXQ04q+00Gv2rWuwQ6rw1PFbrJFJ/q+OmJP yZ3Xdm/M0zxmjA1MtVhZBLglnd20PTfd5MUpV8oUChHTxP+dZWsbW0K66k6O0PD+sK H7B54j2F/qCRfNJBgs7Dymsf0xUkoOgJueJ7n+AHofkPYM7KKMXM5xMAXG8jwEPGos 2tNKtCmn6zvSiSGj943kCbi7Rx8GVeORjgSnjz8E570v2EhvmimRztriYtAcd2kbh8 e3wtC42fX1h+A+LZJf0C/TLRNaxCkGF9T2MzWIIerx3vsyKGjAtOp4jy1IPYn232QV 1KsfYDMU9DV4tcCTIMw9+U+m6byLlONBGBK6JLkJK1HXyO+HpgF0drMLlHeZdwS64y dx1NHVZ9yDbaC5nKGARBAhDzUgVG3qpmwrbqJC11C9cQ1JBz4EvtvAYlHDG0CMK69n WAZNUUACq/GIrE93smqFJ/IE= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lsosNpRFDOlr; Thu, 8 Dec 2022 06:05:49 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Thu, 8 Dec 2022 06:05:49 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 6a56f553; Thu, 8 Dec 2022 06:06:18 +0000 (UTC) From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <87ilipmruk.fsf@retrospec.tv> Date: Thu, 08 Dec 2022 14:06:18 +0800 In-Reply-To: <87ilipmruk.fsf@retrospec.tv> (Ian Eure's message of "Mon, 05 Dec 2022 14:02:43 -0800") Message-ID: <874ju64eg5.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (-) Ian Eure writes: > I=E2=80=99m trying to explore Guix System by running it in a VM on my com= puter > which runs Debian. I=E2=80=99m interested in some of the Guix ideas, but= not > ready to do a bare-metal install. Hello! > > I found the download page[1] and got a copy of the QEMU image, then > clicked "Installation instructions"[2]. These instructions didn=E2=80=99t > work, because they=E2=80=99re incomplete and/or unclear and/or wrong and/= or > not really installation instructions in the way one might assume. > Since I don=E2=80=99t really know anything about Guix (which is why I=E2= =80=99m > reading the documentation and test driving it in a VM), I=E2=80=99m not s= ure > which one-or-more of these it may be. Sorry for the not very helpful documentation, I'd say write good documentation is very hard... > > Specifically: > >> To enable SSH inside a VM you need to add an SSH server like >> openssh-service-type to your VM (see openssh-service-type). > > The documentation doesn=E2=80=99t say *how* to do that. The > openssh-service-type link[3] takes me to a large page of code > documentation for every possible networking service, instead of the > openssh-service-type one specifically. This documentation describes > *what* the service type and its many configuration options is, but is > silent on *how* to make use of it. This openssh-service-type should be added into the system configuration file, it's /run/current-system/configuration.scm in the pre-built qemu image or the file passed to 'guix system vm-image' when built your own image. The configuration file is a scheme (guile) file, the detail is in the section "10.1 Using the configuration System". > > It continues: > >> In addition you need to forward the SSH port, 22 by default, to the >> host. You can do this with >> $(guix system vm config.scm) -nic >> user,model=3Dvirtio-net-pci,hostfwd=3Dtcp::10022-:22 > > I=E2=80=99m really not sure what this is supposed to be doing. It can=E2= =80=99t run > on my Debian host, since there=E2=80=99s no guix command. It errors insi= de > the VM, since it can=E2=80=99t find a config.scm file; and I don=E2=80=99= t see an > obvious config.scm file anywhere inside the VM that it might be > looking for. > > I *suspect* that this documentation is actually targeted at running a > Guix System VM on an existing Guix host. Which is a chicken-and-egg > problem, if I=E2=80=99ve already installed Guix, I don=E2=80=99t need to = follow > instructions to install it. Well this 10.16 target both running a pre-built qcow guix system image and running a 'guix system vm' built one. But it's not self contained, as the service things lacking commands for the former as you reported, and the later case assume you already have guix installed (not the guix system though). Hope it helps!