From patchwork Fri Mar 21 15:21:59 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: 40561 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 29BEF27BBEA; Fri, 21 Mar 2025 15:24:11 +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 7EF1127BBE2 for ; Fri, 21 Mar 2025 15:24:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tveDQ-00023E-Ly; Fri, 21 Mar 2025 11:23:22 -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 1tveDC-00021S-A2 for guix-patches@gnu.org; Fri, 21 Mar 2025 11:23:06 -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 1tveDB-0000bC-SP; Fri, 21 Mar 2025 11:23:05 -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=2rgsGzAVAF8mdP8nHdVMHX8W+Vh3pVCnHwdMkGJY8V4=; b=msA7gg6uODEOQ11DNp4+dFEUYyFcpblkhuys4EKZB+DXTlMdLtHgEJg9omJkKJdd/RJv/NuMLSdbq7AitJLuTPdp3bkMrXh1w11u4heNCcdruCMS2vNNrLB4WCxsapYEVufOQVE/2JK7VnuLMNA1y9I/iT4387SAEMPkXHJqyfeNp3zEKMkN3i757nKK0jiMY7tY/fmRxhN0XEiFJGywdCpX5PRqABaQCwDuEjo1xd/CEQPuUjz7WhdC7kbu5s0G8SzlzALp4vL8uGSc0Y5kvh8to0+722fG4jgnmotT5WL9MtwtoAiHdNJNqa28uhw23Kl1IEiukIKyaSCVqaweuA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tveDB-00045f-IJ; Fri, 21 Mar 2025 11:23:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77153] [PATCH 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: Fri, 21 Mar 2025 15:23:05 +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.174257055715411 (code B ref 77153); Fri, 21 Mar 2025 15:23:05 +0000 Received: (at 77153) by debbugs.gnu.org; 21 Mar 2025 15:22:37 +0000 Received: from localhost ([127.0.0.1]:38802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tveCh-00040I-DY for submit@debbugs.gnu.org; Fri, 21 Mar 2025 11:22:36 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:61612) 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 1tveCd-0003yj-8G for 77153@debbugs.gnu.org; Fri, 21 Mar 2025 11:22:32 -0400 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-22580c9ee0aso44184365ad.2 for <77153@debbugs.gnu.org>; Fri, 21 Mar 2025 08:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742570545; x=1743175345; 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=2rgsGzAVAF8mdP8nHdVMHX8W+Vh3pVCnHwdMkGJY8V4=; b=Xf7OgwkobQf6Y4vQV4OSc40CNWMP9V7RaUz2i4+bpXK5jSphzKblD7UVfWkdj52ohH q028K3Gdx/KShlz16r02/h18+1fF52VhbeyTuR7NVwk0/m/gU7gmlj3OHY2QJ008W4Tj 0YaaRIfRssXxRs8D5X0wJxSDwny9AYKgfrpNmrKbD24jVuNrRSCMY8Rb8ps3YGNECS66 Em2vqw4Q+7/YHOQ/AxXCrCBeyvoBNlZj03V8DzmJq/lXCSkJW4tlwOSGc+98kZgEuqqY CclXzFo+DTa4ZDHqHj/jwtf0eP8HHHiPC1xWDnINKytmzIirf6LDPBxYcJ2GDbheV0tv u2lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742570545; x=1743175345; 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=2rgsGzAVAF8mdP8nHdVMHX8W+Vh3pVCnHwdMkGJY8V4=; b=YSRZCn5+ODy/QV2jGv6xErp19eEeXEKBLjXIoi2uH3JTs0s9zm/9lm5HDid0o3hVVN zIPsasY9K6dBmRhcANToyjw0ndaq3IOh3DJ5J5v1Q9x9itwFzVuPfFzD0uo3BgGx80SS HZnIAWR2pIB/HnYS+61/sNsafP+tjglvunGwN4nH5pXMlArvUXIunwv1lQohxLDuM2sA ySP2bisdfWUwxCBGqTPQl526et7HjV0Dw4iKoAOupERtbWyyErv5kKZVtBKtJ2vwvZ5e 1s9OUGZV9iEgWz5K3BNM0jMCXQCtI56tYZX164+OnB0b8g9wPREjoP7Es/mMi//qavOT jFGQ== X-Gm-Message-State: AOJu0Yzmil5J1zbQYAJ+LWcOUp4JUs6ziTTlxObygPkkFc/tFhCEH7W4 cbV8l2ZAL8UqNBm9j5+U4A3NNy6UeAbrzswLESUHpkmy0TnerFsjNs5BsXDi X-Gm-Gg: ASbGnctynmsGBOP7S/x/MA4QfE6hC+XhNGKEIwrLxglkDn6YfVNEH7S7xB8WAFJd6fT 1uqG+toYvvkNDn+cBVKIBYEXQV5q9f7SpIixl8qagyVVA3nr7L1JuSWbVMSj+37jjbPrurKQ53R V8+tA2lkc0SO8DnxQ0/CoQyYWZaheNwgbBXYtnCR0S7nEZWZlCQaOzmIxKy0rktKi6LBaf1VDhK J1rJe43QTlZRh+r7zWiSRH/G23dpB7mUStzMtdFHjx0kA829+5HSc+VrSM23d9hSJMkX8JJxLsi 4wfCWtiURqGrajYZM9uZUL40I6MjMpDqe3eUeISVzChKeqEAh7IX4X7QrgM03sZW3eqgWkG3NQY jdg== X-Google-Smtp-Source: AGHT+IH/bug/34k2xexLSqdGYTX1XPYxqbhFoNPH3mbNSk6eOTl/+FmH31T6sloX1LZKjJYD5xS8WQ== X-Received: by 2002:a17:903:188:b0:220:e338:8d2 with SMTP id d9443c01a7336-22780d83b25mr59977635ad.21.1742570544875; Fri, 21 Mar 2025 08:22:24 -0700 (PDT) Received: from localhost.localdomain (utm3.nitt.edu. [14.139.162.2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f3b493sm18118885ad.34.2025.03.21.08.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 08:22:24 -0700 (PDT) From: 45mg <45mg.writes@gmail.com> Date: Fri, 21 Mar 2025 20:51:59 +0530 Message-ID: X-Mailer: git-send-email 2.48.1 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 8bfc859a90..325b1d9c2a 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -3896,14 +3896,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