Migrate from XenServer to XCP-ng

XenServer based, Community Powered.


This article describes how to proceed in order to convert your Citrix© XenServer infrastructure into a XCP-ng infrastructure.

All of this, without losing ANY settings (SR, VMs, networks) from your existing XenServer infrastructure!

Migration process

XCP-NG installation follows roughly the same workflow than a XenServer installation. Therefore, the migration procedure will be very similar to an upgrade procedure in XenServer.

  • Download the XCP-ng ISO from this page
  • Put this ISO on a CD or a USB-key and start the installation procedure in your XenServer infrastructure
    You can use this:

dd if=XCP-ng_7.4.1.iso of=/dev/sdX bs=8M status=progress oflag=direct

You can also burn a real CD or use a Windows program to create a bootable USB key from an ISO file.

  • Follow the instruction on the screen to start the migration of your infrastructure from XenServer to XCP-ng.

install screen xcp-ng

  • Eventually, you will reach a screen proposing you to upgrade your XenServer 7.X to XCP-ng

  • Once the installation process is complete, reboot your host.

  • XCP-ng will boot

And it’s done, you have succesfully migrated from XenServer to XCP-ng. Everything will be as it was before, in your XenServer infrastructure. SRs, VMs, network configuration, everything is kept during the migration to XCP-ng!

Migration from XenServer 6.X

XenServer 7 introduced a new (and better) partition scheme. Therefore, if you want to migrate from a XenServer 6 version you have two possibilities.

  • You can keep the old partition model
  • you can “upgrade” it to the new scheme

As it’s (obvioulsy) a better partition scheme, we strongly recommend you to upgrade to this scheme and not to keep the old one, but it’s your call.

WARNING: using the new partition scheme will REMOVE the content of your local SR.

Using the new partition

In order to migrate using the new partition scheme, you need to run this command on your host before launching the migration process.

$ touch /var/preserve/safe2upgrade

Check that you are using GPT partitioning and not MBR and doublecheck that you don’t have any VDI attach to your local SR. Any remaining VDI will be removed.

Then, you can follow the standard migration procedure describe before.

Migrating your XenServer Pool to XCP-ng without downtime

Here is how to proceed in order to migrate without having downtime in your infrastructure.

  1. Live migrate your VMs from the pool master to other hosts
  2. Upgrade your pool master
  3. Live migrate VMs from another host to your pool master
  4. Upgrade the host
  5. Repeat until all hosts are migrated

XCP-ng administration tool

Two options:

  • Xen Orchestra (complete web admin tool)
  • XCP-ng Center

See the download section for more details!

2 Responses

  1. john says:

    Might be worth mentioning that you’d need to replace XenCenter with XCP-ng Center. You should probably also make it clearer that migrating your partition format to the new scheme means you will lose any VM’s stored on that server..

Leave a Reply

Your email address will not be published. Required fields are marked *