[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Migration of physical host to Xen-Instance


  • To: "Robert Dunkley" <Robert@xxxxxxxxx>, "Tino Schöllhorn" <t.schoellhorn@xxxxxxxxxxxxxxxxx>
  • From: "Todd Deshane" <deshantm@xxxxxxxxx>
  • Date: Wed, 13 Aug 2008 13:33:28 -0400
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 13 Aug 2008 10:34:03 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=IvuWrYsp7XH3UZ6zs01+vuWiUQSpnZcmRKobSUDfWg8tMzHQltuFNUPqikGTYg6WOs 6lmmOP5nk9x72xPPoTm0Hpv63gNCPgYMFzr7ROANJ7wF6n6JjMgbRyl7mScfP+Ntr59g 9YzkApSmfWtkD6238ROo47Fb/WGd/CZFsDWKk=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Tino Schöllhorn

> we are currently in the process of virtualizing an already existing
> infrastructure. So far we are able to run a XEN-System and several DomUs
> and everything is fine.
>
> Now we like to migrate an already existing Linux-System (actually
> CentOS) which is installed on its own box to our XEN-System, i.e. we
> want to virtualize it.
>
> Are there any documents about best practices of how to move this system
> to the XEN-Box?
>
> Glad for any hints and suggestions.
>

The basic idea is to get the file system of the physical "to be
virtualized" box into a guest image.

There are quite a few different ways to store the guest image (a file,
partition, logical volume, network storage, etc.).

The things to watch out for are things like /etc/fstab, the partition
labels etc. and using the right root=option on the kernel command line
(in Grub),
Also watch out for network specific settings in the "to be converted"
guest file system.

The process isn't too bad once you watch out for those types of things.

As far as I know there is not a lot of documents online that describe
probably since it is relatively straight forward and will differ
depending on your
exact situation.

If you are looking for a book on Xen, I would recommend the one that
we wrote called "Running Xen". The website may even have some links
that could
help you.

If you give more details of how you want to store your guests and how
much information you will need in terms of the linux commands needed
to back
things up etc. I am sure that you could get quite a bit of help from
this list to get you through the process.

On Wed, Aug 13, 2008 at 10:18 AM, Robert Dunkley <Robert@xxxxxxxxx> wrote:

> I'm interested in exactly the same thing. I was wondering if migration of an 
> existing server might be possible using an LVM snapshot and careful matching 
> of the disk and nic device names in the Xen config

I think this method should work well as long as you get a full backup
of the file system when doing the snapshot. Alternatively, simply
doing a dd into a file worked for me awhile back as well.

Hope that helps.

Cheers,
Todd

-- 
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.