From patchwork Mon Jan 21 18:46:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giovanni Biscuolo X-Patchwork-Id: 781 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A1DDC16A6D; Mon, 21 Jan 2019 18:58:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4798716A5D for ; Mon, 21 Jan 2019 18:58:32 +0000 (GMT) Received: from localhost ([127.0.0.1]:58172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glemF-0005zm-Og for patchwork@mira.cbaines.net; Mon, 21 Jan 2019 13:58:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glec7-0006TA-9i for guix-patches@gnu.org; Mon, 21 Jan 2019 13:48:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glec6-0000dp-CW for guix-patches@gnu.org; Mon, 21 Jan 2019 13:48:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41160) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glec6-0000di-8L for guix-patches@gnu.org; Mon, 21 Jan 2019 13:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glec5-00050t-UW for guix-patches@gnu.org; Mon, 21 Jan 2019 13:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34161] [PATCH] doc: clarify build users must be in kvm group Resent-From: Giovanni Biscuolo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Jan 2019 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34161 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34161@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154809642419199 (code B ref -1); Mon, 21 Jan 2019 18:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2019 18:47:04 +0000 Received: from localhost ([127.0.0.1]:40441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glebA-0004zb-0P for submit@debbugs.gnu.org; Mon, 21 Jan 2019 13:47:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gleb2-0004yx-K9 for submit@debbugs.gnu.org; Mon, 21 Jan 2019 13:46:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:58564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gleax-0008WO-9V for submit@debbugs.gnu.org; Mon, 21 Jan 2019 13:46:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleaw-0005ZP-5z for guix-patches@gnu.org; Mon, 21 Jan 2019 13:46:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gleav-0008Ur-6N for guix-patches@gnu.org; Mon, 21 Jan 2019 13:46:50 -0500 Received: from ns13.heimat.it ([46.4.214.66]:55050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gleau-0008Tw-Qh for guix-patches@gnu.org; Mon, 21 Jan 2019 13:46:49 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id EBD5F300FA3 for ; Mon, 21 Jan 2019 18:46:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2qgT7qlXNqzu for ; Mon, 21 Jan 2019 18:46:26 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 232693000CF for ; Mon, 21 Jan 2019 18:46:26 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 19F64300056 for ; Mon, 21 Jan 2019 19:46:25 +0100 (CET) Received: (nullmailer pid 24849 invoked by uid 1000); Mon, 21 Jan 2019 18:46:24 -0000 From: Giovanni Biscuolo Organization: Xelera.eu Date: Mon, 21 Jan 2019 19:46:23 +0100 Message-ID: <87k1ixrgqo.fsf@roquette.mug.biscuolo.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi maitainers! here is a small patch to (guix)Invoking guix system rationale in https://lists.gnu.org/archive/html/help-guix/2019-01/msg00272.html Thanks! From 577f3e5750ec23cadf19cea68fe21aa5d2e7b9fa Mon Sep 17 00:00:00 2001 From: Giovanni Biscuolo Date: Mon, 21 Jan 2019 19:10:45 +0100 Subject: [PATCH] doc: clarify build users must be in kvm group To: guix-patches@gnu.org * doc/guix.texi: (guix)Invoke guix system, clarify kvm users must be in kvm group when using `guix system vm` --- doc/guix.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 245a18bc7..a3a27628f 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -22942,6 +22942,19 @@ passed. @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). +To use this command, you may need to add the build users to the @code{kvm} +group so they can access @file{/dev/kvm} (@pxref{Build Environment Setup}). + +On a GNU/Linux system, a build user pool groups may be changed like this +(using Bash syntax and the @code{shadow} commands): + +@example +# for i in `seq -w 1 10`; + do + usermod -G guixbuild,kvm guixbuilder$i; + done +@end example + Arguments given to the script are passed to QEMU as in the example below, which enables networking and requests 1@tie{}GiB of RAM for the emulated machine: -- q2.11.0