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] dynamically allocating loopback devices?

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] dynamically allocating loopback devices?
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Fri, 11 Mar 2005 14:05:06 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, ian.pratt@xxxxxxxxxxxx
Delivery-date: Fri, 11 Mar 2005 22:06:11 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=mmPLC/HikYjRAejhlMrW9XcY+zxKxXqa04s1S61BRTg92WtgnjSsw2zimyhFEIoKxwK4XJ77Yzvt89hWAt2GWUMuxqFYG6azyrSCeVnupYNMy1vyX/WkKB2AEZ47Gz1DXbEUGkwSqQn5XSg9d7l3vrcFTiiafJF+2zQLiULFSno=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E35E3@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E35E3@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Kip Macy <kip.macy@xxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
That allows me to bypass the losetup, but what about device
allocation? - the examples I see all look like
disk = [ 'file:/u/kmacy/mdroot-5.3,loop7,w' ]

What I'd really like is to be able to drop the second parameter, or 
do something like

disk = [ 'file:/u/kmacy/mdroot-5.3,*,w' ]


On Fri, 11 Mar 2005 21:55:39 -0000, Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> wrote:
> > My users' VM disks are all loopback files. Right now they have to run
> > losetup on each of their files before starting their VMs. This means
> > we have to statically allocate loopback devices. And if they want to
> > change the disks used they have to remember to run "losetup -d". Is
> > there any way, without my writing extra glue logic, for a user to say
> > in his config file "these are my loopback files, I don't care what
> > loopback devices they get bound to, just bind them for me and then
> > start my VM"?
> Check out the 'file:' syntax for specifying vbd's.
> Ian

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Xen-devel mailing list