From: Eric Shelton <knockknock@gmail.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Eric Shelton <eshelton@pobox.com>
Subject: Re: non-dom0 disk backend still not working after recent patches
Date: Tue, 30 Apr 2013 13:04:54 -0400 [thread overview]
Message-ID: <4592741552091255017@unknownmsgid> (raw)
In-Reply-To: <1367339919.3142.597.camel@zakaz.uk.xensource.com>
On Apr 30, 2013, at 12:44 PM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Tue, 2013-04-30 at 16:40 +0100, Eric Shelton wrote:
>> Although some patches were submitted recently to allow a disk backend
>> domain to be
>> specified, it appears there is still some code that presumes dom0 is
>> the backend. Has
>> this actually been tested for creating an HVM? I am hoping someone a
>> bit more familiar
>> with the process of creating an HVM can lend a hand.
>>
>> As an example, I have a FreeBSD-based domU (9.1 HVM w/ PV drivers,
>> domid=1, name=freebsd)
>> on which I created a small 40MB test image at /pool1/media/betest.img,
>> to see if I could
>> get another domU to access the image.
>>
>> After applying the patch I sent out a little earlier today and the
>> following xl.cfg line
>> (the below config for hda is my best guess - should this be specified
>> differently?):
>
> It look approximately correct to me.
>
>> disk = [ 'backend=freebsd, format=raw, vdev=hda,
>> target=/pool1/media/betest.img, access=rw',
>> '/mnt/bootimgs/install-amd64-minimal-20130110.iso,,hdc:cdrom,r' ]
>>
>> I attempt to start up an HVM, but qemu terminates early. The HVM
>> starts up fine if the
>> hda info is removed. In the below excerpt from "xl -vvv create ...",
>> it looks like qemu
>> is not informed that hda is on domain 1, not dom0. I assume the
>> backend domid should be
>> specified on the command line (unless qemu pulls disk info from
>> xenstore, in which case
>> why bother passing any disk parameters via the command line?)
>
> These are the emulated (not PV) disks.
>
> Unfortunately I think we currently have a requirement that the qemu for
> an HVM guest runs in the same domain as the disk backend, since it needs
> to be able to access the disk (or image) directly (qemu doesn't speak
> the PV disk protocol).
>
> In principal we could setup a dom0 vbd for the qemu process to be able
> to access this disk, but currently we do not.
>
> Running with a qemu stubdomain would work around this because the
> stubdomain would speak the PV disk protocol to the driver domain.
>
> Ian.
>
Thank you- I will have to try using a stubdomain.
Two related questions:
Will/should xl block-attach make the domU backend disk available to dom0?
Would you expect this to work directly for a PV guest, or am I going
to have to turn to pygrub (assuming it similarly facilitates storage
access) or some other mechanism?
- Eric
next prev parent reply other threads:[~2013-04-30 17:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 15:40 non-dom0 disk backend still not working after recent patches Eric Shelton
2013-04-30 16:38 ` Ian Campbell
2013-04-30 17:04 ` Eric Shelton [this message]
2013-05-01 8:13 ` Ian Campbell
2013-05-01 13:27 ` Eric Shelton
2013-05-01 15:27 ` Ian Campbell
2013-05-01 19:48 ` Eric Shelton
-- strict thread matches above, loose matches on Subject: below --
2013-05-01 15:24 Eric Shelton
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=4592741552091255017@unknownmsgid \
--to=knockknock@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=eshelton@pobox.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.