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 guests between Dom0's ?

To: Arnar Þórarinsson <art@xxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] cloning guests between Dom0's ?
From: "Ferreira, N.L." <N.L.Ferreira@xxxxx>
Date: Sun, 22 Mar 2009 12:45:22 +0100
Cc:
Delivery-date: Sun, 22 Mar 2009 04:46:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: <OF3E24FCE2.5712F282-ON00257581.003E8DF2-00257581.003F16D6@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmq4Z78iJFZGyvcQDmp2p9E4vK/vwAAEoQT
Thread-topic: [Xen-users] cloning guests between Dom0's ?

Hi Arnar

Of course its possible, and there are several options.
So your guest is on a partition. A physical partition or a LVM LV?

For a LVM LV you can do the following (using the LVM snapshot) without shutting down the domU:

lvcreate -s /dev/vg/domU -L1G -n domU_snap
mkdir /mnt/domU_snap
mount /dev/vg/domU_snap /mnt/domU_snap
tar cvjpf /storage/path/domU_snapshot.tbz /mnt/domU_snap
lvremove /dev/vg/domU_snap


For a physical partition, you should shutdown the domU first (probably pausing is also ok).
In this case, you can use the dd command for the backup (check the archives).
virt-clone is also an option.


Cheers,
N.




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx on behalf of Arnar Þórarinsson
Sent: Sun 22-Mar-09 12:29 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] cloning guests between Dom0's ?

Hi,
Just setup a guest on a Dom0 (CentoOS 5.2) and would now like to clone or
copy that host to another Dom0 (CentOS 5.2).
Is that possible ?

Guest uses a partition so I can't copy the image file over.
The only thing I've found is about migrating a guest between Dom's.

Best Regards,

/Arnar Thorarinsson

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