|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Cloning VM from Xen
Benjamin Knoth wrote:
i created some virtual machines on SLES 10 with Xen.
Now i would like to use Xen on SLES 11.
My harddisks from all vm are lvm.
Is it possible to clone my existing vm to my new server which runs with
SLES 11?
Short answer - copy the LVs and guest config from one server to the other.
Longer answer :
Create each LV on the new server, copy the contents across from the
old one. If the LV is identical in size then you can probably just do
a bytewise copy of the LV. Alternatively, you can mount the LV on the
DomU and copy all the files across using your favourite tool.
My personal preference is :
mount LV on /mnt on each Dom0
rsync -avH --numeric-ids /mnt/ root@xxxxxxxxxxxxxxxxxxxxxxxxx:/mnt/
scp /etc/xen/guest_cofig_file root@xxxxxxxxxxxxxxxxxxxxxxxxx:/etc/xen
unmount /mnt on each machine
repeat above for each LV
startup guest on new server
Obviously you can take this opportunity to resize volumes, and even
re-arrange then (eg you can split a single LV on the old server and
make it separate / and /var on the new one - don't forget to alter
both the guest config and the guest's /etc/fstab.
--
Simon Hobson
Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|