All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Anthony Perard <anthony.perard@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: incorrect disk numbering with qemu
Date: Wed, 15 Jan 2014 18:45:10 +0100	[thread overview]
Message-ID: <20140115174510.GA5171@aepfle.de> (raw)
In-Reply-To: <1389806527.3793.106.camel@kazak.uk.xensource.com>

On Wed, Jan 15, Ian Campbell wrote:

> On Wed, 2014-01-15 at 18:12 +0100, Olaf Hering wrote:
> > It seems qemu does not enumerate the configured disks correctly with a
> > config like this:
> > 
> > disk=[  
> >         'raw:/some.iso,hda:cdrom,r',
> >         'raw:/some.raw,xvda,w',
> > ]
> > 
> > With a PV guest it works fine, the guest has a hda and xvda device. 
> > But a HVM guest fails to start:
> > qemu-system-i386: -drive file=/some.raw,if=ide,index=0,media=disk,format=raw,cache=writeback: drive with bus=0, unit=0 (index=0) exists
> > 
> > I think that kind of config used to work with xend.
> 
> Did it? I thought xvda and hda were effectively considered two faces of
> the same device, so I'm not so sure. I'd be particularly surprised if
> this worked by design rather than coincidence.

Putting a 'device_model_version="qemu-xen-traditional"' into the config
fixes it for me.

So the question is how it is supposed to work. My understanding is that
for HVM some sort of IDE is (or was?) required to let it boot from a
block device. Thats why I have hd[abcd] as device name. In addition to
that one could have as many disks named xvd[abc..], which are PV only.

After some testing it seems that today the guest will boot from xvda,
even with qemu-xen-traditional. So either that got fixed with libxl, or
xend from 4.2 got it all wrong.

So what should be done with such configs, if they really exist in the
wild? The obvious workaround is device_model_version="qemu-xen-traditional".

Olaf

  reply	other threads:[~2014-01-15 17:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 17:12 incorrect disk numbering with qemu Olaf Hering
2014-01-15 17:22 ` Ian Campbell
2014-01-15 17:45   ` Olaf Hering [this message]
2014-01-16 10:58     ` Ian Campbell
2014-01-16 11:44       ` Olaf Hering
2014-01-16 11:49         ` Ian Campbell
2014-01-16 12:01           ` Olaf Hering
2014-01-16 15:15         ` Stefano Stabellini
2014-01-16 15:31           ` Jan Beulich

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=20140115174510.GA5171@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Campbell@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.