I’m trying to create working connection from QEMU Virt clients to the Internet. I want to do this solily with Network manager what I did:
In NetworkManager removed the (working) WiFi connection. I want to use that for the bridge
Create a new connection, set it to bridge and called it WiFi Bridge with Interface name virbr0.
Added my physical adaptor to this bridge, providing WiFi credentials
Created a vm Windows with all virtio drivers installed and connected this to virbr0
Result:
On the host the Wifi Bridge is listed as Connected
On the client I see an ip address assigned to the adaptor, and I can successfully ping the Gateway
On the client I can not ping 9.9.9.9
On the client the gateway IP is the adress the ip in the status of the bridge in NetworkManager
On the client that same address is DNS
On the host I can also ping this IP Adress.
This looks like a routing problem in the bridge network but I am no entirly shure. What do I have to setup additionally on the bridge so that is can connect to the internet?
Hi!
You can’t have a bridge on WiFi afaik. This is because you can only have one mac address per interface. You can on ethernet though.
VMware and Virtualbox are using a non-standard way.
I have access to the host (the webserver running there)
but not to the internet
But I also see that the dns configured (the host ip) is not resolving. (insert “It’s always DNS meme here”)
Not sure why. The way I understand is that bridge should act as DHCP (which it does, client gets ip) and DNS (relay) which it doesn´t. based on an internal dnsmasq if I’m not mistaken.
As mentioned above, Wi-Fi client is not supported for this setup.
Assuming you configured it correctly, IP and DNS for both host and guests can be obtained with DHCP from your LAN router, so the host does not need to run any DNS server or forwarder.
Do not confuse the shared host bridge with the default virtual network bridge virbr0, so better use a different interface name to avoid conflicts.