On 2010-08-10 16:50, Ian Jackson wrote:
> Joe Jin writes ("[Xen-devel] [PATCH 0/2] Fix could not boot vm image which
> converted from phy-partition"):
> > When booting up windows VM which converted by dd windows physical
> > partition, it failed with "Error Loading Operating System", the
> > partition build on scsi/raid controller. The root cause is qemu
> > and hvmloader could not calaulated C/H/S correctly, then ntloader
> > could not found the root partition.
> Thanks for this, but I'm afraid I'm kind of missing the background
> here. I'm not very familiar with how the CHS-guessing works. Perhaps
> you could explain ?
The background is we dd physical MS-Windows partition, physical disk based
on RAID controller, we tried to boot it but failed with "Error Loading
The error message reported by rombios for it could not find the first
sector. qemu calculated CHS by read MBR(the first 512 bytes) of image file,
when H(eads)>16, qemu set it to default value heads(16). in fact disk on
RAID heads is 32, this made qemu pass incorrect offset of image file to
rombios, then rombios failed to find the boot loader.
> Also, have you looked at upstream qemu to see what is done there ?
> We're currently working on a merge of qemu-dm back into upstream qemu
> and if possible we'd like to avoid adding more interface
I did not check qemu codes but we have tried to boot up the image file
by qemu, same error, we did not applied the patch to qemu.
Xen-devel mailing list