I am able to find one solution using user mode networking. Issue i was seeing is with 2.3 version of Qemu. Today i downloaded latest 2.4.5 version, and without any effort just using -net nic, -net user in the command line enables the network on the guest, on windows platform. hopefully TAP should also work, will give a try.
But user mode networking performance is very slow, and kvm acceleration won't work in windows host. need to see how to get maximum speed out of qemu on windows host. On Tue, Nov 3, 2015 at 5:17 PM, test comp <comptes...@gmail.com> wrote: > Thanks For the Response, > > yeah i have been through that doc before, but didn't work. > > if it is a ubuntu host i don't have issue with networking. > > But with windows 8 host, its not working as expected. > > i tried bridging the tap network, and also user mode networking. But for > some reason VM network is always internal. > > It cannot connect to host or to external internet connection. > > and most of the time i am getting this error while using tap network > "qemu-system-i386.exe: -net tap,ifname=TAP: Device 'tap' could not be > initialized" > > trying all different combinations but nothing successful. > qemu-system-i386.exe -hda linux.img -boot c -vga std -net nic,model=virtio > -net bridge,br=tapbr -m 1024 -net user,id=Ethernet,net= > 192.168.0.0/24,dhcpstart=192.168.0.1 -redir tcp:5555::80 -redir > tcp:5556::445 > > Again thanks for the inputs > > > > > On Mon, Nov 2, 2015 at 2:02 PM, <7egg...@online.de> wrote: > >> >> >> On Mon, 2 Nov 2015, test comp wrote: >> >> Hi All, >>> I am running qemu on windows 8 host and trying to get the network >>> enabled on the linux guest with virtio drivers. >>> but not successful so far, i have also tried setting the static ip >>> address and dns configuration on my linux guest. But >>> nothing works. >>> >>> I am using 2.3.0 version Qemu and below is the command line i am >>> executing. >>> >>> qemu-system-x86_64.exe -hda linux.img -boot c -vga std -net >>> nic,model=virtio -m 1024 >>> >> >> qemu will create a network segment just for the emulated system. You need >> to connect that segment using e.g. the "-net user" option (NAT) or to >> connect it using a tap device. >> >> For setting up the TAP device, I found this: >> >> http://wiki.laptop.org/go/Talk:Using_QEMU_on_Windows#Networking_Issues_in_QEmu >> >> (I think setting up ICS is not what you'd want, I'd try to skip it and >> just breate the bridge. That's what I did on Linux.) >> >> HTH > > >