summaryrefslogtreecommitdiff
path: root/doc/guix-cookbook.texi
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2026-04-26 21:25:08 +0800
committer宋文武 <iyzsong@member.fsf.org>2026-05-01 22:26:44 +0800
commit60317b1dcf9d967abb0f5980212c71c4c66977b7 (patch)
treec096180dab7feef5da6bd0e9f02d7dcd0a0849af /doc/guix-cookbook.texi
parent517408a7db6a8bf5efdd9e09f39302083d0f6100 (diff)
doc: cookbook: Fix qemu network bridge example.
* doc/guix-cookbook.texi (Virtual Machines) [Network bridge for QEMU]: Enable 'autoconnect' for the 'bridge-slave-enp2s0' connection. Fix 'bridge.conf' example. Add missing 'helper' argument to the qemu invocation. Change-Id: I94fdb69b65cb032cfc9f21ae1dfab950937f1a70
Diffstat (limited to 'doc/guix-cookbook.texi')
-rw-r--r--doc/guix-cookbook.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index ffadd32c3de..4b4a5a0f2a7 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -4491,7 +4491,7 @@ network. Assuming your interface is named @samp{enp2s0}, the following
4491command can be used to do so: 4491command can be used to do so:
4492 4492
4493@example sh 4493@example sh
4494# nmcli con add type bridge-slave ifname enp2s0 master br0 4494# nmcli con add type bridge-slave autoconnect yes ifname enp2s0 master br0
4495@end example 4495@end example
4496 4496
4497@quotation Important 4497@quotation Important
@@ -4527,8 +4527,8 @@ bridge interface, as the default is to deny all. Add the following to
4527your list of services to do so: 4527your list of services to do so:
4528 4528
4529@example lisp 4529@example lisp
4530(extra-special-file "/etc/qemu/host.conf" 4530(extra-special-file "/etc/qemu/bridge.conf"
4531 (plain-file "host.conf" "allow br0\n")) 4531 (plain-file "bridge.conf" "allow br0\n"))
4532@end example 4532@end example
4533 4533
4534@subsection Invoking QEMU with the right command line options 4534@subsection Invoking QEMU with the right command line options
@@ -4546,7 +4546,7 @@ machine making use of the bridge would cause networking issues.
4546@example sh 4546@example sh
4547$ qemu-system-x86_64 [...] \ 4547$ qemu-system-x86_64 [...] \
4548 -device virtio-net-pci,netdev=user0,mac=XX:XX:XX:XX:XX:XX \ 4548 -device virtio-net-pci,netdev=user0,mac=XX:XX:XX:XX:XX:XX \
4549 -netdev bridge,id=user0,br=br0 \ 4549 -netdev bridge,helper=/run/privileged/bin/qemu-bridge-helper,id=user0,br=br0 \
4550 [...] 4550 [...]
4551@end example 4551@end example
4552 4552