MSFN Forum: Qemu 1.0.1 on Win2k - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Qemu 1.0.1 on Win2k Looking to get Qemu 1.0.1 working on Win2k. Rate Topic: -----

#1 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 02:34 PM

Hey there! :hello:

I haven't been using Qemu for a while. I've been trying out Qemu 1.0.1 from this page here and when I used Dependency Walker to look into one of these files, it won't execute on Windows 2000 or Windows XP RTM host by default as it is missing the following dependencies: freeaddrinfo, getaddrinfo and getnameinfo.

The three dependencies listed above are required to enable IPv6 internet support and Win2k/XP RTM doesn't have it.

I have a couple of questions to answer:

1 In order to compile Qemu 1.0.1 on Win2k, is there a way to replace freeaddrinfo with another Win2k compatible dependency? I already used a hex editor to replace getaddrinfo and getnameinfo with gethostname.

2. Is it also possible to compile Qemu 1.0.1 using Visual Studio 2005 or Visual Studio 2008?

Qemu hasn't been officially supported on Win2k since Qemu 0.9.1 back in 2008.

I also got word that Qemu 1.0.1's NAT doesn’t work and I'm wondering if there is also a way to get NAT working on Win2k without using the getaddrinfo and getnameinfo with gethostname IPv6 related dependencies. :(

This post has been edited by ppgrainbow: 12 May 2012 - 03:58 PM



#2 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 02:43 PM

No dependency problems with UURollup-v9b installed :w00t:

This post has been edited by tomasz86: 12 May 2012 - 02:45 PM


#3 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 02:50 PM

View Posttomasz86, on 12 May 2012 - 02:43 PM, said:

No dependency problems with UURollup-v9b installed :w00t:


Thank you for telling me. I'll probably install the UURollup v9b when Firefox 13 comes out for sure. :B

#4 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 02:54 PM

By the way, in order to quickly check dependencies create a .cmd file with this script and place it in a folder where the files concerned are and run it. It's not perfect but will report issues correctly in most cases. Copy depends.exe from Dependency Walker to %systemroot%\system32 before running it!

It's for Windows 2000 only.

@ECHO OFF
IF EXIST depends.txt DEL/Q depends.txt
FOR /F "tokens=* delims=*" %%I IN ('DIR/A-D/B') DO (
	ECHO Checking %%I
	DEPENDS.exe /C /OT:temp.txt %%I
	FINDSTR/BR "\[.E.\] \[.\?.\]" temp.txt >NUL
	IF !ERRORLEVEL! EQU 0 (
		FOR /F "tokens=2 delims=[] " %%J IN ('FINDSTR/BR "\[.E.\]" temp.txt') DO (
			IF /I NOT "%%J"=="MPR.DLL" IF /I NOT "%%J"=="DBGHELP.DLL" (
				ECHO Dependecy issues found in %%I
				ECHO.
				ECHO.>>depends.txt
				ECHO>>depends.txt %%I %%J
			)
		)
		FOR /F "tokens=2 delims=[] " %%J IN ('FINDSTR/BR "\[.\?.\]" temp.txt') DO (
			IF /I NOT "%%J"=="APPHELP.DLL" (
				ECHO Dependency issues found in %%I
				ECHO.
				ECHO.>>depends.txt
				ECHO>>depends.txt %%I needs %%J
			)
		)
	)
)
DEL/Q temp.txt
ECHO.
IF EXIST depends.txt (
	ECHO Finished.
) ELSE (
	ECHO There are no dependency issues.
)
ECHO.
PAUSE


This is how it looks for Qemu files:

Attached File(s)


This post has been edited by tomasz86: 12 May 2012 - 02:57 PM


#5 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 03:10 PM

Thanks again. It looks like that the script to check for dependencies didn't correctly check for dependencies that don't exist on Win2k and getting a "There are no dependency issues." message instead of dependency issues found in (filename). :(

What am I doing wrong here?

#6 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 03:13 PM

Hmm, could you tell me which file exactly it is? I'll try to check it in a standard W2K installation (without any unofficial kernels).

#7 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 12 May 2012 - 03:58 PM

View Posttomasz86, on 12 May 2012 - 03:13 PM, said:

Hmm, could you tell me which file exactly it is? I'll try to check it in a standard W2K installation (without any unofficial kernels).


Any of the executable files including qemu-system-i386.exe which throws the freeaddrinfo, getaddrinfo and getnameinfo dependencies.

#8 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 13 May 2012 - 09:15 AM

Did you run the script under Windows 2000? :unsure:

I've just tried it in a VM and the output (depends.txt) looks like this:

Spoiler


It doesn't report which dependencies are missing but if you check each of them you'll see that they are the ones you're talking about (freeaddrinfo, getaddrinfo and getnameinfo in ws2_32.dll).

Assuming that you ran the script in Windows 2000... what language version of W2K do you use? Are you using Dependency Walker 2.2.6000?

This post has been edited by tomasz86: 13 May 2012 - 09:22 AM


#9 User is offline   blackwingcat 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 579
  • Joined: 31-May 08
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 13 May 2012 - 07:13 PM

I missed thread this post.

This post has been edited by blackwingcat: 13 May 2012 - 09:37 PM


#10 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 14 May 2012 - 12:26 AM

Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL. I'm using the US English language version of the OS, btw.

As for Dependency Walker, I'm using the latest version - version 2.2.6000 released on 2006-10-29.

#11 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 14 May 2012 - 02:51 AM

View Postppgrainbow, on 14 May 2012 - 12:26 AM, said:

Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL.

Is "depends.txt" created at all?

#12 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 14 May 2012 - 01:56 PM

View Posttomasz86, on 14 May 2012 - 02:51 AM, said:

View Postppgrainbow, on 14 May 2012 - 12:26 AM, said:

Yes, I did ran the script on Win2k and for some reason didn't report correctly with the exception of the missing dependencies in WS2_32.DLL.

Is "depends.txt" created at all?


The depends.txt file is not created at all. I did a search for that file on drives C: and D: and came up with nothing.

#13 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 14 May 2012 - 03:36 PM

Strange :blink:

So is your output similar to the one I uploaded in #4 (the commandline window)?

I've tested the script on two configurations (desktop & VM) and it worked fine on both of them.

This post has been edited by tomasz86: 14 May 2012 - 03:37 PM


#14 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 14 May 2012 - 08:18 PM

View Posttomasz86, on 14 May 2012 - 03:36 PM, said:

Strange :blink:

So is your output similar to the one I uploaded in #4 (the commandline window)?

I've tested the script on two configurations (desktop & VM) and it worked fine on both of them.


The output looks similar to the one that you uploaded in your fourth comment. The problem here is that none of the files are being able to detect dependencies that are missing.

#15 User is offline   DosFreak 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 16-June 07

Posted 17 May 2012 - 04:37 PM

Hexediting qemu.exe (or any qemu executable) and replacing "freeaddrinfo","getaddrinfo", and "getnameinfo" with "gethostname" should work fine....at least it did last time I tried it.

KQemu isn't supported any more with later versions of Qemu only IIRC Qemu 0.9x supports it so you are really better off with Vmware Workstation 7/Player 4 (using blackwingcat patches) if you need speed.

AFAIK Vmware Workstation 8/Player 5 are not yet working on Windows 2000.

This post has been edited by DosFreak: 17 May 2012 - 04:42 PM


#16 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 17 May 2012 - 11:24 PM

View PostDosFreak, on 17 May 2012 - 04:37 PM, said:

Hexediting qemu.exe (or any qemu executable) and replacing "freeaddrinfo","getaddrinfo", and "getnameinfo" with "gethostname" should work fine....at least it did last time I tried it.

KQemu isn't supported any more with later versions of Qemu only IIRC Qemu 0.9x supports it so you are really better off with Vmware Workstation 7/Player 4 (using blackwingcat patches) if you need speed.

AFAIK Vmware Workstation 8/Player 5 are not yet working on Windows 2000.


Thank you for telling me. Replacing "freeaddrinfo" with "gethostname" will most likely not work. "freeaddrinfo" has 12 characters and not 11. There is a modified version of Qemu 0.10.5.that still works on Win2k though.

I will most likely have to look up online on how to properly replace freeaddrinfo. VMware Workstation 8 and VMware Player 4 require a 64-bit operating system as far as I know.

#17 User is offline   DosFreak 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 16-June 07

Posted 18 May 2012 - 03:44 AM

Just zero out the last value.

Yep I forgot about the 64bit processor requirement for the latest versions but AFAIK the host OS can still be 32bit.

Here's a slightly older release if you still can't get it to work: http://vpsland.super...6-for-win2k.exe

This post has been edited by DosFreak: 18 May 2012 - 10:12 AM


#18 User is offline   ppgrainbow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 04-October 11
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 18 May 2012 - 06:13 PM

Alright!

I think that I finally did the right thing by replacing "freeaddrinfo" with "gethostname". How?

I used a hex editor and searched for "freeaddrinfo" the hexadecimal numbers for the entry point are 66 72 65 65 61 64 64 72 69 6E 66 6F. Since "gethostname" has 11 characters, I have to change the 6F hexadecimal to 00, so the end result is that the output for gethostname is 67 65 74 68 6F 73 74 6E 61 6D 65 00.

I will now have to download Qemu 1.0, the last (and hexedited) version that fully worked on Windows 2000 and Windows XP RTM to test it out. :)

Update: I found that Qemu 1.0 is unstable and crashing...so, until Qemu 1.1 comes out in June, I will have to stick with Qemu 0.15.1. If I find a way to hex out the dependencies in Qemu 1.1 and get it working, I'll update this reply.

This post has been edited by ppgrainbow: 19 May 2012 - 03:56 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy