From: Ian Campbell Subject: Re: libvirt, libxl and QDISKs Date: Thu, 25 Apr 2013 12:33:09 +0100 Message-ID: <1366889589.20256.510.camel@zakaz.uk.xensource.com> References: <5177EA93.7000403@eu.citrix.com> <1366880153.20256.432.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Dave Scott , xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2013-04-25 at 11:36 +0100, George Dunlap wrote: > On Thu, Apr 25, 2013 at 9:55 AM, Ian Campbell wrote: > > On Wed, 2013-04-24 at 15:22 +0100, David Scott wrote: > >> Hi, > >> > >> Now that libxl + qemu's built-in disk backend for ceph/rbd is working > >> nicely, I'm trying to get it all working through libvirt. > >> > >> When libvirt's libxl driver creates a libxl_device_disk, it applies a > >> few simple rules[1] covering specific file format types (qcow, qcow2, > >> vhd). If none of these rules apply then it defers to libxl's best guess: > >> > >> * If driverName is not specified, default to raw as per > >> * xl-disk-configuration.txt in the xen documentation and let > >> * libxl pick a suitable backend. > > > > Can you specify driverName in your config somehow? I confess I don't > > know if this is ~= format or backend... > > > >> Anyone got any thoughts? (Or perhaps I've missed something obvious! :-) > > > > This is not the first time that the issue of hardcoded defaults in libxl > > has come up recently (in fact I think you mentioned one of the others to > > me...). > > > > It seems to me that there is a need arising for a system wide libxl > > configuration file which sets these sorts of defaults for all users of > > libxl on that system and which can be modified according to admin > > preference. As well as the disk backend selection (which is actually > > probably pretty complex to express in a simple configuration file) this > > has come up in the context of stubdomain usage and autoballooning. > > Something like this was actually on my "to-implement" feature list for > 4.3, but no one got around to it, so I dropped it. > > FWIW, I think having this kind of thing would make 4.3 betterer enough > that it would be worth slipping the release for a few weeks to get it > in. > > On the other hand, experience has shown that converging on what the > "right" interface should be take a heck of a lot longer than you > think; so maybe we should just plan on doing this for 4.4 at this > point. I don't think this can/should be rushed at this point. Ian.