From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Larson Subject: Re: using domain0 file as root disk for domU Date: Sat, 16 Jul 2005 09:36:17 -0500 Message-ID: <42D91B61.8080105@linuxtestproject.org> References: <516F50407E01324991DD6D07B0531AD54FA8D9@cacexc12.americas.cpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516F50407E01324991DD6D07B0531AD54FA8D9@cacexc12.americas.cpqcorp.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Magenheimer, Dan (HP Labs Fort Collins)" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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! :) Thanks, Paul Larson