Skip to contentSkip to conversation

Has anyone got tun/tap network running on WinXp host / Linux guest ?

Qemu-devel M. Khalid Khan 3 participants 5 messages Nov 25, 2004

lore
Share & tools
lore
#0 lore raw

I must confess my ignorance but I'm having no luck in setting up a tun/tap network between WinXP host and Suse Linux guest. BTW user-net is working great but I need the emulated system to be a full fledged server. From what I can gather by reading the docs and messages, QEMU needs a script to setup tun/tap network ( by default /etc/qemu-ifup ). Unless I totally missed it, this script must be on the host OS. Now my host OS being WinXP, I don't have any "/etc" or any linux like scripts. Is there an alternate script/batch file for Windows? If not, what is the alternative? Care to help.
Khalid

PS: I really appreciate what is being done, keep up the good work.

#1 lore raw
Quoted 2 lines · M. Khalid Khan

I must confess my ignorance but I'm having no luck in setting up a tun/tap network between WinXP host and Suse Linux guest.

You mean Linux guest and WinXP host I assume? As there is no support for tuntap in a Windows host, and never will. (Windows doesn't directly provide the mechisms need to do this. I am aware of two alternatives: the easy way is to set up VPN through user-net, the hard way is to patch qemu to use winpcap.)

Quoted 7 lines

BTW user-net is working
great but I need the emulated system to be a full fledged server. From what I can gather by reading the docs and messages, QEMU needs a script to setup tun/tap network ( by default /etc/qemu-ifup ). Unless I totally missed it, this script must be on the host OS. Now my host OS being WinXP, I don't have any "/etc" or any linux like scripts. Is there an alternate script/batch file for Windows? If not, what is the alternative?

Look up the -redir option.

Quoted 5 lines

Care to help.
Khalid

PS: I really appreciate what is being done, keep up the good work.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#2 lore raw

Doesn't OpenVPN use a port of tun/tap?

Piotrek

Quoted 4 lines · Jim C. Brown

You mean Linux guest and WinXP host I assume? As there is no support for tuntap in a Windows host, and never will. (Windows doesn't directly provide the mechisms need to do this. I am aware of two alternatives: the easy way is to set up VPN through user-net, the hard way is to patch qemu to use winpcap.)

#3 lore raw
Quoted 4 lines · Piotras

Doesn't OpenVPN use a port of tun/tap?

Piotrek

Yes, called TAP-Win32. I suppose you could patch qemu to use this directly, but afaik qemu currently has no support for this mode.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#4 lore raw
In reply to Jim C. Brown

Thank you so much Jim, can you give me some pointers on how to setup vpn through user-net in this situation. I looked at -redir option but it looks too tedious to set each and every port needed. If only there could be block redir option i.e. all ports from N to N+M on host be redirected to guest ports 0 to M. Thanks again for your help
Khalid

----- Original Message ----- From: "Jim C. Brown" <[email protected]>
To: "M. Khalid Khan" <[email protected]>; <[email protected]>
Sent: Thursday, November 25, 2004 7:22 AM
Subject: Re: [Qemu-devel] Has anyone got tun/tap network running on WinXp host / Linux guest ?

Quoted 29 lines · M. Khalid Khan
Quoted 2 lines

I must confess my ignorance but I'm having no luck in setting up a tun/tap network between WinXP host and Suse Linux guest.

You mean Linux guest and WinXP host I assume? As there is no support for tuntap in a Windows host, and never will. (Windows doesn't directly provide the mechisms need to do this. I am aware of two alternatives: the easy way is to set up VPN through user-net, the hard way is to patch qemu to use winpcap.)

Quoted 7 lines

BTW user-net is working
great but I need the emulated system to be a full fledged server. From what I can gather by reading the docs and messages, QEMU needs a script to setup tun/tap network ( by default /etc/qemu-ifup ). Unless I totally missed it, this script must be on the host OS. Now my host OS being WinXP, I don't have any "/etc" or any linux like scripts. Is there an alternate script/batch file for Windows? If not, what is the alternative?

Look up the -redir option.

Quoted 5 lines

Care to help.
Khalid

PS: I really appreciate what is being done, keep up the good work.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.