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-users

Re: [Xen-users] img file to physical disk

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] img file to physical disk
From: MS <ms@xxxxxxxxxx>
Date: Mon, 07 Apr 2008 10:08:29 +0200
Delivery-date: Mon, 07 Apr 2008 01:09:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1207549638.14578.5.camel@xxxxxxxxxxxxxxxxxxxxx>
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: <1207549638.14578.5.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Stuart Poulton schrieb:
Hi all.

I've got a domU that exists in a sparse file image, I'd like to now use
this on a physical partition (loopback performance issues).

Is there an a easy way to do this ?

Thanks

Stuart


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


just stop the domu, mount the image and the disk
# mount -o loop /foo/bar/myimage /mnt/old
# mount /dev/sdx1 /mnt/new

and copy all the files
# cd /mnt/old
# tar c * | tar x -C /mnt/new

and change the domu`s config

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