Skip to contentSkip to conversation

boot a preinstalled winxp on linux/x86: writing a patch...

Qemu-devel Roberto Polli 4 participants 7 messages Dec 28, 2006 – Jan 4, 2007

lore
Share & tools
lore
#0 lore raw

hi all,

I tried to boot my preinstalled winxp with

 # qemu -boot c -hda /dev/hda

that's what happens:
- qemu load grub, and I select to boot winxp (grub says "chainloader +1, then boot")
- qemu starts to load winxp, with a winxp boot screen
- qemu fails and reboots

it seems qemu stops loading winxp when /dev/hda "ends" and /dev/hda1 starts.

I could build a patch to fix it, but before start studing qemu source, I'd like to ear from you - yes, if it was easy you guru already would have done it!

tia,
R.

Signature · 4 lines
Roberto Polli
Babel S.r.l. - http://www.babel.it
Tel. +39.06.91801075 - fax +39.06.91612446
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)
#1 lore raw

Hi,

booting a preinstalled winxp fails because Windows XP crashs (sometimes you will see a bluescreen) and starts a reboot. It won't fail if the real hardware and QEMU's virtual hardware are nearly identical. Especially the chipset seams to be critical.

/dev/hda1 is the first partition which is part of /dev/hda (whole disk), so there are no patches which can fix anything in QEMU here.

You might extend QEMU to emulate your computer's hardware - then XP would run. But this is a lot of work...

Regards
Stefan

Quoted 23 lines · Roberto Polli

hi all,

I tried to boot my preinstalled winxp with

# qemu -boot c -hda /dev/hda

that's what happens:
- qemu load grub, and I select to boot winxp (grub says "chainloader +1, then
boot")
- qemu starts to load winxp, with a winxp boot screen
- qemu fails and reboots

it seems qemu stops loading winxp when /dev/hda "ends" and /dev/hda1 starts.

I could build a patch to fix it, but before start studing qemu source, I'd
like to ear from you - yes, if it was easy you guru already would have done
it!

tia,
R.

#2 lore raw

Hi

Alle 11:09, giovedì 28 dicembre 2006, Stefan Weil ha scritto:

Quoted 3 lines

booting a preinstalled winxp fails because Windows XP crashs...and ... reboot. It won't fail if the real hardware and QEMU's virtual hardware are nearly identical.

ok

Quoted 1 line

Especially the chipset seams to be critical.

1- so we should have one qemu "chipset emulator" for each winxp installation? 2- is this pbm equivalent to the "move my hd to another pc with different mainboard" one?
3- if I solve pbm 2, should I solve pbm 1?

Quoted 2 lines

/dev/hda1 is the first partition which is part of
/dev/hda (whole disk)

yes, i mistakenly thought that part of the windows bootloader was related to the mbr

Thank you very much for your explanation, these are very helpful! Do you think I should put something about this thread in the wiki? Forums are full of such these question!

Greetings,
R.

Signature · 4 lines
Roberto Polli
Babel S.r.l. - http://www.babel.it
Tel. +39.06.91801075 - fax +39.06.91612446
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)
#3 lore raw
Quoted 7 lines · Roberto Polli
Quoted 1 line

Especially the chipset seams to be critical.

1- so we should have one qemu "chipset emulator" for each winxp installation?
2- is this pbm equivalent to the "move my hd to another pc with different mainboard" one?
3- if I solve pbm 2, should I solve pbm 1?

1- Yes, more chipset emulations would help.
2- Yes.
3- Yes, at least I think so.

Regards
Stefan

#6 lore raw
In reply to Roberto Polli
Quoted 11 lines · --- Roberto Polli

hi all,

I tried to boot my preinstalled winxp with

 # qemu -boot c -hda /dev/hda

that's what happens:
- qemu load grub, and I select to boot winxp (grub says "chainloader +1, then
boot")
- qemu starts to load winxp, with a winxp boot screen
- qemu fails and reboots

Ciao Roberto,

this has been discussed before on the user forum, too. In the meantime, maybe this is not exactly waht you're looking for but, have you tried Bart PE:
http://www.nu2.nu/pebuilder/
?

Signature · 9 lines
Ottavio Caruso

I will not purchase any computing equipment from manufacturers that recommend Windows Vista™ or any other Microsoft® products.
http://www.pledgebank.com/boycottvista

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
#4 lore raw
In reply to Roberto Polli
Quoted 14 lines · Roberto Polli

Alle 11:09, giovedì 28 dicembre 2006, Stefan Weil ha scritto:

Quoted 3 lines

booting a preinstalled winxp fails because Windows XP crashs...and ... reboot. It won't fail if the real hardware and QEMU's virtual hardware are nearly identical.

ok

Quoted 1 line

Especially the chipset seams to be critical.

1- so we should have one qemu "chipset emulator" for each winxp installation? 2- is this pbm equivalent to the "move my hd to another pc with different mainboard" one? 3- if I solve pbm 2, should I solve pbm 1?

Quoted 6 lines
Quoted 2 lines

/dev/hda1 is the first partition which is part of
/dev/hda (whole disk)

yes, i mistakenly thought that part of the windows bootloader was related to the mbr

Thank you very much for your explanation, these are very helpful! Do you think I should put something about this thread in the wiki? Forums are full of such these question!

I think parts of this are already in Wiki:

http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-a1fc78523d7c7d256a29bac4577cd728be70eedd

Do you think this is sufficent? If not, feel free to extend it.

Dirk

#5 lore raw

Alle 07:48, sabato 30 dicembre 2006, Dirk Behme ha scritto:

Quoted 2 lines

I think parts of this are already in Wiki:

http://kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-a1fc78523d7c7d256a29bac4577cd728be70eedd
interesting enough but still not working - yes, my win skill are not excellent.

Quoted 1 line

Do you think this is sufficent? If not, feel free to extend it.

I'll let you know it something goes well!

Thank you again to everybody!
R.

Signature · 4 lines
Roberto Polli
Babel S.r.l. - http://www.babel.it
Tel. +39.06.91801075 - fax +39.06.91612446
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)