I try
http://qemu-forum.ipi.fi/viewtopic.php?t=1963 to setup qemu host network, but no luck. Seems like there are a few things not too clear to me. Hope someone can give me advice.
My understanding is in host (my host running suse 11.0 with nic iwl4965agn):
1.) create tap1
2.) setup bridge (e.g. br1)
3.) attach network to bridge (e.g. attach wlan0 to br1)
in guest (qemu with debian kernel 2.6.25):
1.) create tap2
2.) config network to use the same ip network as host
3.)
The scripts i use are as below (and it is executed orderly):
create_host_tap.sh
Code:
sudo tunctl -t tap1 -u neo
sudo /sbin/ifconfig tap1 up
bridge_up.sh
Code:
sudo /sbin/brctl addbr br1
sudo /sbin/brctl addif br1 tap1
create_guest_tap.sh
Code:
sudo tunctl -t tap2 -u neo
sudo /sbin/ifconfig tap2 up
start_qemu.sh
Code:
qemu -hda c.img -m 512 -net nic -net tap -localtime
however, I suppose this is incorrect because each time when executing these scripts, the network hangs (no longer I am able to connect to the internet.)
How can I solve this problem in order to use network as host in qemu?
Thank you very much,