From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EBYLENp+kWNfkAAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 07:06:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cJUIENp+kWP5ygAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 07:06:18 +0100 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 2EF9838682 for ; Thu, 8 Dec 2022 07:06:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3A2q-00069k-CG; Thu, 08 Dec 2022 01:06:08 -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 1p3A2m-00067y-Qg for bug-guix@gnu.org; Thu, 08 Dec 2022 01:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3A2k-00089Z-75 for bug-guix@gnu.org; Thu, 08 Dec 2022 01:06:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3A2k-0004A5-2F for bug-guix@gnu.org; Thu, 08 Dec 2022 01:06:02 -0500 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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670479577; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aTHYuIIIX48NI4m/AGgFfbdZ+iEuSk1nQ78eDDviyI0=; b=mG2iX9aVIghMnJzQr5veMWXhAYJxjqC5WQ4F3BO2/Xhr8C1E6G3UYBlrIeVFQOWFujMf2X +cr1/lxA7O55avFKaaQJXnge9gvlWGUHpriaijWW1w3FFPeXnOQrSnD4Qu3LWZ2Dk4HRhF a3suFVYXmtWwePHlSYx/UW0aRj+H8DIauJd0W5z6SaiNYFKF5CObJdGQWk5f2AnimEpk9s 9ufEkWQdE3+E7mx6/LYh23oEYgGWikQvaL6xQBvEuPwirhmdEvIh0lVK4EZPWGiuQFevDs WLUf11EJ9MIikeyOa541SOulOTmtA1yz6rUmBw5tqdNDZUojYRBAki0Hv285aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670479577; a=rsa-sha256; cv=none; b=r2Yasvuj2tVchV7IQVLRES2p6MkUzP42YXAjxDh3YP0CcaSyQwQbyo5WjOo/c96HOBBSrZ Qk9tFRzuLbAzdaK9Etyt1ylb7hRiRmJc/4AFNQ0su8CFxnKV5FYl/mH9lDglYM93lsZK4e PwIRVsJ1Pu05x1BUj4g16gHWfJtkWoL13XSlQTK6VCK/3GRpA9nvYmQujUz1fskPiMDRkk R/YVCtbQbgME2CZKKj4CV3iP+weerbLjWFK9FPbX/di4HSNj1Hh5S536C+lPEFwZujbTlT hZNhEjDmDMDBZhgoXfLGlQGY4pWWjuQ8n8iZ5bktNKOHd4qI9Z8Ldgwit3zgIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=b0QJUPmQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=b0QJUPmQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2EF9838682 X-Spam-Score: -4.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: ozxE40s8yMvA 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!