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

[Xen-users] XCP - Cloning VM from Xen

To: linux@xxxxxxxxxxxxxxxx
Subject: [Xen-users] XCP - Cloning VM from Xen
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=JCMJrtofPKAE6yWJW3yUdd8AJ3ljGmQLeZQmY8+nNKo=; b=iYg/nl/J/iXwpUFRMVLSlaqlt+y2vvYUWmlW/MeoL3vGLs8SZ0H8IatCItfxbso64M jVV3rbGmRYcTDdV1NTfAs3L+ZKYUk3oduCMNEvxefKvoeN3E5qXbsHbF8yoXpJov7jS0 I5+QVNujoqCU4i5tN+EnTXkAhBZ0f2CX4G1Qk=
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=
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] XCP - Cloning VM from Xen, Prateek Sachan <=