help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Network bridge (for virsh)


From: Chris Keschnat
Subject: Network bridge (for virsh)
Date: Fri, 30 Sep 2022 07:57:40 +0200

-----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 via email to

[Prev in Thread] Current Thread [Next in Thread]