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] using domain0 file as root disk for domU

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Subject: Re: [Xen-devel] using domain0 file as root disk for domU
From: Paul Larson <plars@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Jul 2005 09:36:17 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 16 Jul 2005 14:35:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <516F50407E01324991DD6D07B0531AD54FA8D9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <516F50407E01324991DD6D07B0531AD54FA8D9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Magenheimer, Dan (HP Labs Fort Collins) wrote:

I know I've seen this before but can't find it...

Can someone provide a pointer to (or if simple,
just a quick reply) how to use a domain0 file as
a root disk for a domU?

I am able to mount the file as a loopback device:

mount -o loop,offset=512 -t ext2 /var/xen/sda /mnt

But how do I specify it in xmdefconfig?  I tried:

disk = [ 'phy:/mnt,hda1,w' ]

disk = [ '/mnt,hda1,w' ]
disk = [ 'file:/var/xen/sda,hda1,w' ]

Make sure you unmount it in dom0 first! :)

Paul Larson

Xen-devel mailing list

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