Migrate to XCP-ng
How to migrate from VMware, KVM, etc. to XCP-ng.
This documentation will help you to make a migration to XCP-ng, from any most common other virtualization platform (VMware, KVM, etc.)
OVA import method will miss the information if the VM is running BIOS or UEFI mode. Double check your settings on your original system, and then enable (or not) UEFI on XCP-ng side for the destination VM. You can do so in VM advanced tab in Xen Orchestra.
๐ฝ From XenServerโ
We got a dedicated section on how to migrate from XenServer to XCP-ng.
๐ From Citrix Hypervisorโ
We got a dedicated section on how to migrate from Citrix Hypervisor to XCP-ng.
๐ผ From Xen on Linuxโ
If you are running Xen on your usual distro (Debian, Ubuntuโฆ), you are using xl
to manage your VMs, and also plain text configuration files. You can migrate to an existing XCP-ng host thanks to the xen2xcp
script.
Check the README for usage instructions.
๐ฆ From Virtualboxโ
Export your VM in OVA format, and use Xen Orchestra to import it. If you have an issue on VM boot, check the VMware section.
๐ป From VMwareโ
XO V2Vโ
Xen Orchestra introduces "V2V," or "VMware to Vates", a streamlined tool for migrating from VMware to the Vates Stack, encompassing XCP-ng and Xen Orchestra (XO). Seamlessly integrated into Xen Orchestra, this tool utilizes the "warm migration" feature for efficient transitions. The process initiates with exporting an initial snapshot of the VMware-based VM, which, despite being time-consuming, occurs without disrupting the VM's operation, ensuring transparency.
Once this comprehensive replication completes, the VM is shut down, and only the newly modified data blocks since the snapshot are exported. The VM is then activated on the XCP-ng platform, significantly minimizing downtime, a crucial benefit for large VMs. Furthermore, the migration process is largely automated, allowing for hands-off monitoring and execution. This entire procedure is fully automated for user convenience and efficiency.
You can read more in our official VMware to XCP-ng migration guide.
This method doesn't require any direct access to the VMware storage, only an HTTP access to the ESXi API. This is pretty powerful, allowing you to migrate everything remotely from one Xen Orchestra.
How it worksโ
The initial situation: a running VM on ESXi on the left, your Xen Orchestra in the middle, and your Vates XCP-ng host on the right:
The initial sync: the empty VM is created on XCP-ng, and after a snapshot, the content is transferred from VMware side to the new VM disk on XCP-ng. This takes time, but your original VM is up all along (no service interruption):
After the initial sync, the original VM is shutdown, another snapshot is done and only the diff is sent to the VM on XCP-ng side. Since it's a small amount of data, the downtime will be minimal:
After the transfer, the VM on XCP-ng side is started:
From the XO UIโ
In your Xen Orchestra UI, go into the main menu in the left, on the "Import" then "From VMware" option:
After giving the vCenter credentials, you can click on "Connect" and go to the next step:
On this screen, you will basically select which VM to replicate, and to which pool, storage and network. When it's done, just click on "Import" and there you go!
OVAโ
Using OVA export from VMware and then OVA import into Xen Orchestra is another possibility.
To skip Windows activation if the system was already activated, collect info about the network cards used in the Windows VM (ipconfig /all) and use the same MAC address(es) when creating interfaces in XCP-ng.
Importing a VMware Linux VM, you may encounter an error similar to this on boot:
dracut-initqueue[227]: Warning: /dev/mapper/ol-root does not exist
The fix for this is installing some xen drivers before exporting the VM from VMware:
dracut --add-drivers "xen-blkfront xen-netfront" --force
See here for more details. Once the imported VM is properly booted, remove any VMware related tooling and be sure to install Xen guest tools.