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] Cloning domUs

To: Steve Wray <steve.wray@xxxxxxxxx>
Subject: Re: [Xen-users] Cloning domUs
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Tue, 07 Aug 2007 00:08:23 +0100
Cc: Stephen Shaw <stshaw@xxxxxxxxxx>, Geoff Kirk <geoff.k@xxxxxxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Aug 2007 16:05:56 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=DdGiCQrU1dqiuDNcMcuK2qvkqpUfRNZyFnK3dBBOBJMR6lKGw+Q+GH+KDC9bI5nSYsi09KYl1R6zhmbyqEPbYgHHJMfK4t+1ImiRzSllho/2PoawkfS6+uMFJHtj1j5H65AWo3OWTFPcpGkwaNoF8hPjs8zeo8NRv9u9d2LYa8s=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=hQIS3kzxeCefAf8UrU4rZ5I5vDH7ExEt/IZdhVOfld48oiqrlq77Kse5sung4R5JbmFpJfumCUjFMrY2siqZQQdh8FSEzd7EJoeK1j0FPLXYIqr607RCEvQew+gmaBUgRIdOarLpBjGoaLr1uRr1PeCWPpD4oDMiELRSbRdOB3A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46B790D5.6010203@xxxxxxxxx>
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: <7fedbc910708060456k418441b0k53fd7f6a0cd720e6@xxxxxxxxxxxxxx> <46B70CF6.5090607@xxxxxxxxxxxxxxxx> <7fedbc910708060507i2b8e54b2mab73f358e66e80da@xxxxxxxxxxxxxx> <46B72C73.9090806@xxxxxxxxxxxxxxxxxxx><46B72C73.9090806@xxxxxxxxxxxxxxxxxxx> <46B77957.8040403@xxxxxxxxx> <46B73569.DCE9.00A8.0@xxxxxxxxxx> <46B790D5.6010203@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
Steve Wray wrote:
Stephen Shaw wrote:
Nico Kadel-Garcia <nkadel@xxxxxxxxx> 08/06/07 1:41 PM >>>
Geoff Kirk wrote:
shacky wrote:
What storage method are you using for the domU?
I'm using LVM for most domUs...


Using LVM i create a new volume mount the domU i want to copy and the new volume, format the new volume and cp -dpR the files over, then edit the network/hostname config. Don't forget swap space too.

It maybe you can just snapshot the domU and edit the network but i don't know if thats wise.

Geoff.
I use 'rsync -avH' instead of 'cp -a', since it handles being re-run better and handles exclusions better, too.

rsync is great. Are you creating sparse files? If so, can rsync handle that

I've used cp --sparse=always when I copy domUs

And don't forget the --numeric-ids on rsync.
Not relevant here: the Dom0's /etc/passwd and associated uid's is the one in charge of both the source and target uid's. Very useful for other circumstances, though!

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

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