On Fri, Jun 6, 2025 at 2:11 PM Charles Curley
<charlescur...@charlescurley.com> 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?

I believe the sharp edge is two DHCP servers on the same network. One
DHCP server is the one that services your physical network, and the
other DHCP server is the one for the virtual network. You don't want
the two servers competing to serve addresses.

You should use on DHCP server, and setup your VMs to get an address
from the DHCP server on the physical network. That's easier said than
done because libvirt docs don't provide instructions for the use case.
Confer, <https://wiki.libvirt.org/VirtualNetworking.html>.

I follow these instructions for setting up a bridge from the virtual
network to the physical network, like
<https://serverfault.com/q/1003855>.

Jeff

Reply via email to