hlusa
January 23, 2025, 3:04am
1
Personally I am facing a problem of lack of Ethernet port. Let’s say that the only way to connect my host computer to the physical network is Wifi while all the tutorials I have read configure the bridge mode only via Ethernet.
So I would like to know how to configure the bridge network mode with my host machine connected via wifi to be able to run my QEMU/KVM virtual machines.
I have been looking for a workaround for several days without success.
Your help would be welcome.
Thanks in advance
ogra
January 23, 2025, 8:09am
2
1 Like
Hello!
Try this tutorial work for me. This dist file is not mine.
bridged-networking-on-wireless-interface-with-kvm.md
# Bridged Networking on Wireless Interface with KVM and more...
So I needed to upgrade my home "web hosting" server from a Raspberry Pi 3b to something more flexible where I could even simulate a Raspberry Pi 3b given power. The new server hardware is now an Intel NUC i7 16GB / 250Gb SSD NVME. :grin:
I order to accomplish this task I had to find a way to bridge the wireless interface which is the faster one on my actual home network setup.
I've also tried to mix the functionnality from another Rapsberry Pi (_3b+ this time_) who's acting as WLAN to LAN bridge. [More details on this setup](https://gist.github.com/Jiab77/76000284f8200da5019a232854421564). But this was finally a bad idea and I was not able to make it work along the virtual network bridge created by `libvirt` or manually created... (_I will explain why later_)
The main difficulty was to use the `DMZ` IP address given by the router and route the traffic to the guest VM's.
## Server / Desktop
This file has been truncated. show original
qemu-hook
#!/bin/bash
# IMPORTANT: Change the "VM NAME" string to match your actual VM Name.
# In order to create rules to other VMs, just duplicate the below block and configure
# it accordingly.
if [ "${1}" = "VM NAME" ]; then
# Update the following variables to fit your setup
BRIDGE_IFACE=
HOST_IP=
This file has been truncated. show original
thanks!