[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] XCP - Cloning VM from Xen


  • To: linux@xxxxxxxxxxxxxxxx
  • From: Prateek Sachan <prateeksachan@xxxxxxxxx>
  • Date: Thu, 19 Aug 2010 01:33:41 +0530
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 18 Aug 2010 13:05:12 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=gOEp4zasZXZWMQEejQfdbjXSey89Ag+H7iDwlglWk6qA+jeD8iOAKK+sjKiOdjt2/l Yee4QXsaN5+Bnr3fHtgNrFgizd726SICJ1A/x7ok6blpwFBedYCm60EnnJw2PRzKtJyu kCHwUg16wgl8hil3yP7vEFCR0Nb5LNLP8Xfvo=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Simon,

To add on to this question:

Is it possible to run a VM (RHEL 5.2) which I had created on XCP 0.5 on XCP 1.0 whenever it is released?

Regards,
Prateek






---------- Forwarded message ----------
From:ÂSimon Hobson <linux@xxxxxxxxxxxxxxxx>
To:Âxen-users@xxxxxxxxxxxxxxxxxxx
Date:ÂWed, 18 Aug 2010 17:10:33 +0100
Subject:Â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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.