From unknown Sat Jun 21 05:01: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#52204 <52204@debbugs.gnu.org> To: bug#52204 <52204@debbugs.gnu.org> Subject: Status: [PATCH] guix system vm: Add --no-graphic CLI argument. Reply-To: bug#52204 <52204@debbugs.gnu.org> Date: Sat, 21 Jun 2025 12:01:04 +0000 retitle 52204 [PATCH] guix system vm: Add --no-graphic CLI argument. reassign 52204 guix-patches submitter 52204 Attila Lendvai severity 52204 normal tag 52204 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 30 14:13:56 2021 Received: (at submit) by debbugs.gnu.org; 30 Nov 2021 19:13:56 +0000 Received: from localhost ([127.0.0.1]:42536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8Zf-0007ul-PG for submit@debbugs.gnu.org; Tue, 30 Nov 2021 14:13:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:40990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8ZQ-0007uN-4X for submit@debbugs.gnu.org; Tue, 30 Nov 2021 14:13:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms8ZP-0001xi-Os for guix-patches@gnu.org; Tue, 30 Nov 2021 14:13:39 -0500 Received: from [2a00:1450:4864:20::331] (port=34677 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms8ZN-0003j7-T0 for guix-patches@gnu.org; Tue, 30 Nov 2021 14:13:39 -0500 Received: by mail-wm1-x331.google.com with SMTP id m25-20020a7bcb99000000b0033aa12cdd33so8272686wmi.1 for ; Tue, 30 Nov 2021 11:13:37 -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=P+Y/VGXHK+/CsDWZkprCrsAqfiYGvQQ7q3DexgEJo60=; b=M2wrlRIGScc+noargdPtGGUf9T3us3TyDu6dtZp/2kd5YWSlSW5DreKOVZZydHqPTf cWgyjXorfU+MHhfn9wHxGKLfMLCoCuPEk3IeiRxkR/TtOnDUljNihY7UTmGG4veUon7u SZKNUus2iTpAyAchy5Orrg4U9enHSbYoBU0FEVNQNVdo6bBDtS+ykldN0QKNoIkqVRn7 2UAyXCd9CMDJ52gFQ9mFLYramugu/wt1eNEd/lDJ/BF+4KYMcEw2aAcbDvfUZjBJ3GbV hzFwBt+JTpxx0SQYWUrsSwd6Cjt3957OgGpCT+nm40aRY9urYCJCpBTB+ys9RQC9LACv i5BA== 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=P+Y/VGXHK+/CsDWZkprCrsAqfiYGvQQ7q3DexgEJo60=; b=YWli/987L50eiFDvOCOkhGMsB1LG9i2a/A0biyC/8f2leMBv4IqEyMoQAAT5BZtX4B 0T+r+zwjReD5JYE/7nm9gZtJZM40f9A5TdwofAAo8XHzQkbLAqD5Q6ocZGbl9IRHtV4G 5r8hPQ7q449ECo/3qARzRK5+l5kS0rMqmJ7QSwNxhj5523k1L1/XeMCM0QlmT+u+ZI4q 0ZxMWE0s6Vo2DFoK9ezF9PYqhV6J6vYxPncodZdU4VyGfL1sUBZa+FPiwzXQkj/dIi/i 6TvQL+uz9rutud5kGCrUSL0yxMlP2o4hlY0+zN27VMBFI/MmS2q9No5W6POp873wIlHS AZtQ== X-Gm-Message-State: AOAM53083t9G0feSlr8o4HhKKdhrIfsacAXHxq5UVTzTuIALlwaotOQD ySUQ3fnqngKeHNej7mM5ansDw4FSz8I2Og== X-Google-Smtp-Source: ABdhPJyypnj7pDPxnOByjPi1+3hCJKhzI1Mdq+MC0VAs4Syl6vGzHrq5vz9ankdilsfAO/Rw/R6oWA== X-Received: by 2002:a7b:c844:: with SMTP id c4mr732603wml.148.1638299615960; Tue, 30 Nov 2021 11:13:35 -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 r15sm3108329wmh.13.2021.11.30.11.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 11:13:35 -0800 (PST) From: Attila Lendvai To: guix-patches@gnu.org Subject: [PATCH] guix system vm: Add --no-graphic CLI argument. Date: Tue, 30 Nov 2021 20:13:13 +0100 Message-Id: <20211130191312.32131-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=attila.lendvai@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.8 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: It configures qemu to use the tty it was started in for IO (as opposed to opening a separate graphical window). This enables copy-pasting and scrollback. Exit qemu with C-a x. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Also add the '-nographic' qemu argument when called with #:graphic? #false. * guix/scripts/system.scm (system-derivation-for-action): Propa [...] Content analysis details: (2.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (attila.lendvai[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 1.3 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit Cc: Attila Lendvai 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.8 (-) It configures qemu to use the tty it was started in for IO (as opposed to opening a separate graphical window). This enables copy-pasting and scrollback. Exit qemu with C-a x. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Also add the '-nographic' qemu argument when called with #:graphic? #false. * guix/scripts/system.scm (system-derivation-for-action): Propagate the #:graphic? keyword arg. (perform-action): Add and propagate the #:graphic? keyword arg. (show-help): Add --no-graphic CLI arg. (%options): Process the new --no-graphic CLI arg. (process-action): Feed in the CLI arg through the #:graphic? keyword arg. --- gnu/system/vm.scm | 2 ++ guix/scripts/system.scm | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 1e2d8b47c2..0a95302584 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -754,6 +754,8 @@ (define kernel-arguments (define qemu-exec #~(list #+(file-append qemu "/bin/" (qemu-command (or target system))) + ;; Tells qemu to use the terminal it was started in for IO. + #$@(if graphic? '() #~("-nographic")) #$@(if full-boot? #~() #~("-kernel" #$(operating-system-kernel-file os) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7faa92fd7d..1675fccf50 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -689,6 +689,7 @@ (define file-systems (define* (system-derivation-for-action image action #:key full-boot? + (graphic? #t) container-shared-network? mappings) "Return as a monadic value the derivation for IMAGE according to ACTION." @@ -706,6 +707,7 @@ (define* (system-derivation-for-action image action ((vm) (system-qemu-image/shared-store-script os #:full-boot? full-boot? + #:graphic? graphic? #:disk-image-size (if full-boot? image-size @@ -772,6 +774,7 @@ (define* (perform-action action image dry-run? derivations-only? use-substitutes? target full-boot? + (graphic? #t) container-shared-network? (mappings '()) (gc-root #f)) @@ -825,6 +828,7 @@ (define bootcfg (mlet* %store-monad ((sys (system-derivation-for-action image action #:full-boot? full-boot? + #:graphic? graphic? #:container-shared-network? container-shared-network? #:mappings mappings)) @@ -1012,6 +1016,8 @@ (define (show-help) register it as a garbage collector root")) (display (G_ " --full-boot for 'vm', make a full boot sequence")) + (display (G_ " + --no-graphic for 'vm', use the tty that we are started in for IO")) (display (G_ " --skip-checks skip file system and initrd module safety checks")) (display (G_ " @@ -1081,6 +1087,9 @@ (define %options (option '("full-boot") #f #f (lambda (opt name arg result) (alist-cons 'full-boot? #t result))) + (option '("no-graphic") #f #f + (lambda (opt name arg result) + (alist-cons 'no-graphic? #t result))) (option '("save-provenance") #f #f (lambda (opt name arg result) (alist-cons 'save-provenance? #t result))) @@ -1266,6 +1275,7 @@ (define (graph-backend) #:validate-reconfigure (assoc-ref opts 'validate-reconfigure) #:full-boot? (assoc-ref opts 'full-boot?) + #:graphic? (if (assoc-ref opts 'no-graphic?) #f #t) #:container-shared-network? (assoc-ref opts 'container-shared-network?) #:mappings (filter-map (match-lambda -- 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 02 09:25:09 2021 Received: (at 52204) by debbugs.gnu.org; 2 Dec 2021 14:25:09 +0000 Received: from localhost ([127.0.0.1]:47021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msn1I-0007Mo-UB for submit@debbugs.gnu.org; Thu, 02 Dec 2021 09:25:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msn1G-0007MR-TI for 52204@debbugs.gnu.org; Thu, 02 Dec 2021 09:25:07 -0500 Received: from [2001:470:142:3::e] (port=45972 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msn1B-0001pU-Hp; Thu, 02 Dec 2021 09:25:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=L8lOFOzpROU+/f8QhD9IRmFXdWHA9GDhL2K0I0yyK3Q=; b=H031crq/pMBg3Uu73CpW MU4G1xfXzlbHihBIGzOTZdQi1Xgd5I2IUHZJGl2VakSRJz23zND2LJj1YR8ETHVR7a0YNXIru+Af6 atc8GjhA2kU82Fvv25L7hkgShBBuv6KBYiWZJPc5NC9UL6wNa9kWCO5BDeaNBld9+5rYhYkasNbAi fFZYVJWAchwOMLP0C0EeOKqX58QZdNeej8fIJCMHqR4CfSoC+w4Hp1THQjkdd4I9TlXoI5fhRfq0P FpUFGsfXhvPNgy9lgFSLDqAjX7Jbgg2X1bPqgt+EHRkmi5KY+rkwlqO+iXHJberrbI33K6K3joSlQ YVSGiAWEK0/glw==; Received: from [2a01:e0a:19b:d9a0:2ddb:d3d2:32e8:d31a] (port=48720 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msn17-0006c8-2c; Thu, 02 Dec 2021 09:24:59 -0500 From: Mathieu Othacehe To: Attila Lendvai Subject: Re: bug#52204: [PATCH] guix system vm: Add --no-graphic CLI argument. References: <20211130191312.32131-1-attila@lendvai.name> Date: Thu, 02 Dec 2021 15:24:55 +0100 In-Reply-To: <20211130191312.32131-1-attila@lendvai.name> (Attila Lendvai's message of "Tue, 30 Nov 2021 20:13:13 +0100") Message-ID: <87tufrw0co.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52204 Cc: 52204@debbugs.gnu.org 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: -3.3 (---) Hello, > * gnu/system/vm.scm (system-qemu-image/shared-store-script): Also add the > '-nographic' qemu argument when called with #:graphic? #false. > * guix/scripts/system.scm (system-derivation-for-action): Propagate > the #:graphic? keyword arg. > (perform-action): Add and propagate the #:graphic? keyword arg. > (show-help): Add --no-graphic CLI arg. > (%options): Process the new --no-graphic CLI arg. > (process-action): Feed in the CLI arg through the #:graphic? keyword arg. This looks fine. Could you send an updated patch with the associated documentation update? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 02 14:10:16 2021 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 To: 52204@debbugs.gnu.org Subject: [PATCH 2/2] doc: Document guix system --no-graphic. 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-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 52204 Cc: Attila Lendvai 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: -0.5 (/) * 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 02 14:20:23 2021 Received: (at 52204) by debbugs.gnu.org; 2 Dec 2021 19:20:23 +0000 Received: from localhost ([127.0.0.1]:49311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msrd1-0007NZ-4F for submit@debbugs.gnu.org; Thu, 02 Dec 2021 14:20:23 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:46930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msrcx-0007NL-CW for 52204@debbugs.gnu.org; Thu, 02 Dec 2021 14:20:21 -0500 Received: by mail-wr1-f45.google.com with SMTP id u1so811655wru.13 for <52204@debbugs.gnu.org>; Thu, 02 Dec 2021 11:20:19 -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=uF1K7lidnTRGhem1CRqiI5IV9BFdU523IFUumItjcWg=; b=E6yXmTvowZsWnWhiim3OiBmAWAU2ZiYv1DP41gNQqy7OD/upnc+TTj2ULf2/ifnH9H ozEe8j0yvNtF1iZEZ/FZCr7GLB3/iUJxPkeTgpxPmpKvBD3cqWQsI/hIeFhrNvYedTZn 0qQmqD7i5JxWTbfM6xrTq+k2ZDDXYZdJY3dzhvTJt+Re6E8wLHg8UozttIs5SL/vZLIn bLQyEWLV9EpKTNBYifDoQkKgCFBofZ6eLLajKKc9WcNDtVaeEhfFCSAjMzNuTw2M2/hJ n1tuit1jXu2Gg/JXBuqTPscWQRrKX1ED+wWVEl4Zi7ne1sNrEDw1Joofv3xrm9qFfZuf mwiA== 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=uF1K7lidnTRGhem1CRqiI5IV9BFdU523IFUumItjcWg=; b=JvYon0moHDmAAS4zvf0NTDNGwsCCrlRi1iJQVUQWzNxjjijFnZut44SO5XV0/GVM/W NRkOuRQYFiJFTY3KFa2XDcOYUUUCSGpxTTtcREpjvxoMLlVoW95+yUlprYx8lbZGwurM msnekBt/vlBUFML1wGneG6qlYUoSRQg+pY0KYF6M7IUa0+3cDLWFBtPJj1KVNzkRQCFu LLgQiDJnd/ts0KUK1c8cq5TAHWTYrdzzTxOuKHQ2Qylbaz9NqfvKi2wlZ354g1w4HQKZ bHz1bY/K35Fr/+PzxFav4ysmXZTSnI48nKS1axuUciLptF29JwEkkc6WYE7uj1DKksPE zjhA== X-Gm-Message-State: AOAM533qd/ErZuJWwp9ap/gos7p56J4Io86UcSba1G2jLHAmVjVq4RDo wkrnUM5FaALN/0i6pXR5MMYhPEVTvUdFuQ== X-Google-Smtp-Source: ABdhPJy0aVQNva/1wVzKu9RIQdEmi/UJUKX7cibn0M7IDjqadc6tvSf3N6hdqMIMi2F+dWhlXCFbaQ== X-Received: by 2002:a05:6000:1a41:: with SMTP id t1mr16695545wry.261.1638472813315; Thu, 02 Dec 2021 11:20:13 -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 y7sm589088wrw.55.2021.12.02.11.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 11:20:12 -0800 (PST) From: Attila Lendvai To: 52204@debbugs.gnu.org Subject: [PATCH v2] guix system vm: Add --no-graphic CLI argument. Date: Thu, 2 Dec 2021 20:18:56 +0100 Message-Id: <20211202191855.29552-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 52204 Cc: Attila Lendvai 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: -0.5 (/) It configures QEMU to use the tty it was started in for IO (as opposed to opening a separate graphical window). This enables copy-pasting and scrollback. Exit QEMU with C-a x. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Also add the '-nographic' QEMU argument when called with #:graphic? #false. * guix/scripts/system.scm (system-derivation-for-action): Propagate the #:graphic? keyword arg. (perform-action): Add and propagate the #:graphic? keyword arg. (show-help): Add --no-graphic CLI arg. (%options): Process the new --no-graphic CLI arg. (process-action): Feed in the CLI arg through the #:graphic? keyword arg. * 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. --- after consuling on #guix, i'm resending the two commits (the doc and the code) as one, because that is preferred. doc/guix.texi | 23 +++++++++++++++++++---- gnu/system/vm.scm | 2 ++ guix/scripts/system.scm | 10 ++++++++++ 3 files changed, 31 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 diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 1e2d8b47c2..0a95302584 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -754,6 +754,8 @@ (define kernel-arguments (define qemu-exec #~(list #+(file-append qemu "/bin/" (qemu-command (or target system))) + ;; Tells qemu to use the terminal it was started in for IO. + #$@(if graphic? '() #~("-nographic")) #$@(if full-boot? #~() #~("-kernel" #$(operating-system-kernel-file os) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7faa92fd7d..1675fccf50 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -689,6 +689,7 @@ (define file-systems (define* (system-derivation-for-action image action #:key full-boot? + (graphic? #t) container-shared-network? mappings) "Return as a monadic value the derivation for IMAGE according to ACTION." @@ -706,6 +707,7 @@ (define* (system-derivation-for-action image action ((vm) (system-qemu-image/shared-store-script os #:full-boot? full-boot? + #:graphic? graphic? #:disk-image-size (if full-boot? image-size @@ -772,6 +774,7 @@ (define* (perform-action action image dry-run? derivations-only? use-substitutes? target full-boot? + (graphic? #t) container-shared-network? (mappings '()) (gc-root #f)) @@ -825,6 +828,7 @@ (define bootcfg (mlet* %store-monad ((sys (system-derivation-for-action image action #:full-boot? full-boot? + #:graphic? graphic? #:container-shared-network? container-shared-network? #:mappings mappings)) @@ -1012,6 +1016,8 @@ (define (show-help) register it as a garbage collector root")) (display (G_ " --full-boot for 'vm', make a full boot sequence")) + (display (G_ " + --no-graphic for 'vm', use the tty that we are started in for IO")) (display (G_ " --skip-checks skip file system and initrd module safety checks")) (display (G_ " @@ -1081,6 +1087,9 @@ (define %options (option '("full-boot") #f #f (lambda (opt name arg result) (alist-cons 'full-boot? #t result))) + (option '("no-graphic") #f #f + (lambda (opt name arg result) + (alist-cons 'no-graphic? #t result))) (option '("save-provenance") #f #f (lambda (opt name arg result) (alist-cons 'save-provenance? #t result))) @@ -1266,6 +1275,7 @@ (define (graph-backend) #:validate-reconfigure (assoc-ref opts 'validate-reconfigure) #:full-boot? (assoc-ref opts 'full-boot?) + #:graphic? (if (assoc-ref opts 'no-graphic?) #f #t) #:container-shared-network? (assoc-ref opts 'container-shared-network?) #:mappings (filter-map (match-lambda -- 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 05:38:19 2021 Received: (at 52204) by debbugs.gnu.org; 3 Dec 2021 10:38:19 +0000 Received: from localhost ([127.0.0.1]:50084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt5xL-0001wH-Ca for submit@debbugs.gnu.org; Fri, 03 Dec 2021 05:38:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt5xJ-0001w4-8z for 52204@debbugs.gnu.org; Fri, 03 Dec 2021 05:38:17 -0500 Received: from [2001:470:142:3::e] (port=58914 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt5xD-0005rD-TP; Fri, 03 Dec 2021 05:38:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ec3GH+0311+V2XF3JKOhBtEAAzWa4RambzV5/BcxA84=; b=ERZ56kLlDuZbgROJybPM g31cazwDTfsJDGnsfqdifP7DmtsjpDMYRh+Ii1Vff3XIcsonM9EaIa38cDfrBH8XfXbP8vVXM8f5K HbzUNLd2lAhs0hsXr/uQtemZpoNi5Dfc9f/DBp0Onp3mZoDnC5ZFM3mNWQybll/eKsltYlxs+r5gK +5/DRONppxuQb25yjlTk2P1hAFaR3ATAZKpzTbxh+YDYDwHuQ6g+E27yGDZhbrAoP0wYj6upkFxvF VOhm40WnDGB4OHT9gnEkn9jH4vCaGsqMUBQ9QTyXXo253XNsyBqUoq8xAPwgB1B0lscN9pLopaKqm dowaV/CO5Zu+Ig==; Received: from [2a01:e0a:19b:d9a0:45b5:a14a:5c75:5737] (port=32920 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt5xD-0001NJ-P3; Fri, 03 Dec 2021 05:38:11 -0500 From: Mathieu Othacehe To: Attila Lendvai Subject: Re: bug#52204: [PATCH] guix system vm: Add --no-graphic CLI argument. References: <20211130191312.32131-1-attila@lendvai.name> <20211202191855.29552-1-attila@lendvai.name> Date: Fri, 03 Dec 2021 11:38:09 +0100 In-Reply-To: <20211202191855.29552-1-attila@lendvai.name> (Attila Lendvai's message of "Thu, 2 Dec 2021 20:18:56 +0100") Message-ID: <871r2ut1m6.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52204 Cc: 52204@debbugs.gnu.org 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: -3.3 (---) Hello, > after consuling on #guix, i'm resending the two commits (the doc and > the code) as one, because that is preferred. Thanks for the v2. I think we should also remove the "-vga std" argument that is added by "common-qemu-options" but ignored because "-nographic" is read first in QEMU command line. Mathieu From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 07:23:15 2021 Received: (at 52204) by debbugs.gnu.org; 3 Dec 2021 12:23:15 +0000 Received: from localhost ([127.0.0.1]:50196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt7as-0004yk-Lq for submit@debbugs.gnu.org; Fri, 03 Dec 2021 07:23:15 -0500 Received: from mail-ed1-f54.google.com ([209.85.208.54]:40523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt7ap-0004yT-6M for 52204@debbugs.gnu.org; Fri, 03 Dec 2021 07:23:13 -0500 Received: by mail-ed1-f54.google.com with SMTP id r25so10703240edq.7 for <52204@debbugs.gnu.org>; Fri, 03 Dec 2021 04:23:11 -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=GtPB2OeTkxwSqHLT1GcJtZ+b3K4XcC5cbFUjHwWf3j0=; b=DRFtTQ765fZA970FZIDVCz0G3Of0HR24/kLb+Mu/5+FEIO3cX+ineeWL4EOoxEEH9B SUdzoDfEH+63Xm4/AGYCTvceWaoPkc+u3wpsi0vNkmzvFktQBEAniQD1wf37E2sMiPMC oE0wUY8VOXxNnY2VkQvbL01fFlU1lSRJanGp1EnVjTTZ92ZhgVywKu989F+U301XQRu4 4/3zOcPMXRyHQGBbOHwgMtQERq/+jO0zd2OlkrYwllsGy9Lb7TjxQI22sRJcwf37ioOW PCQ2t8fp6vZCn+g/DVgSx4jvbEhcL1LjUx/NdhzkBgm/BEqRWadMRVTOH7K00brdFp2g 9U6A== 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=GtPB2OeTkxwSqHLT1GcJtZ+b3K4XcC5cbFUjHwWf3j0=; b=v2dg1RIyr7qRWDTqjk5goN+10DoCWqEtZa4+n8UAhCANfg31GsYHVyXTDf9X02Plmf Lbqub+V0w0OvXWDWcop8sGWOJhtbSPQ4ZKpC0BqQyH0I3XVYRw9mEMmrEvZ4SNmOdOdg rDDVXjVn7JZ4yz26H3O3la1fpvqehBE6ZivVz9l0b21yR9rZyDKSsXZZE7DLVYCAwu7g +z9fF+hotkp8mJ4NGpsn66QxPAJJBWOlYTMSN18boI9ZQwSn3kD95LmgMfzjs5pSx2bJ YzhyLlFOu2Aa6zLCktVwZRs1Pd/YNOXWhFhlCKR18DIToxOrZrTlbNjGZ1lD1C1A0PCM JU8w== X-Gm-Message-State: AOAM530JhUYJi2qcFSLukIjAbKepQ5sRy+6lsCnzqrSpFK7MjkbCxLPr fCnyI094LAg/2QnRGVNzklOj4TeCLHlWAQ== X-Google-Smtp-Source: ABdhPJwCnp49zLJMXgcrHWeI3I7EJzZj2cMQxR9sYDoppQJUFwR9aTBDUDVViuDSMoI+7xpbZMWVuw== X-Received: by 2002:a17:906:6851:: with SMTP id a17mr22883378ejs.338.1638534185185; Fri, 03 Dec 2021 04:23:05 -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 gn26sm1922362ejc.14.2021.12.03.04.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 04:23:04 -0800 (PST) From: Attila Lendvai To: 52204@debbugs.gnu.org Subject: [PATCH v3] guix system vm: Add --no-graphic CLI argument. Date: Fri, 3 Dec 2021 13:22:02 +0100 Message-Id: <20211203122201.483-1-attila@lendvai.name> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 52204 Cc: Attila Lendvai 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: -0.5 (/) It configures QEMU to use the tty it was started in for IO (as opposed to opening a separate graphical window). This enables copy-pasting and scrollback. Exit QEMU with C-a x. * gnu/system/vm.scm (system-qemu-image/shared-store-script): Also add the '-nographic' QEMU argument when called with #:graphic? #false. (common-qemu-options): Remove '-vga stg'; it is the default since QEMU 2.2. * guix/scripts/system.scm (system-derivation-for-action): Propagate the #:graphic? keyword arg. (perform-action): Add and propagate the #:graphic? keyword arg. (show-help): Add --no-graphic CLI arg. (%options): Process the new --no-graphic CLI arg. (process-action): Feed in the CLI arg through the #:graphic? keyword arg. * 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. --- v3: also remove the '-vga std' from the qemu command line; it's been the default since forever. doc/guix.texi | 23 +++++++++++++++++++---- gnu/system/vm.scm | 3 ++- guix/scripts/system.scm | 10 ++++++++++ 3 files changed, 31 insertions(+), 5 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 diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 1e2d8b47c2..f1541cf30c 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -712,7 +712,6 @@ (define (virtfs-option fs) "-device" "virtio-rng-pci,rng=guixsd-vm-rng" #$@(map virtfs-option shared-fs) - "-vga std" (format #f "-drive file=~a,if=virtio,cache=writeback,werror=report,readonly=on" #$image))) @@ -754,6 +753,8 @@ (define kernel-arguments (define qemu-exec #~(list #+(file-append qemu "/bin/" (qemu-command (or target system))) + ;; Tells qemu to use the terminal it was started in for IO. + #$@(if graphic? '() #~("-nographic")) #$@(if full-boot? #~() #~("-kernel" #$(operating-system-kernel-file os) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7faa92fd7d..1675fccf50 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -689,6 +689,7 @@ (define file-systems (define* (system-derivation-for-action image action #:key full-boot? + (graphic? #t) container-shared-network? mappings) "Return as a monadic value the derivation for IMAGE according to ACTION." @@ -706,6 +707,7 @@ (define* (system-derivation-for-action image action ((vm) (system-qemu-image/shared-store-script os #:full-boot? full-boot? + #:graphic? graphic? #:disk-image-size (if full-boot? image-size @@ -772,6 +774,7 @@ (define* (perform-action action image dry-run? derivations-only? use-substitutes? target full-boot? + (graphic? #t) container-shared-network? (mappings '()) (gc-root #f)) @@ -825,6 +828,7 @@ (define bootcfg (mlet* %store-monad ((sys (system-derivation-for-action image action #:full-boot? full-boot? + #:graphic? graphic? #:container-shared-network? container-shared-network? #:mappings mappings)) @@ -1012,6 +1016,8 @@ (define (show-help) register it as a garbage collector root")) (display (G_ " --full-boot for 'vm', make a full boot sequence")) + (display (G_ " + --no-graphic for 'vm', use the tty that we are started in for IO")) (display (G_ " --skip-checks skip file system and initrd module safety checks")) (display (G_ " @@ -1081,6 +1087,9 @@ (define %options (option '("full-boot") #f #f (lambda (opt name arg result) (alist-cons 'full-boot? #t result))) + (option '("no-graphic") #f #f + (lambda (opt name arg result) + (alist-cons 'no-graphic? #t result))) (option '("save-provenance") #f #f (lambda (opt name arg result) (alist-cons 'save-provenance? #t result))) @@ -1266,6 +1275,7 @@ (define (graph-backend) #:validate-reconfigure (assoc-ref opts 'validate-reconfigure) #:full-boot? (assoc-ref opts 'full-boot?) + #:graphic? (if (assoc-ref opts 'no-graphic?) #f #t) #:container-shared-network? (assoc-ref opts 'container-shared-network?) #:mappings (filter-map (match-lambda -- 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 08:35:03 2021 Received: (at 52204-done) by debbugs.gnu.org; 3 Dec 2021 13:35:03 +0000 Received: from localhost ([127.0.0.1]:50250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt8iN-0000sm-H6 for submit@debbugs.gnu.org; Fri, 03 Dec 2021 08:35:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mt8iI-0000sA-5D for 52204-done@debbugs.gnu.org; Fri, 03 Dec 2021 08:35:02 -0500 Received: from [2001:470:142:3::e] (port=56220 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt8iC-0003Si-QX; Fri, 03 Dec 2021 08:34:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=7fu0qNx77yc2x2pvIcgXWaduIki5Kecz64IppBHTr2c=; b=d2G4i5JhlhaOyFzvdfHN l4FGP8FStlZMNgpKjynjrVeTcGkRc2939FcH17wpTezPljqrj47OGHWOEQZGPv+7U+OyY+dE3+fkg GqqVB2K36wuLq4iqG2eZ0JPYVgSFTO/h5hFXEsCwf67DcnlBFmwp4N17RuQVoarAeXt0Y8f/fbuD2 3yyFP3ThbYhssDQp7O6g+/R2bPcm6fSvzB/Qw6Ascdb1hNSM8K46viDYnpVRFt990eY6+j7Z53YAY IQrnVxJatYex1PZr5dIX2GTSshjB5f7u0gpBCoCgY1EnDhP8YhPgZWnaBLJZ91w2nEkpFSkdkIAF8 40C/v4RTFQnxAA==; Received: from [2a01:e0a:19b:d9a0:45b5:a14a:5c75:5737] (port=32928 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt8iC-0002fq-E9; Fri, 03 Dec 2021 08:34:52 -0500 From: Mathieu Othacehe To: Attila Lendvai Subject: Re: bug#52204: [PATCH] guix system vm: Add --no-graphic CLI argument. References: <20211130191312.32131-1-attila@lendvai.name> <20211203122201.483-1-attila@lendvai.name> Date: Fri, 03 Dec 2021 14:34:50 +0100 In-Reply-To: <20211203122201.483-1-attila@lendvai.name> (Attila Lendvai's message of "Fri, 3 Dec 2021 13:22:02 +0100") Message-ID: <87y251rev9.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52204-done Cc: 52204-done@debbugs.gnu.org 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: -3.3 (---) Hello, I pushed the v2, and a separate commit removing the "-vga std" argument. Thanks, Mathieu From unknown Sat Jun 21 05:01:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 01 Jan 2022 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator