A bug of running existing windows xp from x86 64 linux host
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
Quoted 8 lines · Jie Zhang
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 restartwhen qemu starts.
Quoted 8 lines
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
Re: [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost
In reply to Jie Zhang----- Original Message ----- From: "Jie Zhang" <[email protected]>
To: <[email protected]>
Sent: 28.03.2008 20:05
Subject: [Qemu-devel] A bug of running existing windows xp from x86 64 linuxhost
Quoted 6 lines
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 restartwhen qemu starts.
Maybe, You should show qemu command line first?
Sergey Bychkow
ICQ: 21014758
FTN: 2:450/118.55
Quoted 10 lines · Sergey Bychkov
----- Original Message ----- From: "Jie Zhang" <[email protected]>
Quoted 6 lines
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 restartwhen 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
Re: [Qemu-devel] A bug of running existing windows xp from x86 64linux host
----- Original Message ----- From: "Jie Zhang" <[email protected]>
To: <[email protected]>
Sent: 1.04.2008 11:06
Subject: Re: [Qemu-devel] A bug of running existing windows xp from x86 64linux host
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
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 restartwhen qemu starts.
Quoted 7 lines
Quoted 2 lines
Maybe, You should show qemu command line first?
I use the following command line:
sudo qemu -hda
/dev/sda-m 512I 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
Re: [Qemu-devel] A bug of running existing windows xp from x86 64linux host
Quoted 14 lines · Sergey Bychkov
----- Original Message ----- From: "Jie Zhang" <[email protected]>
Quoted 13 lines
Quoted 9 lines
Quoted 6 lines
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 restartwhen qemu starts.
Maybe, You should show qemu command line first?
I use the following command line:
sudo qemu -hda
/dev/sda-m 512
Quoted 8 lines
Quoted 1 line
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
Re: [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost
----- Original Message ----- From: "Jie Zhang" <[email protected]>
To: <[email protected]>
Sent: 2.04.2008 7:26
Subject: Re: [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
Quoted 7 lines
Quoted 4 lines
A disk read error occurred
Press Ctrl+Alt+Del to restartwhen qemu starts.
Maybe, You should show qemu command line first?
I use the following command line:
sudo qemu -hda
/dev/sda-m 512I 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.
Quoted 7 lines
Quoted 6 lines
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 512I 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
Re: [Qemu-devel] A bug of running existing windows xp from x86 64linuxhost
Quoted 7 lines · Sergey Bychkov
----- Original Message ----- From: "Jie Zhang" <[email protected]>
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
A disk read error occurred
Press Ctrl+Alt+Del to restartWith 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
Re: [Qemu-devel] A bug of running existing windows xp from x86_64 linux host
----- Original Message ----- From: "Jie Zhang" <[email protected]>
To: <[email protected]>
Sent: 3.04.2008 18:03
Subject: Re: [Qemu-devel] A bug of running existing windows xpfrom x86 64linuxhost
Quoted 9 lines
Quoted 7 lines · Sergey Bychkov
----- Original Message ----- From: "Jie Zhang" <[email protected]>
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
A disk read error occurred
Press Ctrl+Alt+Del to restartWith 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
Re: [Qemu-devel] A bug of running existing windows xp from x86_64 linux host
Quoted 4 lines · Sergey Bychkov
----- Original Message ----- From: "Jie Zhang" <[email protected]>
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