|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Cloning a running DomU?
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
|
|
|
|
|