Usermode networking for win32
I've been playing with the idea of compiling (via mingw, sdl) user
mode networking (slirp) under windows.
Right now it compiles but when i try to run it, nothing happens.
For anyone interested:
http://www.dblab.ece.ntua.gr/~estama/qemu-slirp-win32.zip
is my working source.
The only changes are in the qemu/slirp directory and the qemu/i386-softmmu/config.mak
the source is from todays cvs
any suggestions appreciated because i'm mighty stuck.
teris.
ps what i'm trying to do is to have a way to "autorun" live linux distributions under windows with networking enabled. ps2 many many thanks to Fabrice and the rest of the guys.
In fact, if you look back through the archives, what you are trying to do with autorunning live linux distros was my original reason for suggesting addition of proxy networking to QEMU.
I'm glad someone finally has time to make it work (unlike me).
-- John.
Quoted 32 lines · Elefterios Stamatogiannakis
I've been playing with the idea of compiling (via mingw, sdl) user
mode networking (slirp) under windows.Right now it compiles but when i try to run it, nothing happens.
For anyone interested:
http://www.dblab.ece.ntua.gr/~estama/qemu-slirp-win32.zip
is my working source.
The only changes are in the qemu/slirp directory and the qemu/i386-softmmu/config.mak
the source is from todays cvs
any suggestions appreciated because i'm mighty stuck.
teris.
ps what i'm trying to do is to have a way to "autorun" live linux distributions under windows with networking enabled. ps2 many many thanks to Fabrice and the rest of the guys.
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Hi,
Quoted 4 lines · Elefterios Stamatogiannakis
The only changes are in the qemu/slirp directory and the qemu/i386-softmmu/config.mak
It needs to change vl.c to call select.
Regards,
kazu
Quoted 11 lines · kazu
Hi,
Quoted 3 lines · Elefterios Stamatogiannakis
The only changes are in the qemu/slirp directory and the qemu/i386-softmmu/config.mak
It needs to change
vl.cto call select.
Kazu i see... thanks.
I just saw in a previous mail of yours that you are working on win32
networking too.
Are we duplicating effort?
Maybe we should work together?
thanks again.
teris.
I've managed to run qemu with slirp enabled on win32.
It needed some more changes in slirp.c, vl.c (thanks kazu) in order to
run, as well a "resolv.conf" file in the same directory as the executable (qemu.exe), that has the usual unix format.
The problem right now is that the slax live cd which i'm testing it
with, doesn't see at all the network card (ne2000). (there is no ne2000 in dmesg, ifconfig shows only the loopback adapter).
Any ideas why there is no network card? (with -user-net as an options
of course)
Kazu do you know if the entire poll section is needed in order to run
slirp in vl.c? (i'm referring to /* poll any events */).
thanks.
teris.
ps The new source is at:
http://www.dblab.ece.ntua.gr/~estama/qemu-slirp-win32.zip
ps2 Sorry for the state of my changes (lots and lots of hardcoded changes). When (if) this works i'll polish it up and send it as a diff.
Hi,
Quoted 1 line · Stamatogiannakis Elofterios
Are we duplicating effort?
Yes.
Quoted 4 lines · Stamatogiannakis Elefterios
Kazu do you know if the entire poll section is needed in order to run
slirp invl.c? (i'm referring to /* poll any events */).
Yes, it needs.
It seems that my patch works. Here is my patch.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.5.5-slirp.patch.gz
It needs to refine it but I tested telnet, ftp, lynx in RedHat 7.2 on Windows2000.
To make the program, apply this patch and ./configure --enable-slirp.
Then on GestOS,
modprobe ne irq=9 io=0x300
dhcpcd eth0 or dhclient eth0
It takes time to get IP address from DHCP server. Then I can use those programs.
I think it is the same for Morphix.
It needs to disable NTLM authentication on Windows2000 to telnet.
Regards,
kazu
Thanks Kazu. I'll take a look at your patch.
I'll certainly learn from it.
teris.
Quoted 46 lines · kazu
Hi,
Quoted 1 line · Stamatogiannakis Elofterios
Are we duplicating effort?
Yes.
Quoted 3 lines · Stamatogiannakis Elefterios
Kazu do you know if the entire poll section is needed in order to run
slirp invl.c? (i'm referring to /* poll any events */).Yes, it needs.
It seems that my patch works. Here is my patch.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.5.5-slirp.patch.gz
It needs to refine it but I tested telnet, ftp, lynx in RedHat 7.2 on Windows2000.
To make the program, apply this patch and ./configure --enable-slirp.
Then on GestOS,
modprobe ne irq=9 io=0x300
dhcpcd eth0 or dhclient eth0It takes time to get IP address from DHCP server. Then I can use those programs.
I think it is the same for Morphix.It needs to disable NTLM authentication on Windows2000 to telnet.
Regards,
kazu_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Kazu your patch does not seem to use closesocket at all when closing
sockets.
Qemu win32 networking works but creates sockets without closing them.
It needs also to change the configure file because by default $mingw32
disables slirp.
teris.
ps Great work..
Quoted 4 lines
It seems that my patch works. Here is my patch.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.5.5-slirp.patch.gz
[Qemu-devel] SIGSEGV with WinXP PRO PL instalation (CVS)
Hi,
Using today (morning) CVS I tried to intall WinXP PRO PL. I was using this command line:
qemu -hda winxppropl.img -cdrom Pl_WinXP_Pro_ISO.iso -pci -cirrusvga -m 256
Installer finished first part of instalation and "reboted" "machine". It continued, asked me about key, ..., network setup and then was still doing something, but I do not know what because I was eating lunch. :-)
When I returned QEMU was not there and only
QEMU 0.5.5 monitor - type 'help' for more information (qemu) Naruszenie ochrony pamieci
appeared on the terminal. (This is Polish translation for SIGSEGV.)
Has anyone saw such problem?
Are the -pci and -cirrusvga options supposed to work with XP currently?
How can I debug it further? (What should I do with gdb because I do not know this debuger?)
Do I need anything to do after intalling QEMU in order to use -cirrusvga?
Why is message:
warning: could not open /dev/net/tun: no virtual network emulation Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal
error, but for better emulation accuracy either use a 2.6 host Linux kernel or
type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.
appearing on the screen althought I added this line to startup scripts years ago for mplayer. Strace shows that device is opened properly but ioctl fails (not supported). I am using 2.6.6-mm4 currently. The same problem is recently with mplayer, so I think that kernel people changed something...
Thanks in advance,
Grzegorz Kulewski
Quoted 5 lines · Elefterios Stamatogiannakis
Kazu your patch does not seem to use closesocket at all when closing
sockets.Qemu win32 networking works but creates sockets without closing them.
Thank you. I will look for where I can close socket.
Regards,
kazu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Stamatogiannakis Elefterios
Search for closesocket in the source here:
I updated slirp's patch. I refered to your patch :-) Thank you.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.5.5-slirp.patch.gz
Regards,
kazu