Recently I’ve been trying XCP-NG and XEN Orchestra alongside ESXI. This has meant I have needed to move some of my VM’s to across to XEN. The process of moving from ESXI without vSphere was a little convoluted. Luckily, it’s not too hard once you know the steps.
Install VMware Workstation
We need VMware workstation just for the OVF to OVA conversion tool that it provides. We won’t actually use the software. Download and install it from the VMware website. https://www.vmware.com/au/products/workstation-pro/workstation-pro-evaluation.html
Export the current VM from ESXI
- Log into ESXI and shut down the VM
- Select the “Actions” menu. Then select “Export”
- Ensure you select the .nvram option also
- Now in downloads you should have the files downloaded. (Ensure that if pop ups were blocked that you enable and redownload the missing files.)
Convert the files to an OVA
Now we will convert the 4 files into a single OVA file that XEN can import
- Open CMD and go to the VMware tools folder – cd C:\Program Files (x86)\VMware\VMware Workstation\OVFTool
- Now we will run the conversion tool. Make sure you replace the username with your username and the ovf file name with the name of your VM.
- ovftool.exe C:\Users\username\Downloads\XenOrchestra.ovf C:\Users\username\Downloads\XenOrchestra.ova
- It will show a few errors at the start but just ignore them and let the conversion finish
- You should receive Transfer Completed and Completed successfully. There will be a few warnings.
Import into XEN ORCHESTRA
- Log into XEN Orchestra and select Import > VM
- Select the Pool and Storage location. Then upload the OVA file we created earlier
- After uploading the OVA you can change the name, ram and network settings.
- Select Import
- When done you will be presented with a VM screen
- Select start from the top right
- Select console to watch the start up
Important Note – Networking
This process will break the networking on Ubuntu/ Debian. You will have to re-setup your network interface.
In Debian you can usually change the /etc/networks/interfaces file to match the new eth0 interface
Ubuntu usually uses the /etc/netplan folder. There will be a network config file there, where you can change the interface to eth0.