From patchwork Sat Mar 22 17:03:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 45mg <45mg.writes@gmail.com> X-Patchwork-Id: 40633 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 4118527BBEA; Sat, 22 Mar 2025 17:04:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 87AD127BBE2 for ; Sat, 22 Mar 2025 17:04:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tw2Gf-0007Gn-O2; Sat, 22 Mar 2025 13:04:17 -0400 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 1tw2GS-0007E0-8w for guix-patches@gnu.org; Sat, 22 Mar 2025 13:04:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tw2GR-0005Pb-UL; Sat, 22 Mar 2025 13:04:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=wV4sg3mRqAp7DZbNF4g1B3XPRTiX1zdvoj5pYIiTKmk=; b=FGgZa/FIENQvgUXd7l25myMKNSyeAb7vExUB9XdtyrwceDOQ3r4pp1oBmv3H2fzbMIWP6ApsM9d0C6aiVJ6Vxnnp2gmMXJqjNxE+pfdK8LcA/8KUIfuzf9vnVmDJpfq/6IfeU+dtc9GsJD4HgfxfiolVykzk5ue9/7iaxE30ojeoCHm3HOcHMNNrJ/y6zHt8DdddfrbdimBO8FNPqM/WMs/oeA/oJqoVPKbY4czUFqdb7VCh9y3ueASYhDewsst1pW17vALG3YMz6N7BhyMoNBVzC5cgiJABfQJ8B3UoOPqscmnXoYt6L+HuTBeOglibPB0KkEp/llx9huJlhH11Jg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tw2GR-0006mk-Nx; Sat, 22 Mar 2025 13:04:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77153] [PATCH v3 2/3] doc: cookbook: Clarify virtual network switches. Resent-From: 45mg <45mg.writes@gmail.com> Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 22 Mar 2025 17:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77153 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77153@debbugs.gnu.org Cc: 45mg <45mg.writes@gmail.com>, Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer X-Debbugs-Original-Xcc: Ludovic =?utf-8?q?Court=C3=A8s?= , Maxim Cournoyer Received: via spool by 77153-submit@debbugs.gnu.org id=B77153.174266303726053 (code B ref 77153); Sat, 22 Mar 2025 17:04:03 +0000 Received: (at 77153) by debbugs.gnu.org; 22 Mar 2025 17:03:57 +0000 Received: from localhost ([127.0.0.1]:45142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tw2GL-0006m9-4t for submit@debbugs.gnu.org; Sat, 22 Mar 2025 13:03:57 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:55315) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <45mg.writes@gmail.com>) id 1tw2GI-0006lq-Qp for 77153@debbugs.gnu.org; Sat, 22 Mar 2025 13:03:55 -0400 Received: by mail-pl1-x644.google.com with SMTP id d9443c01a7336-2240b4de12bso35433005ad.2 for <77153@debbugs.gnu.org>; Sat, 22 Mar 2025 10:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742663028; x=1743267828; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wV4sg3mRqAp7DZbNF4g1B3XPRTiX1zdvoj5pYIiTKmk=; b=AVLEGOX/uuVDyBar4Yc7lkzBDuZjY0IW6ZrDl+CagYSWqbZ7aihbreeqrjDBUDkC6N PdXrajL7wPLnOjd7aD5bZ2NgdnORuVKydXcn9BNE6d36F2TCuMre45repy4vLBK6PAl9 tDlQ309qAYDOhNpM1u586Kh6mMv3FXtNRIccWsniy21x9NFhB54B38zw2tezxh4Lf1IX vaDtcEIYwpPfPe3KaQ61ftl5QMUP26GkTjt6WZHuPPd+05KNBJiTjy25p5bXbbMw7J7u ZQwBj1TezAyeoAg7+89+K8NGGn2ywN9VZCdNn/crTEcnjvvaXAK3zsIe33pTj+I+Oqa2 7c0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742663028; x=1743267828; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wV4sg3mRqAp7DZbNF4g1B3XPRTiX1zdvoj5pYIiTKmk=; b=WJXSoyiLL1Wst2AxHyaScMJ2Raq3qumLd/o+RtItc9M5XwOIkzqrHbDgG/sQIcvxyB qqgY37T2ip+tdx1MxTOSgtP09by/HtjbAMvJ5mfQosPil8qzX8mye61pE8kElCBcYQUz EXSPVg0M7DWCM3Bp9GPitITab4suvU4by8MzAAJ5A1oUxK1IhRxkOP5zwIwe7qERBc2W pp+w4mHVPHvx7k5J8+V1uYMzH1IYrFTmXlRrL2fwcCBhCic0El35YPySFgoJf0TDUMhV I4jOO13HL5bO9HQKxi7MjuvjHE+FpwbPJ+/T0jV6T4zpqfREvzpqQ70SoUQIFIqYO2I4 7Udg== X-Gm-Message-State: AOJu0YwEK1bRInL/Mu2ChZNDJ/a3cf9dLKFv88lxA3ubdUP+rirx2CJ2 1xVVzm2bou7G5fOcKLAuYR+9h0d8prHoZcpLaT8Wu44ks1ws0eSaosyd2M4f X-Gm-Gg: ASbGnctFGkH9wTYgNvSiwSNp5kRsPrfaRmKCZssOB7/d18bijtpJWF9mUwgoXsWSQ+h 9p0qiGl7QwJlEVwE1EuwR7MAJxZ6h+0OQz/3NJNka9eme6P+W/lK6xjEnvsiMDWO2azB9NgqmFy jIQoTrNw+HMFsoKJP9WLqMH08bRN//Z9ziBa3svd+ZhzaK+tu7qlKaLX4tNlJUGnryppEd/m+TK L6yEQqjyuzDAMpZ77etlFigaWfLJ1Kz6eLFHcOlt6NGiAEhzQIrAr9DqgzMjJqd5ooNaPKgYUBF wofNesb37H+m5ejJ2+QCiXII38xTB2mo0AY3ZGvMKcfNmItagUADzFDOYdheeDMQa8o= X-Google-Smtp-Source: AGHT+IGAzwmCNTXbl+NjFKN2SKAsU8FaD5RgiJf3DFwQaT2yHGXeAlQShATI0P8A/0hR4LKSqg8mOA== X-Received: by 2002:a17:903:320d:b0:220:bd61:a337 with SMTP id d9443c01a7336-22780d8ceb5mr124205335ad.23.1742663028371; Sat, 22 Mar 2025 10:03:48 -0700 (PDT) Received: from localhost.localdomain (utm3.nitt.edu. [14.139.162.2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-227811d805bsm37898885ad.159.2025.03.22.10.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Mar 2025 10:03:48 -0700 (PDT) From: 45mg <45mg.writes@gmail.com> Date: Sat, 22 Mar 2025 22:33:16 +0530 Message-ID: <5f7ac2f270ba3e07467fac40292a794207483e1f.1742661687.git.45mg.writes@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * doc/guix-cookbook.texi (Virtual Machines): [Routed network for libvirt] {Creating a virtual network switch}: Remove unnecessarily noncommital language ("a few components/configurations, such as..."). Correct 'TUN interface', as bridges are currently used. Add a link to the libvirt Wiki for more information. Change-Id: I6ffdeca8e4d32155c8cce547d4930bf1b0cb471b --- doc/guix-cookbook.texi | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index a0d148f469..9c56790edc 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -3897,14 +3897,19 @@ Routed network for libvirt @subsection Creating a virtual network switch -A virtual network switch consists of a few components/configurations, -such as a @abbr{TUN, network tunnel} interface, DHCP server (dnsmasq) -and firewall rules (iptables). The @command{virsh} command, provided by -the @code{libvirt} package, makes it very easy to create a virtual -switch. You first need to choose a network subnet for your virtual -switch; if your home LAN is in the @samp{192.168.1.0/24} network, you -could opt to use e.g.@: @samp{192.168.2.0/24}. Define an XML file, -e.g.@: @file{/tmp/virbr0.xml}, containing the following: +A virtual network switch consists of a virtual network device called a +`virtual bridge', DHCP server (dnsmasq) and firewall rules +(iptables). See the +@url{https://wiki.libvirt.org/VirtualNetworking.html, libvirt Wiki +article on Virtual Networking} for more details on the modes of +operation, management and implementation of virtual network switches. + +The @command{virsh} command, provided by the @code{libvirt} +package, makes it very easy to create a virtual switch. You first need +to choose a network subnet for your virtual switch; if your home LAN is +in the @samp{192.168.1.0/24} network, you could opt to use e.g.@: +@samp{192.168.2.0/24}. Define an XML file, e.g.@: +@file{/tmp/virbr0.xml}, containing the following: @example