(I use the Mate-Compiz spin on my desktop computer [IntensePC])
How I was able to achieve it:
Connection Details, Virtual Networks, clicking on the "+" change mode to "Open" (the rest is all default). This creates me a "virbr0"
Now I stop "virbr0" on the red minus icon and while clicking o the trash it disappears in the connection details. While changing to terminal and type nmcli c it is still active. I stop it with nmcli c down virbr0
Back in the “Connection Details” i do create "+"a new virtual network using the default as name: network
This time I choose Mode: NAT and do let everything as it was (default). This creates me a Network connected to virbr0
Opening my VM (QEMU/KVM) under NIC I select the Network source: Virtual network 'network :NAT'
Now i can start the WM and do get DHCP working. I am able to ping my host and also able to communicate between them.
I used Virtualbox before and had the option there to create a bridged connection on the vm guest choosing the Host’s NW-adapter I wanted to use as bridge.
Is there a simpler way to achieve this? And is there a tool where i can control the status of the connections? A script I can use in terminal would be ok.
When this done, do select the network on the specific VM as in the picture below:
Now you can start the VM
With this procedure you theoretically created you a virtual x-port switch where you connect all your VM’s.
If you use Fedora Workstation please do you the favor and use the nm-connection-editor instead of the build in Network editor in the Settings of Gnome 4.2x. Otherwise you will get bothered wit auto network etc … really annoying.
Of course, if you are a happy Terminal user make use of nmcli to manage your network.
If you can, try to include toolbox or ‘podman’ with rootless containers, in your workflow.
I think this way you not have to fight wit this unnecessary routing troubles.
I will add this mini tutorial to the discussion on discussion.fp.org. Might be that I will get some more Tricks/Tips to tweak the libvirt/network workflow.