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] newbie questions: copying and cloning xen vm

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] newbie questions: copying and cloning xen vm
From: Andrea Monti <ilsuonogiallo@xxxxxxxxx>
Date: Mon, 22 Aug 2011 10:05:35 +0200
Delivery-date: Mon, 22 Aug 2011 01:08:04 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DENIjaeUO1vm/BBVGKCim5Ii/IkhLdZCTNvE2QCNLZk=; b=JlK42kiMtJ5IEB9FUKTf7Y7THS2qF5ChVvQF4ZwQjROgbbWWP7S0t10Yp6+3FH2+p9 74RluuA4HggzvpjVHOukB9JvI2WiTcKAsyEC0DuR0AGGlQnZ9JhSdfCIDcxJ6gD0IZwE MF9Q3x2H9nkFBtdRG5CLJrubCaQHZruBoQa50=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAG1y0seG+OxtXKq8DV10jtT-2t6cg5VvUCk6dyM_XFwdgkX=OA@xxxxxxxxxxxxxx>
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: <CAAQVbZbaqRZhrTZ3XD0_Q6Zuye11tp7hY1C7H1_=3rZiPmaO=Q@xxxxxxxxxxxxxx> <CAPbp-BkwbMw=tbpbiH4jjLcyGmE6PgW=JoR0YKtC8UkXm=GOCg@xxxxxxxxxxxxxx> <CAAQVbZZ4d7jDrqAEdi0Eo50fgn9qPcx+jGpOzvPLgY=3jEkf_w@xxxxxxxxxxxxxx> <CAG1y0seG+OxtXKq8DV10jtT-2t6cg5VvUCk6dyM_XFwdgkX=OA@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


2011/8/12 Fajar A. Nugraha <list@xxxxxxxxx>
On Fri, Aug 12, 2011 at 3:04 PM, Andrea Monti <ilsuonogiallo@xxxxxxxxx> wrote:
> Hi Diedo,
>
> thank you for your input.
> Unfortunatly xen-create-image is part of xen tools, so it is only available
> on Debian.
> I am using Xen 3.4 on Oracle VM, so I don't have xen-tools available :
> that's why I am looking for "native" xen tools to copy / clone / backup my
> vms.

"native" is somewhat tricky. The only common part in XenServer/XCP and
xen (the hypervisor used by linux distros) is basically just the
hypervisor. Even the userland tools can be different (xe vs xm/xl).

The hypervisor by itself doesn't really have anything to do with
"hot-clone" or "hot-backup". That functionality is implemented in:
- OS driver/additions (if any) id domU, that would ensure all data is
flushed to disk before the snapshot
- domU backing storage that is capable of doing snapshot/clone (e.g.
LVM, VHD image)

So the short version to your question, the closest thing to what you
want is to probably do a LVM-snapshot on dom0, use the snapshot data
to create a clone, then delete the snapshot afterwards. If your
backing storage is capable of creating "good" clones (e.g. zfs,
netapp) then you could use that directly.

--
Fajar



Hi Fajar,
Thanks for your explanations!

I managed to use logical volumes as guests partition, so I can use LVM-snapshot on dom0 to do hot-backups of my VMs and I use nested lvm on domU to manage disks and partitions.

Andrea

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