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] how to copy a guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] how to copy a guest
From: Michael Schmidt <michael.schmidt@xxxxxxxxxx>
Date: Tue, 16 Feb 2010 20:18:19 +0100
Delivery-date: Tue, 16 Feb 2010 11:20:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1266346705.4613.3.camel@xxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <2af70f431002160740k128d1193r201503eaea44a9a6@xxxxxxxxxxxxxx> <1266346705.4613.3.camel@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Am 16.02.10 19:58, schrieb jpp@xxxxxxxxxxxxxxxxxx:
Le mardi 16 février 2010 à 23:40 +0800, ma qiang a écrit :
Hi all,
     I have installed xen on the computer, and adopted LVM as domU's
storage devices. I have installed a centos for the domU, now I want to
copy this system as another domU, Who can tell me how?

     Thanks a lot.

Best Wishes!
Hello,

Use "dd" for example :
dd if=/dev/mapper/origin of=/dev/mapper/clone bs=65536
You will need afterward to create a new VM definition file and modify
the machine name in /etc/sysconfig/network, /etc/hosts and with
"hostname newname".

Regards

JPPO



If you use dd (or better lvm snapshot) to get a copy from a running domU, use "xm pause" or "xm save" to copy the memory too.

Best Regards
- Michael Schmidt


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

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