The last week or so I have been converting my Windows test environment from VMWare Server to XenServer 5.0. The process is really quite easy and covered by CTX116603.

I will briefly run through how to convert your Vmware virtual machines for importing into XenServer.

Pre-converion tasks

  • Remove or rollup any snapshots that are part of your virtual machine to be converted
  • Startup the virtual machine and then remove vmware tools and any other applications or software not required
  • shut down the virtual machine

Virtual machine conversion

Before you continue here you will need to download the XenServer Virtual Disk Migration Utility. See the link about to the CTX support document.

  • Once you have downloaded and unzipped the utility open a command prompt
  • change directory to where you saved and unzipped the software
  • initiate the conversion process, using this command

v2xva.exe /config:”c:\pathToSource\source.vmx” /output:”c:\pathToDest”

Mounting virtual disk images for processing…
Load registry to enable XVA import:
The operation completed successfully
Perform registry update operations….

The operation completed successfully
Convert VMDK virtual disk image to XVA…
Total disks to convert: 1

Converting Disk 0…

Unmount virtual disk images…
Done.

Thats simple isn’t it. It will take a while to process depending on the number of disks and the size of the virtual machine. With XenServer 5.0 Windows virtual machines are limited to 3 hard drives. If you try and convert a virtual machine with more than 3 virtual hard drives you might see an abnormal application termination error.

Import the Virtual machine into XenServer

  • Log into XenCenter
  • Click on VM – Import
  • Select the import type – Exported VM
  • Change the file type to .xml and select the ova.xml
  • Add it to you XenServer
  • Select the storage area you want to use, most likely it will the Local Storage
  • Add a network interface
  • Click Finish

The import will begin and take some time depending on the size of the virtual machine.

If you have imported a Windows virtual machine that had more than 3 virtual disks you will have some issues. Your virtual machine will likely not have a virtual cdrom added. If you try and add the cdrom you will get an error message and a non descript error.

Overall the process is very easy. I have not used VMWares Virtual Center product as it was another license that had to be purchased, but the import process is much easier than the manual import into a VMWare ESX server.

XenServer does not have a snapshot capability as such, so you will need to operate slightly differently. It does however allow you to export to backup file.

XenServer also seems to allocate the full amount of virtual disk space as well. So if you have a virtual hard drive that is 70GB it will allocated the full physical space. This is both annoying and good. It will prevent any accidental over allocation of disk capacity.

Do you have any other experiences with XenServer? Let us know.