Wednesday, July 3, 2013

Migrate from Xen to XenServer [feedly]

Migrate from Xen to XenServer
https://xen-orchestra.com/migrate-from-xen-to-xenserver/

via feedly.com

As you may know, XenServer is now OpenSource. It brings a lot a nice features, but your existing virtual infrastructure is on older Xen? Don't panic, here is a way to migrate to the new one, without pain.


This tutorial explain how to migrate from Xen 4 on Debian 6 to XenServer 6 (6.2 precisely). First thing first, some definitions:

  • xenserver1 is your new XenServer;
  • oldxen1 is your old Xen Server on Debian 6;
  • vm1 and vm2 are vm existing of oldxen1.

Prerequisite

In this article, we suppose your VM are PvOps (for Debian 6 or 5 with 2.6.32 backported kernel). They also need to be PyGrub compatible (you can see how to do that in this Debian documentation). For other distros, please read their respective doc.

Migration

So, we need to migrate those vm (vm1 & 2) from "oldxen1″ to "xenserver1″. You need to download a very nice Python script to do that almost automagically. You can find it here, it's xva.py. You need to put this script in your Dom0.

  • Shutdown your VM (I think you can maybe doing it almost live with snapshot, but I think it's too risky)
  • on your old dom0 (oldxen1), start the script like this (there is an help on the script, you can read it for more options):
$ ./xva.py -c /etc/xen/vm1.cfg -n vm1 -s xenserver1 --username=root --password="mypassword"
  • see that your disk are streamed
  • when it's done, start the Vm on our XenServer
  • that's it! repeat the same operation for your others VM.

Now you can enjoy XenServer 





No comments:

Post a Comment