Not sure this is a virt-manager question: probably more of a general virtual networking question.
Curious: Did you have this in VirtualBox ?
Anyway, I'd look at MacVTap - Linux Virtualization Wiki
- " Typically, this is used to make both the guest and the host show up directly on the switch that the host is connected to."
.... I tried it in RHEL 8.4 (at the time) but had unworkable performance issues but later found a note about "intel_iommu=pt" at
https://www.linuxsecrets.com/3417-creating-kvm-virtual-passthrough which might address that. ( the VF stuff there not supported in RHEL last I looked )
Currently I use PCI passthru to use a 2nd host NIC directly in a VM but then that only works for 1 VM so if you have an unspecified number of VMs that's not gonna work for you.
Sorry can't be of more help.
On Wednesday, 19 October 2022 at 21:42:02 BST, Mihai Dobrescu <msdobrescu@xxxxxxxxx> wrote:
Hi,
I've switched from VirtualBox to Virt Manager and I need to have virtual machines in the same subnet as the host.
How could I achieve that? I've spent all day looking at various articles on how to do that, but I could not manage to achieve it.
Is there a reliable step by step procedure?
I use a Gentoo derivative.
Thank you,
Mihai Sorin Dobrescu