qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] A bug of running existing windows xp from x86 64 linux host
@ 2008-03-28 17:05 Jie Zhang
  2008-03-29  9:34 ` Jie Zhang
  2008-03-31 12:57 ` [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost Sergey Bychkov
  0 siblings, 2 replies; 10+ messages in thread
From: Jie Zhang @ 2008-03-28 17:05 UTC (permalink / raw)
  To: qemu-devel

Hi,

I cannot find a place to report qemu bug. So I write this email.

I'm trying to run an existing windows xp (32 bit) partition in qemu on a 
x86 64 bit linux host. I always got

A disk read error occurred
Press Ctrl+Alt+Del to restart

when qemu starts.

There is no problem to run an existing windows xp in qemu on a x86 32 
bit linux host. There is no problem to install and run windows xp in 
qemu from a disk image file on x86 64 bit linux host.

Interestingly, I tried KVM and Virtualbox. I got the same error message 
for both of them. Since both KVM and Virtualbox use some modules from 
qemu, I guess the root cause is in qemu. So I first report this bug here.


Regards,
Jie

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64 linux host
  2008-03-28 17:05 [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
@ 2008-03-29  9:34 ` Jie Zhang
  2008-03-31 12:57 ` [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost Sergey Bychkov
  1 sibling, 0 replies; 10+ messages in thread
From: Jie Zhang @ 2008-03-29  9:34 UTC (permalink / raw)
  To: qemu-devel

Jie Zhang wrote:
> I'm trying to run an existing windows xp (32 bit) partition in qemu on a
> x86 64 bit linux host. I always got
>
> A disk read error occurred
> Press Ctrl+Alt+Del to restart
>
> when qemu starts.
>
> There is no problem to run an existing windows xp in qemu on a x86 32
> bit linux host. There is no problem to install and run windows xp in
> qemu from a disk image file on x86 64 bit linux host.
>
> Interestingly, I tried KVM and Virtualbox. I got the same error message
> for both of them. Since both KVM and Virtualbox use some modules from
> qemu, I guess the root cause is in qemu. So I first report this bug here.
>
More information.

The above machine is Lenovo ThinkPad T61 with Intel Core 2 Duo T7300 and 
100G hard disk.

I just tried to run an existing windows xp partition in qemu on my pc, 
which is Dell Inspiron 531 and has an AMD Athlon64 X2 3800+ and 80G hard 
disk. Qemu can boot the xp.


Jie

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost
  2008-03-28 17:05 [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
  2008-03-29  9:34 ` Jie Zhang
@ 2008-03-31 12:57 ` Sergey Bychkov
  2008-04-01  8:06   ` [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
  1 sibling, 1 reply; 10+ messages in thread
From: Sergey Bychkov @ 2008-03-31 12:57 UTC (permalink / raw)
  To: qemu-devel

----- Original Message ----- 
From: "Jie Zhang" <jie.zhang@analog.com>
To: <qemu-devel@nongnu.org>
Sent: 28.03.2008 20:05
Subject: [Qemu-devel] A bug of running existing windows xp from x86 64 
linuxhost


> I'm trying to run an existing windows xp (32 bit) partition in qemu on a 
> x86 64 bit linux host. I always got
>
> A disk read error occurred
> Press Ctrl+Alt+Del to restart
>
> when qemu starts.

Maybe, You should show qemu command line first?

Sergey Bychkow
ICQ: 21014758
FTN: 2:450/118.55 

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64 linux host
  2008-03-31 12:57 ` [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost Sergey Bychkov
@ 2008-04-01  8:06   ` Jie Zhang
  2008-04-01 19:55     ` [Qemu-devel] A bug of running existing windows xp from x86 64linux host Sergey Bychkov
  0 siblings, 1 reply; 10+ messages in thread
From: Jie Zhang @ 2008-04-01  8:06 UTC (permalink / raw)
  To: qemu-devel

Sergey Bychkov wrote:
> ----- Original Message ----- From: "Jie Zhang" <jie.zhang@analog.com>
>> I'm trying to run an existing windows xp (32 bit) partition in qemu on 
>> a x86 64 bit linux host. I always got
>>
>> A disk read error occurred
>> Press Ctrl+Alt+Del to restart
>>
>> when qemu starts.
> 
> Maybe, You should show qemu command line first?
> 
I use the following command line:

sudo qemu -hda /dev/sda -m 512

I can see the grub, but cannot boot into windows xp because of the disk 
read error. It's weird that the same command line works on my AMD64 pc, 
although qemu crashed when I passed "-d in_asm" to it.


Thanks,
Jie

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64linux host
  2008-04-01  8:06   ` [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
@ 2008-04-01 19:55     ` Sergey Bychkov
  2008-04-02  4:26       ` Jie Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: Sergey Bychkov @ 2008-04-01 19:55 UTC (permalink / raw)
  To: qemu-devel

----- Original Message ----- 
From: "Jie Zhang" <jie.zhang@analog.com>
To: <qemu-devel@nongnu.org>
Sent: 1.04.2008 11:06
Subject: Re: [Qemu-devel] A bug of running existing windows xp from x86 
64linux host


>>> I'm trying to run an existing windows xp (32 bit) partition in qemu on a 
>>> x86 64 bit linux host. I always got
>>>
>>> A disk read error occurred
>>> Press Ctrl+Alt+Del to restart
>>>
>>> when qemu starts.
>>
>> Maybe, You should show qemu command line first?
>>
> I use the following command line:
>
> sudo qemu -hda /dev/sda -m 512
>
> I can see the grub, but cannot boot into windows xp because of the disk 
> read error. It's weird that the same command line works on my AMD64 pc, 
> although qemu crashed when I passed "-d in_asm" to it.

Hmm. The only error I could expect in this place is "inaccesible boot 
device" (0x2b, afair)

If your host is x86_64, try:

$ sudo qemu-system-x86_64 -hda /dev/sda -m 512

Sergey Bychkow
ICQ: 21014758
FTN: 2:450/118.55 

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64linux host
  2008-04-01 19:55     ` [Qemu-devel] A bug of running existing windows xp from x86 64linux host Sergey Bychkov
@ 2008-04-02  4:26       ` Jie Zhang
  2008-04-03 14:53         ` [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost Sergey Bychkov
  0 siblings, 1 reply; 10+ messages in thread
From: Jie Zhang @ 2008-04-02  4:26 UTC (permalink / raw)
  To: qemu-devel

Sergey Bychkov wrote:
> ----- Original Message ----- From: "Jie Zhang" <jie.zhang@analog.com>
>>>> I'm trying to run an existing windows xp (32 bit) partition in qemu 
>>>> on a x86 64 bit linux host. I always got
>>>>
>>>> A disk read error occurred
>>>> Press Ctrl+Alt+Del to restart
>>>>
>>>> when qemu starts.
>>>
>>> Maybe, You should show qemu command line first?
>>>
>> I use the following command line:
>>
>> sudo qemu -hda /dev/sda -m 512
>>
>> I can see the grub, but cannot boot into windows xp because of the 
>> disk read error. It's weird that the same command line works on my 
>> AMD64 pc, although qemu crashed when I passed "-d in_asm" to it.
> 
> Hmm. The only error I could expect in this place is "inaccesible boot 
> device" (0x2b, afair)
> 
> If your host is x86_64, try:
> 
> $ sudo qemu-system-x86_64 -hda /dev/sda -m 512
> 
I tried before. I got the same error.


Jie

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost
  2008-04-02  4:26       ` Jie Zhang
@ 2008-04-03 14:53         ` Sergey Bychkov
  2008-04-03 15:03           ` Jie Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: Sergey Bychkov @ 2008-04-03 14:53 UTC (permalink / raw)
  To: qemu-devel

----- Original Message ----- 
From: "Jie Zhang" <jie.zhang@analog.com>
To: <qemu-devel@nongnu.org>
Sent: 2.04.2008 7:26
Subject: Re: [Qemu-devel] A bug of running existing windows xp from x86 
64linuxhost

>>>>> A disk read error occurred
>>>>> Press Ctrl+Alt+Del to restart
>>>>>
>>>>> when qemu starts.
>>>>
>>>> Maybe, You should show qemu command line first?
>>>>
>>> I use the following command line:
>>>
>>> sudo qemu -hda /dev/sda -m 512
>>>
>>> I can see the grub, but cannot boot into windows xp because of the disk 
>>> read error. It's weird that the same command line works on my AMD64 pc, 
>>> although qemu crashed when I passed "-d in_asm" to it.
>>
>> Hmm. The only error I could expect in this place is "inaccesible boot 
>> device" (0x2b, afair)
>>
>> If your host is x86_64, try:
>>
>> $ sudo qemu-system-x86_64 -hda /dev/sda -m 512
>>
> I tried before. I got the same error.

With this message - this is NT boot record could not access disk. Possibly, 
this is bug in qemu, but only debugger could help.
Maybe, qemu doesn't provide good access to big disk, or BIOS services in 
bochsbios don't do this.

Sergey Bychkow
ICQ: 21014758
FTN: 2:450/118.55 

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost
  2008-04-03 14:53         ` [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost Sergey Bychkov
@ 2008-04-03 15:03           ` Jie Zhang
  2008-04-03 16:37             ` [Qemu-devel] A bug of running existing windows xp from x86_64 linux host Sergey Bychkov
  0 siblings, 1 reply; 10+ messages in thread
From: Jie Zhang @ 2008-04-03 15:03 UTC (permalink / raw)
  To: qemu-devel

Sergey Bychkov wrote:
> ----- Original Message ----- From: "Jie Zhang" <jie.zhang@analog.com>
>>>>>> A disk read error occurred
>>>>>> Press Ctrl+Alt+Del to restart
> 
> With this message - this is NT boot record could not access disk. 
> Possibly, this is bug in qemu, but only debugger could help.
> Maybe, qemu doesn't provide good access to big disk, or BIOS services in 
> bochsbios don't do this.
> 
How can I debug this issue? Can I capture each access to disk? I'm not 
familiar with i386. Is all disk access thorough INT 0x13? Where can I 
add a dump of CHS?


Jie

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86_64 linux host
  2008-04-03 15:03           ` Jie Zhang
@ 2008-04-03 16:37             ` Sergey Bychkov
  2008-04-04  0:08               ` Jie Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: Sergey Bychkov @ 2008-04-03 16:37 UTC (permalink / raw)
  To: qemu-devel

----- Original Message ----- 
From: "Jie Zhang" <jie.zhang@analog.com>
To: <qemu-devel@nongnu.org>
Sent: 3.04.2008 18:03
Subject: Re: [Qemu-devel] A bug of running existing windows xpfrom x86 
64linuxhost


> Sergey Bychkov wrote:
>> ----- Original Message ----- From: "Jie Zhang" <jie.zhang@analog.com>
>>>>>>> A disk read error occurred
>>>>>>> Press Ctrl+Alt+Del to restart
>>
>> With this message - this is NT boot record could not access disk. 
>> Possibly, this is bug in qemu, but only debugger could help.
>> Maybe, qemu doesn't provide good access to big disk, or BIOS services in 
>> bochsbios don't do this.
>>
> How can I debug this issue? Can I capture each access to disk? I'm not 
> familiar with i386. Is all disk access thorough INT 0x13? Where can I add 
> a dump of CHS?

Afair, loader in boot record should only use int13 services - it can use LBA 
or CHS version of operations.

I think, because of the message you got, failure happened in first 
operations that NT boot record does, after it was chainloaded by GRUB.

BTW, where the windows partition is located on disk? Maybe bochsbios doesn't 
support LBA yet, and your Windows is on the last partition?

Unfotunately, I can't say, how to start debugging qemu - I have never done 
it before.

Sergey Bychkow
ICQ: 21014758
FTN: 2:450/118.55 

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

* Re: [Qemu-devel] A bug of running existing windows xp from x86_64 linux host
  2008-04-03 16:37             ` [Qemu-devel] A bug of running existing windows xp from x86_64 linux host Sergey Bychkov
@ 2008-04-04  0:08               ` Jie Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Jie Zhang @ 2008-04-04  0:08 UTC (permalink / raw)
  To: qemu-devel

Sergey Bychkov wrote:
> ----- Original Message ----- From: "Jie Zhang" <jie.zhang@analog.com>
> 
> BTW, where the windows partition is located on disk? Maybe bochsbios 
> doesn't support LBA yet, and your Windows is on the last partition?
> 
It's on the first primary partition.

Jie

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

end of thread, other threads:[~2008-04-04  0:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 17:05 [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
2008-03-29  9:34 ` Jie Zhang
2008-03-31 12:57 ` [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost Sergey Bychkov
2008-04-01  8:06   ` [Qemu-devel] A bug of running existing windows xp from x86 64 linux host Jie Zhang
2008-04-01 19:55     ` [Qemu-devel] A bug of running existing windows xp from x86 64linux host Sergey Bychkov
2008-04-02  4:26       ` Jie Zhang
2008-04-03 14:53         ` [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost Sergey Bychkov
2008-04-03 15:03           ` Jie Zhang
2008-04-03 16:37             ` [Qemu-devel] A bug of running existing windows xp from x86_64 linux host Sergey Bychkov
2008-04-04  0:08               ` Jie Zhang

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