xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Joe Jin <joe.jin@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, haobo.zhou@oracle.com,
	Joe Jin <joe.jin@oracle.com>,
	greg.marsden@oracle.com, Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH 0/2] Fix could not boot vm image which converted from phy-partition
Date: Wed, 11 Aug 2010 16:00:57 +0800	[thread overview]
Message-ID: <20100811080057.GA7778@joejin-pc.cn.oracle.com> (raw)
In-Reply-To: <19553.30047.76482.165901@mariner.uk.xensource.com>

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
Operation System".

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

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.

Thanks,
Joe

  reply	other threads:[~2010-08-11  8:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 23:35 [PATCH 0/2] Fix could not boot vm image which converted from phy-partition Joe Jin
2010-08-05 23:41 ` [PATCH 1/2] QEMU: Don't set all to default C/H/S when vm heads>16 Joe Jin
2010-08-05 23:49 ` [PATCH 2/2] hvmloader->rombios use C/H/S, LBA when have been set by qemu Joe Jin
2010-08-10 15:50 ` [PATCH 0/2] Fix could not boot vm image which converted from phy-partition Ian Jackson
2010-08-11  8:00   ` Joe Jin [this message]
2010-10-25  5:53 ` [PATCH 2/2] hvmloader->rombios use C/H/S, LBA when have been set by qemu DuanZhenzhong
2010-10-26 16:23   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100811080057.GA7778@joejin-pc.cn.oracle.com \
    --to=joe.jin@oracle.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=greg.marsden@oracle.com \
    --cc=haobo.zhou@oracle.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).