From: Chris Keschnat via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: Network bridge (for virsh)
Date: Fri, 30 Sep 2022 07:57:40 +0200 [thread overview]
Message-ID: <86fsg9v1nb.fsf@catsu.it> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello,
I'm using the ~Virtual machine manager~. During
installation/configuration I could not figure out the way to define a
network bridge. I created it manually with ~virsh~:
#+begin_src sh
sudo virsh net-define /gnu/store/47s1cs65izld791m38aa461s02q5ngb7-libvirt-8.6.0/etc/libvirt/qemu/networks/default.xml
sudo virsh net-autostart default
sudo virsh net-start default
#+end_src
(the =default.xml= looks like this)
#+begin_src conf
<network>
<name>default</name>
<bridge name='virbr0'/>
<forward/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
#+end_src
What is the declarative way here? If this is documented somewhere I
would appreciate a link. Searching for ~bridge~ on the
networking[1][2] and virtualization[3] docs yields no results
Thank you
Chris
[1] https://guix.gnu.org/manual/devel/en/html_node/Networking-Setup.html
[2] https://guix.gnu.org/manual/en/html_node/Networking-Services.html
[3] https://guix.gnu.org/manual/en/html_node/Virtualization-Services.html
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCAAdFiEEJeJoXz7yKQFBopzYUzV95hT0vZUFAmM2hugACgkQUzV95hT0
vZUgggwAlVBLfLoHmqTBZhLYpDE4wBjZLBaNyNzGr8QlZ272xID3+O5SWoxvfTqw
ywwZyxOlr3P4DP0lExBCOCKiMAULt+0IM1xQySXynGf9yop8/Ii5qtcAaABA6rro
XfZGZc8O6mVRboH5FZVCd9FQ+I1cSsNPhBUtvNltvIlXRZSAIIXrD72EOe1UodAh
4i4/DOMAqJICcLtkZiwAdeQD/l2V0HihvYGkSrrvoay8T4D5VbDacLFiP5xrF8cS
57xIluyhQreRn0XN/LBt2GxckKsw5BozQT4FETdG42ATJAc8FTqQzPXFYjQut/El
G3DdPzni3OAKosfS3JHf+yaDlej8+Ly9AesAdJqz4d9LWxz4lLO4Wu7UkEvhDlOY
Id2SMPYcqcNalnFmwSni68sX9omparor7fj2nonc88eVIN0MaG2bPtwu/tgTv5BB
NLkLVnyQs7TH7EyH26PwEe/JXp1DBgjOsd9Vn0OtLqbGWLNwcrEsBECvRsIl+JKh
xUTTP8i9
=0zzL
-----END PGP SIGNATURE-----
reply other threads:[~2022-09-30 6:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fsg9v1nb.fsf@catsu.it \
--to=help-guix@gnu.org \
--cc=chris@catsu.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).