From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CEdoKh8cqWEu9wAAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 20:18:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sH4KJh8cqWEgKwAAB5/wlQ (envelope-from ) for ; Thu, 02 Dec 2021 19:18:55 +0000 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 5D1728B9C for ; Thu, 2 Dec 2021 20:18:55 +0100 (CET) Received: from localhost ([::1]:48242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msrbY-00039u-EV for larch@yhetil.org; Thu, 02 Dec 2021 14:18:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msrTy-0000TZ-Aj for guix-patches@gnu.org; Thu, 02 Dec 2021 14:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msrTy-0006cD-1u for guix-patches@gnu.org; Thu, 02 Dec 2021 14:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1msrTx-00078g-To for guix-patches@gnu.org; Thu, 02 Dec 2021 14:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52204] [PATCH 2/2] doc: Document guix system --no-graphic. References: <20211130191312.32131-1-attila@lendvai.name> In-Reply-To: <20211130191312.32131-1-attila@lendvai.name> Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Dec 2021 19:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52204 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52204@debbugs.gnu.org Cc: Attila Lendvai Received: via spool by 52204-submit@debbugs.gnu.org id=B52204.163847221627393 (code B ref 52204); Thu, 02 Dec 2021 19:11:01 +0000 Received: (at 52204) by debbugs.gnu.org; 2 Dec 2021 19:10:16 +0000 Received: from localhost ([127.0.0.1]:49288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msrTE-00077l-C4 for submit@debbugs.gnu.org; Thu, 02 Dec 2021 14:10:16 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:50753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msrTC-00077T-Ii for 52204@debbugs.gnu.org; Thu, 02 Dec 2021 14:10:15 -0500 Received: by mail-wm1-f49.google.com with SMTP id 133so614650wme.0 for <52204@debbugs.gnu.org>; Thu, 02 Dec 2021 11:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+9JrFwybFu6UpO7tovxD8ZoYZ1WihZRkPTzzSj7nngc=; b=f+Q9AC63FQHgsJzT0vlIrM1o7LWLWhNIdos3xSthFy/Vgcfzcyy9+hYts+mgacfFYQ 30sGLyFPDcCdvUnbNZzZ3yqH8MbU4Cm6T9uErvw8DAlWi9VxCk8YAVRt9OeIakM+dE9n Equ7jSTGBdsC4kmrWq5iMQyCTfl/SlmtLGQoJIWo6JfwBR6qmY/usebF97gqPApr0ATn vWJEwbeeI5/eYNLZd/zrmoU8o8urs7pH5nIxAqpfTR5vbolBjPcvT/bOYiU9hMjx3li1 1PMAswyWDjiTLSHYydam7oPYy3pdCI/iHDlW9l+18mhmdKBqqWHTLWnJOgNp4xQzQNV7 X4aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=+9JrFwybFu6UpO7tovxD8ZoYZ1WihZRkPTzzSj7nngc=; b=FcUjakpWQdGBDYjYRR6woMUINfVNp5vNyNrdUMTK/TV8tivccimOFPTbc8v9vx+CBP CkMT6RNGpmanTXrYHp8Y0V7aJ2axf7N45hlcvjfd+Y60YIHWeRDPPv3M2X8on4a9UhSG UuFdLdfSPkCSMeSoTR+nkxp8JuOkNm3OE43j3Bhi2D48XPhKISjhWrVZW6e147EKjTHJ MWphmAtRyxUuDBLf1ELo9AnXMwkdbAqJ7r+qj0fEq3+btc47cowFJ6h+zlJ7Vp/RJJXc gPR/CY5qMFk0kdXVlpBNjgnbkeIMDuJpY/LFtbgC/ax6vTv2EuwbGVMNP0N13HSUJCZ5 /eSA== X-Gm-Message-State: AOAM530qQ/vu5cAFYFHmkRqM9Ox7HjSSejlbbdRqhNpaJfLwjx7NUSUR fw8IDcRrwze7JEhJwufkZbdXzqMjlkcOSQ== X-Google-Smtp-Source: ABdhPJyJRA8RUkHzTS8v/fHvTPCG6t8ALvHQBYwoRsKIcKMoIl7x2RDlJ0sJWX9IDE7ayw6R9IrnPg== X-Received: by 2002:a05:600c:1083:: with SMTP id e3mr8507903wmd.167.1638472208553; Thu, 02 Dec 2021 11:10:08 -0800 (PST) Received: from lelap.lan (catv-89-132-208-37.catv.broadband.hu. [89.132.208.37]) by smtp.gmail.com with ESMTPSA id l2sm3092671wmq.42.2021.12.02.11.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 11:10:08 -0800 (PST) From: Attila Lendvai Date: Thu, 2 Dec 2021 20:09:42 +0100 Message-Id: <20211202190941.27236-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1638472735; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=+9JrFwybFu6UpO7tovxD8ZoYZ1WihZRkPTzzSj7nngc=; b=m6GWQWwKAP1YPkkP/id3oZmCYIUuuou3KNCnh9+c/2Y/oc1hAoDoXyMmlXQRrtV/xSF9D1 OgiBJ0Kc4TYMxppXSB6jUhHDwg4BrIRT+fsvom3o84dnyw6qPZDww6LyRkFLEKj3g8QTZ7 Z4kY9gEsk6FPFs3EUSib8UBBd6jNJXdhQ9Is2OKPwr8QGWiNXST0AvS/Sdx5RPJAHD7rES m74ZO3OI4cGvxZ/mmjebuydWvdF7wQISdCGJjnhqW+JHXNxSHXQpQStWyxhZULnxNYM6Dh m1xq1E/yfZRKrS9gcE9NWqkzeYV0/GohpHGf1UwqU26tmh0DDk4QIFr1KGCtrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638472735; a=rsa-sha256; cv=none; b=b3p6+uTFi0FC96dsUnw7WFNt65JUT24QAXmHvzKUe+xl7AGZgqcbXQwHPajHxrxLgaVwr6 HDo3uOIATXV9cEV28R9aZQY2bZOimF+PVY3lcvQNtMgBaz17MbE8zGebCu04lE+tjjzKWi 5zggHmzYEogSbSK5LZPzJYtAuKkED3k8typ+t90T0G5MdianbHWiqm1CFYZfYeKLtziBJk KixeoE2K+tQ+NroM2e7GYnNVbfNyvvyHeQli9glp90sDbSQWEtfPjjDnCN7O9QyGgKLzfi EKFQ6wGCxoENtU4UWmbHqztMk4NMkcNrH+RxI1P4hMoQz0crfYQhltBQ9M2wWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f+Q9AC63; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f+Q9AC63; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5D1728B9C X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: LhxTj+DY6p11 * doc/guix.texi (Invoking guix system): Add example to combine guix system and invoking the vm start script into one command. Split the description of the various options into separate paragraphs. Adde a paragraph to describe --no-graphic. --- doc/guix.texi | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2a166e3a89..ca670f8971 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -34500,8 +34500,8 @@ passed. @cindex virtual machine @cindex VM @anchor{guix system vm} -Build a virtual machine that contains the operating system declared in -@var{file}, and return a script to run that virtual machine (VM). +Build a virtual machine (VM) that contains the operating system declared +in @var{file}, and return a script to run that VM. @quotation Note The @code{vm} action and others below @@ -34520,6 +34520,12 @@ emulated machine: $ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci @end example +It's possible to combine the two steps into one: + +@example +$ $(guix system vm my-config.scm) -m 1024 +@end example + The VM shares its store with the host system. Additional file systems can be shared between the host and the VM using @@ -34543,8 +34549,17 @@ store of the host can then be mounted. The @option{--full-boot} option forces a complete boot sequence, starting with the bootloader. This requires more disk space since a root image containing at least the kernel, initrd, and bootloader data files must -be created. The @option{--image-size} option can be used to specify the -size of the image. +be created. + +The @option{--image-size} option can be used to specify the size of the +image. + +The @option{--no-graphic} option will instruct @command{guix system} to +spawn a headless VM that will use the invoking tty for IO. Among other +things, this enables copy-pasting, and scrollback. Use the @kbd{ctrl-a} +prefix to issue QEMU commands; e.g. @kbd{ctrl-a h} prints a help, +@kbd{ctrl-a x} quits the VM, and @kbd{ctrl-a c} switches between the +QEMU monitor and the VM. @cindex System images, creation in various formats @cindex Creating system images in various formats -- 2.33.0