Migration from VMware: Difference between revisions
Rcpavlicek (talk | contribs) No edit summary |
Rcpavlicek (talk | contribs) No edit summary |
||
Line 49: | Line 49: | ||
* Now boot and go! |
* Now boot and go! |
||
== More Detailed Information == |
|||
* [http://openwetware.openwetware.org/Software/Server/Virtual_Machines/Xen/Converting_VMWare_Image_to_Xen.html Converting VMware Image to Xen] |
|||
== Using the OVF Format == |
== Using the OVF Format == |
Revision as of 15:06, 13 January 2015
As time passes, we are finding more and more people interested in migrating to Xen Project from VMware. The reasons for this migration include cost reduction and increased flexibility in cloud orchestration.
Scheduled for inclusion in a future release, Xen Project will include the ability to use VMware VMDK files natively to ease migration. But people who need to transition now should find this guide useful.
Conversion Scenario
- First Step: Stop the VM you want to convert.
Extract the VM from the VMware Datastore
If the VM in question is located within a VMware datastore, this post suggests a method for making a local copy of the VM to convert:
I would navigate to the datastore where the VM is located. In the vSphere Client, the datastore is listed under the "Resources" section. Right-Click the Datastore and choose "Browse Datastore" which should be at the top of the menu. Once the Datastore Browser is up, find the VM's folder. Highlight the folder... Right-Click and choose "Download..."
Disk Conversion
In early versions of VMware, they used a simpler file format. If you are running an older version of VMware, conversion is pretty simple. Newer versions can take more work. If you are running a newer version and you find that these instructions come up short, please let us know. We don't have access to the VMware software, so we rely heavily on the community to give us the information we need. If you discover a new or better way to convert VMware images, please edit this page so we can share this with others.
- Examine the type of file used by the VM:
# qemu-img info vm1.vmdk image: vm1.vmdk file format: raw virtual size: 23G disk size: 23G
- In the case above, the file format is raw, so it needs no conversion. Just rename the file to ".raw". However, most of the time, that will not be the case. You will need to use qemu-img to do the conversion.
# qemu-img convert vm1.vmdk -O raw /vms/vm1/vm1.img
- Create an appropriate Xen Project VM configuration file in /etc/xen/vm1/, with a line specifying the converted file as disk:
disk = [ ‘file:/vms/vm1/vm1.img,hda,w’ ]
- Now boot and go!
More Detailed Information
Using the OVF Format
The folks over at XenServer have documented a way to convert VMware images to XenServer using the OVF format and the XenConvert utility:
- How to Export VMware Virtual Machine to OVF Package
- How to Convert VMware Virtual Machines to XenServer Virtual Machines