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 a running DomU?

To: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] Cloning a running DomU?
From: Jordan Share <jshare@xxxxxxxxxx>
Date: Thu, 04 Jan 2007 18:21:58 -0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, Yoav Felberbaum <mailinglists@xxxxxxxxxx>
Delivery-date: Thu, 04 Jan 2007 18:21:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <459DAEBD.1050809@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <339E8C28-241F-4DCC-8426-6FE2903F61D8@xxxxxxxxxx> <459DAEBD.1050809@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0b1 (Windows/20061206)
Nico Kadel-Garcia wrote:
Yoav Felberbaum wrote:
Hi,

I am currently running a Xen 3.0.2 server with a couple of DomUs (that are file-based, created via dd). Now, I was wondering - is it possible to make a copy/clone of an existing DomU to create a new DomU (on the same machine i.e. NOT live migration).

The only way I can think of doing this involves shutting down the DomU briefly, and some quick typing, which I'd really prefer to avoid.

Any suggestions?

You could run an rsync-based network duplication. It would be as complete, but it would speed the heck out of completing it with an rsync of a pair mounted file system images, rather than using dd.

If you don't need an exact copy, you would probably get "close enough" just 
with an rsync of live machine's filesystem to a mounted (or loopback mounted) filesystem.

You can run the rsync a few times and watch what changes after the first one.  If it is 
just log files, that's may be good enough for you.  I usually use "--numeric-ids 
--archive --delete"

(And once you have the copy, you may want to make a tarball of it.  It's nice 
to have a tarball of a base system for creating future systems.)


Jordan

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

<Prev in Thread] Current Thread [Next in Thread>