Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-users

Re: [Xen-users] how to create image file ?

Subject: Re: [Xen-users] how to create image file ?
From: Marcus Brown <marcusbrutus@xxxxxxxxxxxxxxxx>
Date: Tue, 26 Jul 2005 13:49:45 +1000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 26 Jul 2005 03:48:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050726033411.86528.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20050726033411.86528.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)
Hi,
I think I see what seems to be your problem (assuming the image file is ok).
You've created your image file in /temp (/dev/sda2) but specified it as
being in /root.
I'm unsure as to your intention, as I guess your xen-domain is too! :)

>     mount /dev/sda2   /temp       // /dev/sda2 have enough space
>     dd if=/dev/sda7   of=/temp/sda7.imge bs=64k
>  

right, so you're copying the filesystem in /dev/sda7 to an image called
sda7.imge ['e' a typo?] in /temp (/dev/sda2)

[snip]

> disk = ['file:/root/sda2.img,sda2,w']
>
without changing anything else, perhaps, 'file:/temp/sda7.imge,sda2,w'
would work?
[snip]

> root = "/dev/sda2 rw"

Note that this isn't talking about the /dev/sda2 in the dom0,
it's telling the domU where it's root is (the file you've exported as sda2)

[snip]

>
> Error: Error creating domain: vbd: Segment not found:
> uname=file:/root/sda2.img
>  

see?

Marcus.

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

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