setup kvm on a wireless interface on a laptop machine
As someone rightly said once, Nothing is impossible in LinuxTM, I could achieve the kvm in my host with a bridged network over a wireless interface.
These are the steps I followed to accomplish the same.
I installed the
virt-manager
package to manage the installation more efficiently. I installed it as below.sudo apt-get install virt-manager
Now, create a new sub-network using Virt Manager’s GUI as highlighted below. This is basically a sub network of our existing host network.
After setting this new sub-network, check if the network is available and ping some sites to check the network connectivity.
Also, check the routing information using
route
command and make surewlan0
andvirbr2
doesn't have the same destination.Now, the final step to make it work is to issue the below command. Here 192.168.1.9 is the host machine address.
arp -i wlan0 -Ds 192.168.1.9 wlan0 pub
After the above step, I was able to successfully install a Fedora guest OS using the
virt-manager
.
References
http://specman1.wordpress.com/2014/01/02/wireless-bridging-virtual-machines-kvm/ https://superuser.com/questions/694929/wireless-bridge-on-kvm-virtual-machine