[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] Domain replication
- To: mvrable@xxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, sco@xxxxxxxxxx
- From: jaikumar Ganesh <jaikumarg@xxxxxxxxx>
- Date: Sun, 23 Oct 2005 23:50:30 -0500
- Cc: "sowmya@xxxxxxxxxxxxxxxxx" <sowmya@xxxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 24 Oct 2005 04:47:52 +0000
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HTx/mNH6jh7BDEpHZfzZfSfERW4Tg4BG0hOgrkBPWl9VBh4sRTHU0MC7miRv7guG9sG0PUm/j6VpfZXTFCW1+LtLe09nsXCey9/wy452+qMilFNxH+esXx0GBJT1nwnz32YOyqC7N0gK/ncr7Hm+Zwi9OVjNYVGZuoxyFR60AHY=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
Hi Michael, Sylvain and others..
Thanks for the replies..
It would be great if you could provide some more details..
a) How exactly do I copy the memory and files? Is there any built in command that will do that for us?
b) Can I migrate between domains on the same machine ? Does Xen provide this support?
c) It would be great if you could provide some more details about how
you went about implementing cloning in Potemkin honeyfarm work
? You mentioned about a customized version of xen, that does it
for you.. Is this available for use by others ( i am also using this
for a research project in a university).
d) It would also be great if you could provide us with some hints (or
are there some hooks provided by Xen) to capture all the Xen calls made
by domain 1 , so that we can replay them on another configuration on
domain 2.
Thanks
Jaikumar
On 10/18/05, Michael Vrable <mvrable@xxxxxxxxxxx> wrote:
On Tue, Oct 18, 2005 at 04:30:56PM +0200, Sylvain Coutant wrote: > > I need to make a clone of this domain > > Roughly : > - pause & save > - copy memory file & disks partitions/files
> - restart domain 1 > - create a new configuration file for domain 2 (beware of MAC address > duplication) > - start domain 2 > > What I don't know is how you can handle MAC & IP address duplication.
> Domain 2 will continue where domain 1 left, that is with exactly the > same network hard & soft configuration. That will cause unsolvable > conflicts. You'll have either to reboot with a different network
> configuration or change it on the fly manually...
We're doing something similar in our Potemkin honeyfarm work (mentioned earlier in this thread). In our initial implementation, we did basically exactly what you described, taking advantage of save & restore
to implement cloning. Now, we're using a customized version of Xen to do the cloning for us, and to share memory in copy-on-write fashion between the domains. I'm still updating it for the latest xen-unstable,
though...
Earlier, we discovered that it's possible to specify a different MAC address when the domain is restored than what it was using when it shut down, and things seem to work without trouble. At the moment, though,
we're using a purely routed setup (each VM on a separate LAN segment), and so MAC address duplication isn't a problem.
For IP address duplication, we're currently running a small daemon in the pre-cloned image that responds to requests (sent over the network)
to switch IP addresses, then exits. We'd like to investigate other methods for switching the IP addresses on the fly.
--Michael Vrable
_______________________________________________ Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|