Hello,
I am trying to connect a Win11 VM to my home network. I just want it to get a regular IP from my DHCP server. I setup my VM following this tutorial: https://linustechtips.com/topic/1379063-windows-11-in-virt-manager/
I have already tried setting DNS servers, but I think my problem is deeper within QEMU/KVM/virt-manager.
How do I simply pass my network connection through to the VM?
Here are some details:
$ nmcli device status
DEVICE TYPE STATE CONNECTION
enp39s0 ethernet connected Home LAN
virbr1 bridge connected (externally) virbr1
wlo1 wifi unavailable --
lo loopback unmanaged --
I tried adding a bridge following the instructions here: Network bridge - ArchWiki
sudo ip link add name vmbridge type bridge
sudo ip link set vmbridge up
sudo ip link set enp39s0 master vmbridge
With this I managed to get a connection in the Win11 VM with these settings in virt-manager:
But then I noticed while the bridge is active, I do not have internet connection on my host system (or at least in Firefox, ping google.com
works…).
I am a bit lost on how to set this up properly. Please advise