From patchwork Sat Mar 22 13:00:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: 45mg <45mg.writes@gmail.com> X-Patchwork-Id: 40604 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 72E6727BBE2; Sat, 22 Mar 2025 13:01:54 +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=unavailable 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 7488B27BBE9 for ; Sat, 22 Mar 2025 13:01:52 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvyTU-0007Qx-D0; Sat, 22 Mar 2025 09:01:16 -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 1tvyTH-0007OH-G6 for guix-patches@gnu.org; Sat, 22 Mar 2025 09:01:11 -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 1tvyTG-0008Ct-VZ; Sat, 22 Mar 2025 09:01: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=ZgChfj3F3cEn1VpPV0MJyfH1r2JOulg3JfdvcbIm9xo=; b=C98yJToUeigBAq2x3DNM96lOUWi5OaeG9Ze6CAf5XkmQYxjiQSz3zHjdRt8jKHXGNjZZA/CJp4EqzYC6dDs0jIauOBKqWwH15x7CkwmFcujE9xMiiqKJMumvAf09d6xW2gsxIOeGRLifmn+FG1xLDmovP1O8OT7VGpOyExAXLqaLf/4CIMnooj1UOGwQPH13SGtWel9afl+kw8hl5676V2NBPVq6NzuwfvEfYM9rdEy2hlzDQVm1OhJQBQ0rU4KeUX+OtnnmZP46LDRvhNyuqinIu0M+mWiQcwa6t3pq56y7UxL6mnKHG9PMS5CghjiEDK/mgDy7P8yFriTeN5CcTg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvyTG-00048F-KF; Sat, 22 Mar 2025 09:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77153] [PATCH v2 1/3] doc: cookbook: Fix terminology for libvirt 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 13:01:02 +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.174264843115806 (code B ref 77153); Sat, 22 Mar 2025 13:01:02 +0000 Received: (at 77153) by debbugs.gnu.org; 22 Mar 2025 13:00:31 +0000 Received: from localhost ([127.0.0.1]:41485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvySk-00046s-Rc for submit@debbugs.gnu.org; Sat, 22 Mar 2025 09:00:31 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:47588) 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 1tvySi-00046J-9b for 77153@debbugs.gnu.org; Sat, 22 Mar 2025 09:00:28 -0400 Received: by mail-pl1-x642.google.com with SMTP id d9443c01a7336-224341bbc1dso57236675ad.3 for <77153@debbugs.gnu.org>; Sat, 22 Mar 2025 06:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742648422; x=1743253222; 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=ZgChfj3F3cEn1VpPV0MJyfH1r2JOulg3JfdvcbIm9xo=; b=iBCnjUyycvZcJZHqvqQuUKCuQagthzGBCaSxuw6IFDhhIQxjKXESacEc2YL95fX58W VTrMHDy0b9EZXaa/eT/Dy4+fApwn4h6eX6oRvY/u45+y0Ie50T5MwbklmUoFaMkhb2CL 06iOEup6A2ONB/hA5bPsRO5rWT1BM7+afDNC2gdvfZwW4nSJo40LNOctqAY4pHKqczEl D3AuxKEjwFxKtCI4Mj0FdQcx8b/CLn6wpnis6vejRpOw/4GWzR0ufeVPeNfIimjWF70o 5Sbqy9qqdFpjo2HNkI1gpBKG+AqInvsfNWY2Esp6DGjIK1jIaGD9pbW7HoVbUskH5f/m POtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742648422; x=1743253222; 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=ZgChfj3F3cEn1VpPV0MJyfH1r2JOulg3JfdvcbIm9xo=; b=bzJbSaoQQBGle9wYVHIcusMvDPyRF/79fTf6mfwEzEHaZVXE3/8sT2W2SChDHglW++ KKh6BpZrthMaGOKtWPvw1ikUgJpiIp4pol0Vp+OhqTsaLuBceBI7qyx99V2GJvlR46q4 /Fl9ZCJEfH08dx1FNt9UkLaBjgXQYnXAYhnLTC4imfFg6d5kYe2kd3F9KbVieF2YazYZ KaNvNobRGJnhIsCxP/pY8F3eNs1P4GJ70IzsAoeDOj57/F2IxdGzjueOA28OsKlF3LZ2 bMYPtXUXVbblm+nbdF+gOEQ3qiD/znLFjK1NmTFaYe/MRSgr5u2xAKPYp572xCEuKcFg TdNg== X-Gm-Message-State: AOJu0YwDlP5gZAPd/H2bw6ydBy52P5SJjDQ7RKC40JwqfagtxcapSStB UNMCW3b3sNwubZnMoLBI/rr/OehWGXSl/8JsbRYN5YygGB1Wy3CDY00/wVna X-Gm-Gg: ASbGnct3hYA3Q/5yu0bwsL7zSYQN1EHyvyQSr2kjaPinviAuJPh/EiPz/eEYD9/80oy WBwqqy1ZDRJ/a0ZRrQ2Q7b7gueZwx8LUP8kJCfNoanpnGyB8BmRg9OqJzeYSKgy0ieKKSF7Zesq S4X7g/7aaqwXneMoRzNl5/ZZTXGa8oGQwEL8l4nvpFQQCKRy55cKCY+myFCK8AjJ7zHcpUiq2zo PZBJo8LrLTzzfHdDb0K8WF3qg+ejSO1Y+pUvwZXkWwYuD7BwX384QtCJJ5VHqa3TB+y1KzR4JTc 8frsIwgnk81xHipXP+T1NUsyXinqCw2lW6Ie6k5IZmtTVNEdLuP44ha54hD5+8oPPZY= X-Google-Smtp-Source: AGHT+IGs3Q6Q26VSgfPCtFrK5zOhbSCR9kxusuu5GrLdzfInb2vKptms9VCWsTNumfg/ms1EzXj4mQ== X-Received: by 2002:a05:6a00:2190:b0:736:a8db:93bb with SMTP id d2e1a72fcca58-7390596687bmr10339801b3a.5.1742648421758; Sat, 22 Mar 2025 06:00:21 -0700 (PDT) Received: from localhost.localdomain (utm3.nitt.edu. [14.139.162.2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73905fd5747sm4074838b3a.55.2025.03.22.06.00.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Mar 2025 06:00:21 -0700 (PDT) From: 45mg <45mg.writes@gmail.com> Date: Sat, 22 Mar 2025 18:30:11 +0530 Message-ID: <0f1ccdd705e4d3c5823ab8679ee8fa3f7b9a8d36.1742647810.git.45mg.writes@gmail.com> 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]: Replace the term 'virtual bridge' with 'virtual network switch'. This is the term used by the libvirt Wiki to refer to the combined setup of a 'virtual bridge' network interface, dnsmasq instance bound to it, and firewall rules associated with it; 'bridge' is ambiguous because it is sometimes used with this meaning, and sometimes to refer specifically to the virtual network device called a 'bridge'. Change-Id: Ibd10fe76321eb61e9ca23d8124634d1108d4faad --- doc/guix-cookbook.texi | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index d9b98a2ab3..a0d148f469 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -25,6 +25,7 @@ Copyright @copyright{} 2023-2024 Ludovic Courtès@* Copyright @copyright{} 2023 Thomas Ieong@* Copyright @copyright{} 2024 Florian Pelz@* +Copyright @copyright{} 2025 45mg@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -3879,29 +3880,29 @@ Routed network for libvirt @section Routed network for libvirt @cindex Virtual network bridge interface @cindex networking, virtual bridge -@cindex libvirt, virtual network bridge +@cindex libvirt, virtual network switch If the machine hosting your virtual machines is connected wirelessly to the network, you won't be able to use a true network bridge as explained in the preceding section (@pxref{Network bridge for QEMU}). In this -case, the next best option is to use a @emph{virtual} bridge with static -routing and to configure a libvirt-powered virtual machine to use it -(via the @command{virt-manager} GUI for example). This is similar to -the default mode of operation of QEMU/libvirt, except that instead of -using @abbr{NAT, Network Address Translation}, it relies on static -routes to join the @abbr{VM, virtual machine} IP address to the +case, the next best option is to use a @emph{virtual network switch} +with static routing and to configure a libvirt-powered virtual machine +to use it (via the @command{virt-manager} GUI for example). This is +similar to the default mode of operation of QEMU/libvirt, except that +instead of using @abbr{NAT, Network Address Translation}, it relies on +static routes to join the @abbr{VM, virtual machine} IP address to the @abbr{LAN, local area network}. This provides two-way connectivity to and from the virtual machine, which is needed for exposing services hosted on the virtual machine. -@subsection Creating a virtual network bridge +@subsection Creating a virtual network switch -A virtual network bridge consists of a few components/configurations, +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 -bridge. You first need to choose a network subnet for your virtual -bridge; if your home LAN is in the @samp{192.168.1.0/24} network, you +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: