Friends, I am trying to bridge my qemu guest to the real network using linux bridge utility.
For this, I am using very simple method :
With above 4 steps, I was get the network of my guest working properly. But now the problem is that my host network is not working after i attach my eth0 to bridge br0.
I confirmed that after step1 and step2 my host network stops working. But the guest network continue to work and this is what baffles me.
Can somebody please point out what is the problem with this two lines ?
PS : I have tried almost all methods given on the Internet and have not succeeded in any method. Besides my question is related to linux networking and not qemu in particular
I realized my stupidity. but since the question was still intersting and useful at the same time, I am not closing it.
Here is the issue. I should have ip stack on the bridge and not the eth0.
Because an ip stack on eth0 breaks the bridge structure. I just added a couple of steps to my solution and it works like a charm. Better than most of the solutions on the web.
Steps :
The qemu command i used was :
sudo qemu-system-i386 -enable-kvm -net tap,vlan=0,ifname=tap0 -net nic,vlan=0 -hda ~/Data/OS_DiskImages/ubuntu11.10/disk.qcow2
Detailed steps with scripts given here : link