CTX116603 - How to Convert VMware Virtual Machines to XenServer Virtual Machines - Citrix Knowledge Center
Knowledge Center Home > CTX116603
Rate this Article:
How to Convert VMware Virtual Machines to XenServer Virtual Machines
Document ID: CTX116603 / Created On: Jun 17, 2008 / Updated On: Aug 18, 2009
Average Rating: (14 ratings)
This document describes the two methods available to convert a VMware-formatted virtual machine (VM) into a Citrix XenServer virtual machine. The first method of converting OVF packages exported directly from VMware is the preferred as it is the quickest, most efficient and allows you to convert multiple virtual drives at the same time. The second method of converting VMDK files should be used as an alternative as it only allows the conversion of one drive at a time. For best results, copy the OVF template and the VMDK file to the computer that XenConvert is installed on for conversion.
• Administrator access to VMware VM to be converted
• Administrator access to XenServer and/or XenCenter
• Basic knowledge on Open Virtualization Format (OVF)
You must be comfortable using VMware, a Windows computer to run the XenConvert Utility, XenServer and XenCenter.
Identify the VM you want to export.
Log on to that VM and uninstall VMware Tools. Refer to the following screen shot:
Note: You will experience issues if these items are not properly removed and/or uninstalled from Add or Remove Programs and from the Taskbar.
- Delete any snapshots located with the VM.
- Delete any unnecessary data, drives, partitions and/or applications you will no longer need for that VM.
• Enableautomount.aspx) feature for Windows VMs
• If manifest feature in VMware Workstation was enabled, delete the .mf file to allow import.
Exporting OVF packages from VMware
The following VMware products support OVF export:
• VMware vSphere 4
• VMware VI3
• VMware Workstation 6.5.x
• VMware OVF Tool 0.9 and 1.x
• VMware Converter 3.0.3
• VMware Converter 4.x
• VMware Studio
Note: The example shown here was done with VMware vSphere.
- Select File > Export > Export OVF Template.
- Select a Directory to store the OVF Export and ensure that Optimized for: Web (OVF) is selected.
- A dialogue will indicate that the export completed successfully.
- Copy the entire exported contents over to your XenConvert workstation leaving the folder structure the same.
Converting OVF Export with XenConvert
- From XenConvert select the Open Virtualization Format (OVF) Package option.
Note: OVF packages can only be converted directly to XenServer.
- Select the OVF Package to import and indicate whether you would like to “Verify Content” and/or “Verify Author”.
- Enter the hostname, user name (root) and password of the XenServer that you will convert the OVF package directly to.
- Select Convert to start the conversion process.
Converting VMDK Files
Note: XenConvert has been designed to convert a single virtual disk from VMDK format at a time. Copy data from all additional drives and partitions to an external location and delete any additional drives and/or partitions.
- Browse the physical location of the VMware files and locate the virtual machine’s .vmdk file.
Make a note of the path to the virtual machine’s .vmdx file.
Install XenConvert application on the Windows computer that will perform the conversion.
Launch XenConvert and select the “VMware Virtual Hard Disk (VMDK)” option.
- You will be presented with the following three options on converting a “VMware Virtual Hard Disk (VMDK)” for XenServer.
• XenServer option converts directly to an accessible XenServer host
• XenServer Virtual Appliance option converts to an .xva format file that can be used to import
• XenServer Virtual Hard Disk (VHD) option converts VMDK file to a .vhd file
6.All three options prompt you to browse for and select the .vmdk file to convert.
Option 1 – XenServer
You must specify the destination XenServer hostname, User name, Password and Workspace to be used during the conversion.
Type or browse to the location where you want the converted files to be stored. For conversion efficiency, Citrix recommends specifying a location on the local computer where you are running conversion, preferably on a different partition or drive.
Note: The Workspace specified will need to have enough space available to convert the selected VM.
- Enter the name of the VM as you would like it to appear in XenCenter after it has been uploaded.
- The XenConvert utility displays the progress of the conversion and upload of VM to XenServer.
5. Note: Do not close dialogue box until the Status indicates “Conversion was successful!”
- After the conversion process completes, XenServer shows the converted VM by the name specified during conversion followed by “import”.
Option 2 –Xen Virtual Appliance
The Xen Virtual Appliance option converts the VM into a portable format that can be easily moved, archived or uploaded to XenServer.
- After selecting the Xen Virtual Appliance option and VMDK file to convert you are prompted to select a folder to store the converted contents.
- After the VMDK file is converted you have an output that lists an hda folder, ova.xml, .pvp and .vhd file.
Note: Do not change the file structure. The ova.xml file and hda folder must be on the same level.
Importing the Converted VM to XenServer
Log on to XenCenter.
On the menu bar, go to VM > Import.
You have the option to browse for the ova.xml file or choose either Exported VM or Exported template.
Note: The same file extension (.xva) is used for both the exported VMs and exported templates.
- Select XenServer Virtual Appliance Version 1 (ova.xml) from the Files of Type list. You are now able to browse and see the ova.xml file.
- Select the XenServer host that you want to deploy the imported VM to.
- Select the storage repository where the virtual disks for the newly imported VM will be stored.
Note: You can copy a VM from one storage repository to another storage repository after the import process has completed.
- Add the network interfaces you want to configure for the new VM.
- Click Finish to complete the import process.
Allow enough time for the import process to complete. The XenCenter Logs tab displays an estimate of the amount of time that the VM will take to import.
The imported VM will have the name “import” at the end of it to identify that it has been imported. You can rename the VM after the import process finishes.
How to Import a VM through the Command Line Interface (CLI):
Copy all the files needed to a mounted share accessible by your XenServer host.
Run the xe vm-import command:/#xe vm-import filename=
Example command: /# xe vm-import filename=/nfs or cifs share/VMWare_WinXP_Export/ova.xml sr-uuid=da31c9d2-88ea-35f6-8c48-924db6c39817
This document applies to:
- XenServer 3.1
- XenServer 3.2
- XenServer 4.0
- XenServer 4.1
- XenServer 5.0
- XenServer 5.0 Update 3
- XenServer 5.5
Did this article resolve your problem/question?
Yes No Need to test first Not sure, I need help Just browsing/General research
What would you have done if this article had not solved your issue?
What action will you take next?
Open a Citrix Technical Support Case Contact my Citrix Solution Advisor Continue searching Knowledge Center Search non-Citrix resources Ignore the problem/take no further action
Thanks for your feedback! Report errors with this document
Use this field to report errors with this document:
- XenApp 5.0 for Windows Server 2008
- XenApp 5.0 for Windows Server 2003
- Presentation Server 4.5 and Components
- Presentation Server 4.5 SE Edition
- Presentation Server 4.0 and Components
- Presentation Server 4.0 for UNIX
- XenApp for UNIX 4.0 with Feature Pack 1 XenDesktop
- XenDesktop 3.0
- XenDesktop 2.1
- XenDesktop 2.0 XenServer
- XenServer 5.5
- XenServer 5.0
- XenServer 4.1
- XenServer 4.0 Essentials for Hyper-V
- Essentials 1.0 for Microsoft Hyper-V NetScaler Application Delivery
- NetScaler Application Delivery Software 9.1
- NetScaler VPX 9.1
- NetScaler Application Delivery Software 9.0
- NetScaler Application Delivery Software 8.1
- NetScaler Application Delivery Software 8.0
- NetScaler Application Delivery Software 7.0
- NetScaler Application Delivery Software 6.1
- NetScaler Application Delivery Software 6.0 Access Gateway
- Access Gateway 9.1 Enterprise Edition
- Access Gateway 9.0 Enterprise Edition
- Access Gateway 8.1 Enterprise Edition
- Access Gateway 8.0 Enterprise Edition
- Access Gateway 7.0 Enterprise Edition
- Access Gateway 4.6 Standard Edition
- Access Gateway 4.5 Advanced Edition
- Access Gateway 4.5 Standard Edition Branch Repeater
- Branch Repeater 5.5
- Branch Repeater with Windows Server 2.0
- Branch Repeater 5.0
- Branch Repeater with Windows Server 1.5
- Branch Repeater 4.5
- Branch Repeater with Windows Server 1.0 Receiver
- Receiver for Windows
- Merchandising Server
- Receiver for iPhone