qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Usermode networking for win32
@ 2004-06-04 21:59 Elefterios Stamatogiannakis
  2004-06-04 22:08 ` John R. Hogerhuis
  2004-06-05 10:37 ` kazu
  0 siblings, 2 replies; 11+ messages in thread
From: Elefterios Stamatogiannakis @ 2004-06-04 21:59 UTC (permalink / raw)
  To: qemu-devel

  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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-04 21:59 [Qemu-devel] Usermode networking for win32 Elefterios Stamatogiannakis
@ 2004-06-04 22:08 ` John R. Hogerhuis
  2004-06-05 10:37 ` kazu
  1 sibling, 0 replies; 11+ messages in thread
From: John R. Hogerhuis @ 2004-06-04 22:08 UTC (permalink / raw)
  To: qemu-devel

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.

On Fri, 2004-06-04 at 14:59, Elefterios Stamatogiannakis wrote:
>   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
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-04 21:59 [Qemu-devel] Usermode networking for win32 Elefterios Stamatogiannakis
  2004-06-04 22:08 ` John R. Hogerhuis
@ 2004-06-05 10:37 ` kazu
  2004-06-05 15:40   ` Stamatogiannakis Elefterios
  2004-06-06  2:57   ` Stamatogiannakis Elefterios
  1 sibling, 2 replies; 11+ messages in thread
From: kazu @ 2004-06-05 10:37 UTC (permalink / raw)
  To: qemu-devel

Hi,

Saturday, June 05, 2004 6:59 AM Elefterios Stamatogiannakis wrote:
> 
>   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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-05 10:37 ` kazu
@ 2004-06-05 15:40   ` Stamatogiannakis Elefterios
  2004-06-06  2:57   ` Stamatogiannakis Elefterios
  1 sibling, 0 replies; 11+ messages in thread
From: Stamatogiannakis Elefterios @ 2004-06-05 15:40 UTC (permalink / raw)
  To: qemu-devel



kazu wrote:

> Hi,
> 
> Saturday, June 05, 2004 6:59 AM Elefterios Stamatogiannakis wrote:
> 
>>  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.
> 

  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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-05 10:37 ` kazu
  2004-06-05 15:40   ` Stamatogiannakis Elefterios
@ 2004-06-06  2:57   ` Stamatogiannakis Elefterios
  2004-06-08  4:53     ` kazu
  1 sibling, 1 reply; 11+ messages in thread
From: Stamatogiannakis Elefterios @ 2004-06-06  2:57 UTC (permalink / raw)
  To: qemu-devel

  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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-06  2:57   ` Stamatogiannakis Elefterios
@ 2004-06-08  4:53     ` kazu
  2004-06-08  8:17       ` Stamatogiannakis Elefterios
  2004-06-08 14:35       ` Elefterios Stamatogiannakis
  0 siblings, 2 replies; 11+ messages in thread
From: kazu @ 2004-06-08  4:53 UTC (permalink / raw)
  To: qemu-devel

Hi,

Sunday, June 06, 2004 12:40 AM Stamatogiannakis Elofterios wrote:
>   Are we duplicating effort?
Yes.

 Sunday, June 06, 2004 11:57 AM Stamatogiannakis Elefterios wrote:
>
>   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 */).
>

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-08  4:53     ` kazu
@ 2004-06-08  8:17       ` Stamatogiannakis Elefterios
  2004-06-08 14:35       ` Elefterios Stamatogiannakis
  1 sibling, 0 replies; 11+ messages in thread
From: Stamatogiannakis Elefterios @ 2004-06-08  8:17 UTC (permalink / raw)
  To: qemu-devel

  Thanks Kazu. I'll take a look at your patch.

  I'll certainly learn from it.

  teris.

kazu wrote:
> Hi,
> 
> Sunday, June 06, 2004 12:40 AM Stamatogiannakis Elofterios wrote:
> 
>>  Are we duplicating effort?
> 
> Yes.
> 
>  Sunday, June 06, 2004 11:57 AM Stamatogiannakis Elefterios wrote:
> 
>>  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 */).
>>
> 
> 
> 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
> 
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-08  4:53     ` kazu
  2004-06-08  8:17       ` Stamatogiannakis Elefterios
@ 2004-06-08 14:35       ` Elefterios Stamatogiannakis
  2004-06-08 15:56         ` [Qemu-devel] SIGSEGV with WinXP PRO PL instalation (CVS) Grzegorz Kulewski
  2004-06-09  2:35         ` [Qemu-devel] Usermode networking for win32 kazu
  1 sibling, 2 replies; 11+ messages in thread
From: Elefterios Stamatogiannakis @ 2004-06-08 14:35 UTC (permalink / raw)
  To: 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..


> 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
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] SIGSEGV with WinXP PRO PL instalation (CVS)
  2004-06-08 14:35       ` Elefterios Stamatogiannakis
@ 2004-06-08 15:56         ` Grzegorz Kulewski
  2004-06-09  2:35         ` [Qemu-devel] Usermode networking for win32 kazu
  1 sibling, 0 replies; 11+ messages in thread
From: Grzegorz Kulewski @ 2004-06-08 15:56 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
  2004-06-08 14:35       ` Elefterios Stamatogiannakis
  2004-06-08 15:56         ` [Qemu-devel] SIGSEGV with WinXP PRO PL instalation (CVS) Grzegorz Kulewski
@ 2004-06-09  2:35         ` kazu
       [not found]           ` <40C6C644.8020006@dblab.ece.ntua.gr>
  1 sibling, 1 reply; 11+ messages in thread
From: kazu @ 2004-06-09  2:35 UTC (permalink / raw)
  To: qemu-devel

Elefterios Stamatogiannakis wrote:
>   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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] Usermode networking for win32
       [not found]           ` <40C6C644.8020006@dblab.ece.ntua.gr>
@ 2004-06-10  9:25             ` kazu
  0 siblings, 0 replies; 11+ messages in thread
From: kazu @ 2004-06-10  9:25 UTC (permalink / raw)
  To: qemu-devel


Stamatogiannakis Elefterios wrote:
> 
>   Search for closesocket in the source here:
> 
> http://www.dblab.ece.ntua.gr/~estama/qemu-slirp-win32.zip
> 

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-06-10  9:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04 21:59 [Qemu-devel] Usermode networking for win32 Elefterios Stamatogiannakis
2004-06-04 22:08 ` John R. Hogerhuis
2004-06-05 10:37 ` kazu
2004-06-05 15:40   ` Stamatogiannakis Elefterios
2004-06-06  2:57   ` Stamatogiannakis Elefterios
2004-06-08  4:53     ` kazu
2004-06-08  8:17       ` Stamatogiannakis Elefterios
2004-06-08 14:35       ` Elefterios Stamatogiannakis
2004-06-08 15:56         ` [Qemu-devel] SIGSEGV with WinXP PRO PL instalation (CVS) Grzegorz Kulewski
2004-06-09  2:35         ` [Qemu-devel] Usermode networking for win32 kazu
     [not found]           ` <40C6C644.8020006@dblab.ece.ntua.gr>
2004-06-10  9:25             ` kazu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).