missing block script support for qemu in libxl
Why does libxl now allow script= with backend=tap|qdisk? See tools/libxl/libxl_device.c:disk_try_backend.
Ideally the script should prepare the backend storage based on info from target=. Then the script should report either the dentry to be used by qemu back to libxl, or it should setup the "physical-device" entry to be used by blkback.
Right now the target= info is passed to the script, but its also used as ->pdev_path for qemu. Obvisouly qemu cant possibly make sense of the target= info, because its meant for the script=.
tools/libxl/check-xl-disk-parse has some script examples. I think right now its not possible to boot an HVM guest from iscsi, for example.
Should the logic in libxl be changed to make scripts= more useful, and let libxl read info for qemu which has to be provided by the script?
Olaf
Quoted 12 lines · Olaf Hering
Why does libxl now allow script= with backend=tap|qdisk? See tools/libxl/libxl_device.c:disk_try_backend.
Ideally the script should prepare the backend storage based on info from target=. Then the script should report either the dentry to be used by qemu back to libxl, or it should setup the "physical-device" entry to be used by blkback.
Right now the target= info is passed to the script, but its also used as ->pdev_path for qemu. Obvisouly qemu cant possibly make sense of the target= info, because its meant for the script=.
Quoted 5 lines
tools/libxl/check-xl-disk-parsehas some script examples. I think right now its not possible to boot an HVM guest from iscsi, for example.Should the logic in libxl be changed to make scripts= more useful, and let libxl read info for qemu which has to be provided by the script?
You mean, should the bug wherein HVM domains with emulated disks (which is all of them, by default) cannot use block scripts be fixed? Yes it should, and I'm working on it at the moment.
-George
Quoted 16 lines · George Dunlap
Quoted 15 lines · Olaf Hering
Why does libxl now allow script= with backend=tap|qdisk? See tools/libxl/libxl_device.c:disk_try_backend.
Ideally the script should prepare the backend storage based on info from target=. Then the script should report either the dentry to be used by qemu back to libxl, or it should setup the "physical-device" entry to be used by blkback.
Right now the target= info is passed to the script, but its also used as ->pdev_path for qemu. Obvisouly qemu cant possibly make sense of the target= info, because its meant for the script=.
tools/libxl/check-xl-disk-parsehas some script examples. I think right now its not possible to boot an HVM guest from iscsi, for example.
Quoted 6 lines
Quoted 2 lines
Should the logic in libxl be changed to make scripts= more useful, and let libxl read info for qemu which has to be provided by the script?
You mean, should the bug wherein HVM domains with emulated disks (which is all of them, by default) cannot use block scripts be fixed? Yes it should, and I'm working on it at the moment.
Or, if you're keen, I could hand it off to you. :-) But since I'm currently elbow-deep in the domain creation code it's probably easier for me to just press on.
-George
Quoted 2 lines · George Dunlap
You mean, should the bug wherein HVM domains with emulated disks (which is all of them, by default) cannot use block scripts be fixed?
Yes.
Quoted 1 line
Yes it should, and I'm working on it at the moment.
Great. Please cc me when the patches are ready.
Olaf
Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Olaf Hering
Sent: 18 November 2015 09:45
To: George Dunlap
Cc: [email protected]
Subject: Re: [Xen-devel] missing block script support for qemu in libxlOn Wed, Nov 18, George Dunlap wrote:
Quoted 9 lines
Quoted 2 lines
You mean, should the bug wherein HVM domains with emulated disks (which is all of them, by default) cannot use block scripts be fixed?
Yes.
Quoted 1 line
Yes it should, and I'm working on it at the moment.
Great. Please cc me when the patches are ready.
Just wondering if you guys are aware of this work:
http://xapi-project.github.io/xapi-storage/
(more detail at http://xapi-project.github.io/xapi/futures/smapiv3/smapiv3.html)
It looks like a pretty neat way to deal with different storage backends and incorporates provisioning 'plugins' aswell.
Paul
Quoted 6 lines
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel