Board logo

標題: How to Convert VMware Virtual Machines to XenServer Virtual Machines [打印本頁]

作者: chun    時間: 2009-12-16 17:38     標題: How to Convert VMware Virtual Machines to XenServer Virtual Machines

How to Convert VMware Virtual Machines to XenServer Virtual Machines

Knowledge Center Home > CTX116603
Rate this Article:
You must be signed in to rate again
Print View Languages:  
Article Feedback

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: 4 (15 ratings)

View products this document applies to link to products this document applies to

Summary

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.

Requirements

You must be comfortable using VMware, a Windows computer to run the XenConvert Utility, XenServer and XenCenter.

Please reference the Citrix XenConvert Guide for XenConvert Supported Operating Systems and the Overview of the Open Virtualization Format (OVF) for more information on OVF packages.

Click here to download Citrix XenConvert Application Software

Initial Procedures

1. Identify the VM you want to export.

2. 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.

3. Delete any snapshots located with the VM.

4. Delete any unnecessary data, drives, partitions and/or applications you will no longer need for that VM.

Note:

Exporting OVF packages from VMware

The following VMware products support OVF export:

Note: The example shown here was done with VMware vSphere.

1. Select File > Export > Export OVF Template.

2. Select a Directory to store the OVF Export and ensure that Optimized for: Web (OVF) is selected.

3. A dialogue will indicate that the export completed successfully.

4. Copy the entire exported contents over to your XenConvert workstation leaving the folder structure the same.

Converting OVF Export with XenConvert

Note: OVF packages can only be converted directly to XenServer.

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.

1. Browse the physical location of the VMware files and locate the virtual machine’s .vmdk file.

2. Make a note of the path to the virtual machine’s .vmdx file.

3. Install XenConvert application on the Windows computer that will perform the conversion.

4. Launch XenConvert and select the “VMware Virtual Hard Disk (VMDK)” option.

5. You will be presented with the following three options on converting a “VMware Virtual Hard Disk (VMDK)” for XenServer.

6.All three options prompt you to browse for and select the .vmdk file to convert.

Option 1 – XenServer

Note: The Workspace specified will need to have enough space available to convert the selected VM.

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.

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

1. Log on to XenCenter.

2. 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.

1. 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.

2. Select the XenServer host that you want to deploy the imported VM to.

3. 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.

4. Add the network interfaces you want to configure for the new VM.

5. 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):

1. Copy all the files needed to a mounted share accessible by your XenServer host.

2. Run the xe vm-import command:
#xe vm-import filename=<path and name of ova.xml file> sr-uuid=<UUID of SR to install imported VM to>

Example command: # xe vm-import filename=/nfs or cifs share/VMWare_WinXP_Export/ova.xml sr-uuid=da31c9d2-88ea-35f6-8c48-924db6c39817

More Information

Citrix XenConvert Application Software

CTX121646 - Citrix XenConvert 2.0.1 Guide

CTX116685 - How to a Copy a Virtual Machine From One Storage Repository to Another

VMware OVF Tool User Guide


This document applies to:








歡迎光臨 百利工頭 (http://bb.pc104.tw/) Powered by Discuz! 6.0.0