On 6/6/25 20:10, Charles Curley wrote:
I'm setting up a new machine running trixie to run virtual machines,
using virt-manager. virt-manager sets up a natted network for the
virtual machines.

Is it possible to set things up so that the virtual machines are on the
same network as the host machine? The host is on 192.168.100.0/24. Can
I have the virtual machines also on 192.168.100.0?


Yes see below! ;^)

This is what I use in "/etc/systemd/network":

==> br0.netdev <==
[NetDev]
        Name=br0
        Kind=bridge
        MACAddress=<MAC-ADDR-OF-INTERFACE-TO-BE-BRIDGED>

==> br0.network <==
[Match]
        Name=br0

[Network]
        DHCP=ipv4


Note that this is an HYP the DHCP leases are coming from upstream for the host and the VMs.

I use "--network bridge=br0,mac=<VM-MAC>" as part of the virt-install CMD.

HTH.


P.S.

You need phisical access to the host if something goes sideways when setting up the bridge!

--
John Doe

Reply via email to