How to configure bridged networking for KVM virtual machines in Kali Linux host?
My base/host machine is running Kali Linux. It is a fresh install. My purpose is to configure the use of Bridged network mode in the KVM virtual machines I install and run on top of this host OS. I tried to follow this video tutorial. Following are the details.
During installation of host OS, I got the following question and I selected
wlan0 . Also, during the installation, I was asked for the password of WiFi, and it got connected to Wifi. The WiFi device gets internet from outside via an ethernet cable connected into it.
After installation of the OS, the network situation is like this:
Then I went ahead and followed the entire YouTube tutorial linked above. Initially, *i.e. before editing
/etc/network/interfaces file, and my network interfaces situation looked like below:
I followed the tutorial and edited the
/etc/network/interfaces file, after which it looked like as follows. Notice how the state of br0 is
unknown. Shouldn’t it be
sudo systemctl restart networking, my internet stopped working. I could not even ping gateway (192.168.10.1) and kept getting
Destination Host Unreachable. My question is why and what do I do to fix it?
The problem here is not Kali. While I in general agree that Kali is not a good choice if you don’t need Kali, it should support bridging.
But bridging with wifi is difficult.
In this case I would suggest the following possibilities:
- Use Ethernet, and bridge that. I don’t see any mistakes in the configuration here, so I believe this should work.
- Use NAT or L3 forwarding with WiFi.
- Use a product such as VMWare that’s able to emulate bridging over WiFi, by using some arcane black magic.