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 ?

of cource !
used  dd if=/dev/sdb1 | gzip | ssh root@hostx  "gzip -d > /devh/sdb1" to "copy" the partition between hosts
copied guest config file also to new host and generated new uuid and mac address for it. thats it... done :)

could not get virt-clone to work between xen hosts.

thanks for the help ! :)




"Ferreira, N.L." <N.L.Ferreira@xxxxx>

03/22/2009 11:45 AM

To
Arnar Þórarinsson <art@xxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
cc
Subject
RE: [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

Thessi tolvupostur og vidhengi hans geta innihaldid trunadarupplysingar
og er eingongu aetlaður theim sem hann er stiladur a.
Oheimil medferd tolvuposts thessa og vidhengja hans getur vardad
skadabota- og refsiabyrgd samkvaemt logum um fjarskipti. Efni
tolvupostsins og viðhengja er a abyrgd sendanda ef thad tengist
ekki starfsemi Flugstoda ohf. Ef Thu ert ekki skradur mottakandi og
hefur fengid skeytid vegna mistaka, vinsamlegast hafdu strax samband vid
sendanda.
------------------------------------------------
This e-mail and its attachments is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete the
material from any computer.

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