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-devel

Re: [Xen-devel] Avoiding Xen suspension at source after migrate.

To: NT_Mail List <nt_at_list@xxxxxxxxx>
Subject: Re: [Xen-devel] Avoiding Xen suspension at source after migrate.
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Thu, 14 Sep 2006 23:48:52 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Sep 2006 15:49:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060914211805.68797.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060914211805.68797.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Thu, Sep 14, 2006 at 02:18:05PM -0700, NT_Mail List wrote:
> Xen Developers:
> 
> Today, we can move a VM from point A to point B. The
> VM ends up at point B. After that, all resources are
> reclaimed at point A. Is there a way we could that,
> after the migration, the VM in A 
> continues to run. We end up with two VMs, one in A and
> one (its clone) in B?
> 
> I assume that today's Xen doesn't have any feature to
> do this (e.g., xm clone). I wonder however if there is
> a specific place in the Xen code that we can comment
> out to make this trick work (intuitively, 
> the clone operation requires less code than the
> migration).

In Xen perhaps it would require less work, but the implications for the
guest OS are definitely non-trivial & the vast majority of the work I'd
say.

You need them to change their IP address(s) and MAC addresses - but
what do you do about processes with active network connections ?
You'll also need to allocate a new UUID to the guest VM (and restart
any apps which hook off the UUID within the guest). Not quite sure
how you'd signal to the guest OS to do this work, but would need to
make sure the 2 vms don't both transmit with same MAC/IP details
until one of them re-configured.

The hardest bit of all is probably the filesystems, in particular the
root filesystem. If you're using LVM you could have XenD create a
writable snapshot for one of the VMs - basically any way to stop the
two OS writing to the same root filesystem. One simpler approach
would be to run off a read-only filesystem eg the Fedora Stateless
Linux project.

Any this doesn't even consider the implications for specific applications.
What does it mean if you fork a VM with an Oracle database ? Perhaps these
are exactly the kind of problems you're interested in experimenting with 
though :-)

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

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