Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
QEMU doesn't like W2K SP3 :-((
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mistermax
n00b
n00b


Joined: 03 May 2005
Posts: 59

PostPosted: Wed Nov 02, 2005 10:36 am    Post subject: QEMU doesn't like W2K SP3 :-(( Reply with quote

Hi guys,

No way for me to install W2K (SP3) under QEMU!

I tryed many workaround for finxing the main bug "no space on disk":
what is working for me are the following steps:

Code:
dd if=/dev/zero of=w2k.img bs=4096 count=2000000

Code:
qemu -localtime -hda w2k.img -cdrom /dev/hdc -m 256 -boot d


without the -win2k-hack option.

So I'm able to install W2K SP3 almost completely until to the last boot after
the network configuration but here the system hangs because of the known
W2K bug http://support.microsoft.com/default.aspx?scid=kb;en-us;329316.

The problem is that despite the fact I can fix the broken .DLL (I have another X2K
running), I AM UNABLE TO REPLACE IT because of the floppy device
is not reached at all!!!

So W2K after boot stops with the message:

Error Message: User Interface Failure: The Logon User Interface DLL Msgina.dll Failed to Load

Rebooting W2K in Safe Mode neither Recovery Console doesn't help because of /dev/floppy device is not available :( :(

Any idea?

Tnx to everybody!
Max
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1631
Location: U.S.A.

PostPosted: Wed Nov 02, 2005 11:18 am    Post subject: Reply with quote

Dude, you have posted the same question, exactly in the same way in at least 2 different places and 3 post on the same subject.
Your going to get more responses about double or triple posting than answers. I asked someone that has installed Qemu and wrote a tutorial to look at one of yours I saw, but if I had seen that you double and triple posted, I wouldn't have.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright


Last edited by Decibels on Wed Nov 02, 2005 12:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
mistermax
n00b
n00b


Joined: 03 May 2005
Posts: 59

PostPosted: Wed Nov 02, 2005 11:29 am    Post subject: Reply with quote

...desperation makes ugly jokes!

Many thanks for your answer. Sorry for the duplicated messages, but I really didn't know whch is the properly topic.
Looking forward for your answer

my best regards!
Back to top
View user's profile Send private message
d_adams
Apprentice
Apprentice


Joined: 20 Oct 2003
Posts: 223

PostPosted: Wed Nov 02, 2005 1:35 pm    Post subject: Reply with quote

What version of Qemu are you using? Are you using just Qemu, or do you have the kqemu module loaded?

Also, have you tried slipstreaming sp4 into the cd and remastering it?
_________________
http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6090
Location: Removed by Neddy

PostPosted: Wed Nov 02, 2005 1:52 pm    Post subject: Reply with quote

mistermax, if the original post was in the wrong forum, a MOD would move it to teh correct place so dont worry to much abt a misplace post.


As to the W2K issue, I to am interested since I cannot get W2K to with with Qemu (latest in portage + kqemu module loaded)


on an aside note after a kernel upgrade is there an easier way to create the kqemu module without just a full emerge of Qemu?
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
d_adams
Apprentice
Apprentice


Joined: 20 Oct 2003
Posts: 223

PostPosted: Wed Nov 02, 2005 2:32 pm    Post subject: Reply with quote

I jotted this stuff down the other day when I put qemu on the wife's puter. Maybe this will help. Read the whole thing before you try any commands though.
Even though the examples show win98, it will work for win2k as well. Just change what is needed to reflect the os you want to use. I actually put the win2k image up for her to use, although I first tested it with win98 for speed.

This was my first draft of a how-to on qemu and it has been submitted to a web admin pending modifications.
Quote:

To run windows 9x/2000/xp in Linux

Download the source from http://fabrice.bellard.free.fr/qemu/download.html

You can run just the qemu emulator alone, kqemu is supposed to speed it up some.
I haven't used it yet, so it might be worth it to compile it into the kernel.



User info/docs are here: http://fabrice.bellard.free.fr/qemu/qemu-doc.html


Extract the tar.gz to a temp directory, ie; /home/myname/tmp or qemu

(assuming in home dir at this point)
cd /tmp
tar zxvf qemu*

Browse into the folder that gets created and run the configure script

./configure

Followed by make

make

Next part is done as root.

su
make install
exit

This puts it in /usr/local for your system and exit from the root shell.

From here, you create an image to work in. This example makes a 5 gb image for win98.
Create a new directory (win98) and enter it, then enter this:

qemu-img create win98.img 5GB

Now, insert the windows cd to rom drive, make sure it's mounted and start qemu.


qemu -dummy-net -m 256 -enable-audio -localtime -cdrom /dev/hdd -boot d /home/myname/tmp/win98/win98.img

That will get you booted off the windows cd with no network, 256 mb ram, and audio. Works quite well for windows 98 and 2000. You can change the amount of ram (-m 256) according to how much you have in your system. Win98 won't really need more than 256, but win2k can use more.

Follow the instructions for a normal windows install, supplying your authentic windows product identification number when required. Yup, you gotta have a real key for this. Allow the installer to restart the emulated pc and finish up the installation.

Plan on this taking at least an hour or more. I did one with win2k and it took about 2.5 hrs to install it. Win98 took about an hour.

Now for the easy part.

Run the qemu program from within the directory that you have your freshly created image.

Assuming you are in /home/myname/win98

qemu -m 256 win98.img

Viola, windows on linux. :-)

I did this for my wife so she could play scrabble and bookworm in windows. Yes, it has network access and is as slow as molasses in January, but it works and she's happy with it. I've got her running Gentoo linux (Kororaa version, it was quicker) and she's pretty happy with that, but wanted some windows games that I couldn't make run with wine, winex, crossover office or natively. So... Qemu.

Some problems that I did have were on Gentoo. First off, if you have problems getting the image to run after installing windows, unmerge the one from portage, then start back at the top of this how-to.

questions about it? Look at the docs online first, but if I can help, email me at dadams1969@charter.net

One last note, this will NOT play HL2, Doom3, Quake 4, or any other fps. The emulated hardware for the video is a Cirrus chip from waaaaaaaay back when. It's not happening. Period.

_________________
http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1631
Location: U.S.A.

PostPosted: Wed Nov 02, 2005 9:00 pm    Post subject: Reply with quote

The above tutorial is here now: http://webpages.charter.net/decibelshelp/Qemu.html#Qemuhelp
Changes to it will be made there.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
mistermax
n00b
n00b


Joined: 03 May 2005
Posts: 59

PostPosted: Thu Nov 03, 2005 8:35 am    Post subject: Reply with quote

d_adams wrote:
What version of Qemu are you using? Are you using just Qemu, or do you have the kqemu module loaded?

Also, have you tried slipstreaming sp4 into the cd and remastering it?


Hi d_adams,

I've installed qemu 0.7.2, qemu-softmmu 0.7.2 and qemu-user 0.7.2, as shown by emerge -s qemu:
Code:

*  app-emulation/qemu
      Latest version available: 0.7.2
      Latest version installed: 0.7.2
      Size of downloaded files: 0 kB
      Homepage:    http://fabrice.bellard.free.fr/qemu/
      Description: qemu emulator and abi wrapper meta ebuild
      License:     GPL-2

*  app-emulation/qemu-softmmu
      Latest version available: 0.7.2
      Latest version installed: 0.7.2
      Size of downloaded files: 1,387 kB
      Homepage:    http://fabrice.bellard.free.fr/qemu/
      Description: Multi-platform & multi-targets cpu emulator and dynamic translator
      License:     GPL-2 LGPL-2.1 KQEMU

*  app-emulation/qemu-user
      Latest version available: 0.7.2
      Latest version installed: 0.7.2
      Size of downloaded files: 1,310 kB
      Homepage:    http://fabrice.bellard.free.fr/qemu/
      Description: Multi-platform & multi-targets cpu emulator and dynamic translator
      License:     GPL-2 LGPL-2.1


I only have an original (and old!) W2K Pro SP3 and, to be honest, I've no so much confidence with M$ OS in order to get SP4, apply this patch and burning a bootable image... on my Gentoo Box!
How do you suggest to proceed? Sorry for this stupid question :? :?

Tnx
Back to top
View user's profile Send private message
d_adams
Apprentice
Apprentice


Joined: 20 Oct 2003
Posts: 223

PostPosted: Thu Nov 03, 2005 1:47 pm    Post subject: Reply with quote

Well, this looks to be a little bit more difficult than I had anticipated. It appears that the only way to slipstream a service pack is from within windows. I've never tried doing it in linux myself, but I might give it a try this weekend when I have some time. After looking around a little, I've found lots of info on how to do it, but it's always shown in windows.

If you want to wait a little bit, I'll try it with wine or winex and see what I can do with it. I looked at my win2k disk, and it's SP2, which is even older than yours and doesn't have the msgina.dll problem. SP4 fixes that problem, which you already know. The other thing to figure out is how to make a bootable iso in linux. I haven't looked into that yet, either. Another thing for this weekend. :)

Quote:
The problem is that despite the fact I can fix the broken .DLL (I have another X2K
running), I AM UNABLE TO REPLACE IT because of the floppy device
is not reached at all!!!


If you do actually have a running win2k system, that's where I would attempt to slipstream the cd. You will need some windows software for modifying the iso (winiso) and burning it (nero) and follow the directions from this site. http://www.petri.co.il/windows_2000_xp_sp_slipstreaming.htm

There's even a link to get SP4 directly from M$ without going through page after page to find it.
_________________
http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Back to top
View user's profile Send private message
mistermax
n00b
n00b


Joined: 03 May 2005
Posts: 59

PostPosted: Thu Nov 03, 2005 5:50 pm    Post subject: Reply with quote

Hi d_adams,

Your interest is really appreciated!
On my home computer I have W2K also, patched to the last versoin available via Windows update. So, if there is the possibility to dowload only the Service Pack #4 within my windows, I can try. Still the problem that I have to find the way how to make a bootable iso image. And this is what I don't know :roll: :roll: Anyway I'll have a look on http://www.petri.co.il/windows_2000_xp_sp_slipstreaming.htm .

Some friends of mine are using vmware instead, but this is not free at all.

What about other emulators? Do you have experience with?

many thanks for your ideas,
have a nice week-end!
Back to top
View user's profile Send private message
d_adams
Apprentice
Apprentice


Joined: 20 Oct 2003
Posts: 223

PostPosted: Thu Nov 03, 2005 10:15 pm    Post subject: Reply with quote

The slipstreaming should go relatively easy if you follow the instructions provided. It's not too difficult.

I've only used vmware in wndows, and it was quite some time ago. My next project to play with is Xen as soon as it supports emulating windows. I'll look into some other options to see what else can be done this weekend. I think I saw a reference to using the new vmware guest program on a qemu image, but I don't remember where or if it worked.
_________________
http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Back to top
View user's profile Send private message
mistermax
n00b
n00b


Joined: 03 May 2005
Posts: 59

PostPosted: Fri Nov 04, 2005 10:52 pm    Post subject: Reply with quote

d_adams wrote:
The slipstreaming should go relatively easy if you follow the instructions provided. It's not too difficult.

I've only used vmware in wndows, and it was quite some time ago. My next project to play with is Xen as soon as it supports emulating windows. I'll look into some other options to see what else can be done this weekend. I think I saw a reference to using the new vmware guest program on a qemu image, but I don't remember where or if it worked.


Hi d_adams,

I'm really puzzled about slipstreaming. I have followed all the instructions from the PETRI website, also I have used alle the reccomandations and programs suggested by the writer. But unfortunately, after burning the ISO CD (with SP4 included), the installation stops in few minutes because of the incredible message in the typical blue screen:

Installation of Windows 2000
====================

Insert the disk
CD Service Pack 4
in the unit A:
Press ENTER when ready.


No more words... Is late here (1.30 am) maybe I need to sleep a bit :x :x :x
Maybe tomorrow will be better!

See you around.
Max
Back to top
View user's profile Send private message
d_adams
Apprentice
Apprentice


Joined: 20 Oct 2003
Posts: 223

PostPosted: Tue Nov 15, 2005 1:04 am    Post subject: Reply with quote

mistermax wrote:

Hi d_adams,

I'm really puzzled about slipstreaming. I have followed all the instructions from the PETRI website, also I have used alle the reccomandations and programs suggested by the writer. But unfortunately, after burning the ISO CD (with SP4 included), the installation stops in few minutes because of the incredible message in the typical blue screen:

Installation of Windows 2000
====================

Insert the disk
CD Service Pack 4
in the unit A:
Press ENTER when ready.



No more words... Is late here (1.30 am) maybe I need to sleep a bit :x :x :x
Maybe tomorrow will be better!

See you around.
Max




Ok, did some serious testing, slipstreaming with various service packs and in general had an all around bad time with this. BUT...... I did figure something out that worked and got rid of that error. I was able to duplicate it exactly as you show. The fix is some free software called nlite. Can be gotten here. http://www.nliteos.com/download.html

Really slick software for the slipstreaming, as well as adding additional software to a windows cd. Very straightforward customization, easy to use. And, as an added bonus, it will give you a working iso that won't give you errors when you try to install it on qemu. :D I'm currently working on the accelleration module and will be updating my how-to shortly. I will also be putting in a gentoo specific section for unmasking the right packages, etc. Will be a line by line installation of the whole mess. I will say this, it's installing a heck of a lot faster this time around.

Sorry about taking so long on updating you, I just kinda hosed my gentoo install last week and had to fix that first.

Edit: How-to here. http://webpages.charter.net/decibelshelp/Qemu.html#Qemuhelp
_________________
http://www.1and1.com/?k_id=16196755 click me for cheap linux based web hosting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum