WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] using domain0 file as root disk for domU

To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>, "Paul Larson" <plars@xxxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] using domain0 file as root disk for domU
From: "You, Yongkang" <yongkang.you@xxxxxxxxx>
Date: Mon, 18 Jul 2005 13:21:49 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 18 Jul 2005 05:20:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWKE7qikKH7hGYcTemCQx4yvgdm+gBCzOrwAA4SDDA=
Thread-topic: [Xen-devel] using domain0 file as root disk for domU
Dan,

Could you try this:
losetup /dev/loop2 /dev/sda1

then modify domU config:
disk = [ 'file:/dev/loop2, sda1, w' ]
root = "/dev/sda1 ro"

It can boot. But I meet some problem when file system check, maybe it is
because my dom0 and domU used same file system.

Thanks,
Yongkang You(Kangkang)

>-----Original Message-----
>From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
>bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Magenheimer, Dan (HP Labs
>Fort Collins)
>Sent: Monday, July 18, 2005 6:30 AM
>To: Paul Larson
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
>Subject: RE: [Xen-devel] using domain0 file as root disk for domU
>
>Error: Error creating domain: cannot concatenate 'str' and 'NoneType'
>objects
>
>> >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! :)
>
>Hmmm... when I try this, I get:
>
>Error: Error creating domain: cannot concatenate 'str' and 'NoneType'
>objects
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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