* A bridge network for QEMU VMs
@ 2024-06-11 11:52 Fabio Natali
2024-06-11 13:49 ` David Larsson
2024-06-11 20:50 ` Sergey Trofimov
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Natali @ 2024-06-11 11:52 UTC (permalink / raw)
To: help-guix
Hi,
I'd like to set up a server's network so as to have:
- a bridge interface,
- the real Ethernet interface to be associated to the bridge.
Among other things, this setup makes it possible to use QEMU in "bridge
networking" mode, i.e. to have QEMU VMs to also connect to the bridge
and become reachable as ordinary machines in the LAN.
The Cookbook has a pretty thorough section⁰ on how to achieve
this. However, it makes use of NetworkManager, which makes things rather
stateful and can't be configured declaratively, if I understand it
correctly? I think I'd have a preference for
'static-networking-service-type' instead.
However, when it comes to 'static-networking-service-type', I found this
other thread¹ which indicates some missing pieces in Guix's
'network-link' and 'network-set-up/linux'. Looking at the Guix logs, I
don't think there has been any further development on this since the
thread.
Anyone else who has encountered the same issue? Any other possibility I
should take into account? Could it be worth to re-consider the
NetworkManager approach? Should I think of a little patch that adds the
missing functionality to 'static-networking-service-type'?
Thanks, cheers, Fabio.
⁰ https://guix.gnu.org/cookbook/en/html_node/Network-bridge-for-QEMU.html
¹ https://lists.gnu.org/archive/html/help-guix/2023-03/msg00269.html
--
Fabio Natali
https://fabionatali.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A bridge network for QEMU VMs
2024-06-11 11:52 A bridge network for QEMU VMs Fabio Natali
@ 2024-06-11 13:49 ` David Larsson
2024-06-11 20:50 ` Sergey Trofimov
1 sibling, 0 replies; 4+ messages in thread
From: David Larsson @ 2024-06-11 13:49 UTC (permalink / raw)
To: help-guix
Hi,
There is an openvswitch service that might be useful. Marius used it when showing how to setup ganeti on Guix here: <https://guix.gnu.org/en/blog/2020/running-a-ganeti-cluster-on-guix/>
I have a Ganeti cluster myself and occasionally I have run some manual openvswitch commands for VM's not managed by ganeti which I think could have been declared similarly to whats done in the blog post if u want it to be declarative.
Regards,
David
On June 11, 2024 1:52:34 PM GMT+02:00, Fabio Natali <me@fabionatali.com> wrote:
>Hi,
>
>I'd like to set up a server's network so as to have:
>
>- a bridge interface,
>- the real Ethernet interface to be associated to the bridge.
>
>Among other things, this setup makes it possible to use QEMU in "bridge
>networking" mode, i.e. to have QEMU VMs to also connect to the bridge
>and become reachable as ordinary machines in the LAN.
>
>The Cookbook has a pretty thorough section⁰ on how to achieve
>this. However, it makes use of NetworkManager, which makes things rather
>stateful and can't be configured declaratively, if I understand it
>correctly? I think I'd have a preference for
>'static-networking-service-type' instead.
>
>However, when it comes to 'static-networking-service-type', I found this
>other thread¹ which indicates some missing pieces in Guix's
>'network-link' and 'network-set-up/linux'. Looking at the Guix logs, I
>don't think there has been any further development on this since the
>thread.
>
>Anyone else who has encountered the same issue? Any other possibility I
>should take into account? Could it be worth to re-consider the
>NetworkManager approach? Should I think of a little patch that adds the
>missing functionality to 'static-networking-service-type'?
>
>Thanks, cheers, Fabio.
>
>
>⁰ https://guix.gnu.org/cookbook/en/html_node/Network-bridge-for-QEMU.html
>¹ https://lists.gnu.org/archive/html/help-guix/2023-03/msg00269.html
>
>
>--
>Fabio Natali
>https://fabionatali.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A bridge network for QEMU VMs
2024-06-11 11:52 A bridge network for QEMU VMs Fabio Natali
2024-06-11 13:49 ` David Larsson
@ 2024-06-11 20:50 ` Sergey Trofimov
2024-06-12 15:17 ` Fabio Natali
1 sibling, 1 reply; 4+ messages in thread
From: Sergey Trofimov @ 2024-06-11 20:50 UTC (permalink / raw)
To: Fabio Natali; +Cc: help-guix
Hi, I've made a shepherd service for that:
https://github.com/sarg/dotfiles/blob/c3d9fe10f625e0434301c1c55890579a73919b52/guix/hass.scm#L27-L49
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-12 15:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11 11:52 A bridge network for QEMU VMs Fabio Natali
2024-06-11 13:49 ` David Larsson
2024-06-11 20:50 ` Sergey Trofimov
2024-06-12 15:17 ` Fabio Natali
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.