This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] adding file vbd to running domain

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] adding file vbd to running domain
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Sat, 21 Aug 2004 17:51:40 +0100
Cc: Robin Kluit <robin.kluit@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Sat, 21 Aug 2004 17:53:19 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Sat, 21 Aug 2004 17:21:22 BST." <E1ByYcM-0006Y7-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> The virtual blkdev driver can only talk to block devices. If there was
> some way of 'mounting' a file as a block device then you could connect
> your guest to that block-device node, but I don't think there's any
> way of doing such a mount.

Well, if you've got the loop device built into your dom0 kernel
you can use 'losetup' to turn files into block device and then
export them to other domains.

Last month I posted an example of how to create a sparse file
with 'dd' and export it to another domain.

However, by the sounds of it you want to be able to dynamically
add and remove block devices to domains. This used to work under
Xen 1.2, but I'm afraid I think it got broken in the unstable
tree and is yet to be fixed. Although xend and backend blk driver
supports adding and removing blk devices, there's no way to tell
the frontend driver to refresh its view of what block devices are

Re-writing and simplifying the blk device control message
interface is on the todo list.
> Probably the most flexible way of managing guest OS disc volumes is to
> use LVM2. Then you can create fleible logical volumes on top of one or
> more real disc partitions (physical volumes) and thereby get the
> manageability you are looking for. 
> We currently have no integration of our toolset with LVM2, but there's
> no reason for you not to set up some logical volumes, and then specify
> those in your guest-OS configuration files. Better integration is
> perhaps something we will investigate in future.   

I posted another message earlier in the month that gives example
invocations for setting up CoW block devices using LVM2


SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>