Migrating from VirtualBox to VMWare in Linux
Ok this is not really a post about free software, in fact it is quite the opposite, but after spending a long time trying to figure a way to convert a VirtualBox image to a VMWare one I figured someone may benefit from it. The reason I had to switch was that I couldn’t get DirectX and 3D Acceleration to work in VirtualBox, but it works fine in VMWare (if you have any suggestions to help me with DirectX and 3D Acceleration in VirtualBox please post here, since VirtualBox seems to be running smoother on my laptop). All the info is scattered around the web, but searching for it is tricky since many links refer to old VirtualBox versions and most of them refer to the opposite operation, i.e. migrating from VMWare to VirtualBox. So here we go:
- Locate your VirtualBox virtual drive, in my case this was /var/local/virtual/windows.vdi. For the rest of the post I assume we are in the virtual drive’s directory (i.e. /var/local/virtual)
- Convert it to raw format. In later versions of VirtualBox (I am using 3.1.2) this is done through the VBoxManage tool:
VBoxManage internalcommands converttoraw windows.dvi windows.raw
- Install qemu
- Convert the raw file to a VMWare compatible image format:
qemu-img convert -f raw -O vmdk windows.raw windows.vmdk
You can now delete the raw file to save some space.
- Launch vmware. I am using VMware Workstation 7.0.1.
- Create a new Virtual Machine. At the wizard, use the following steps (the important options are in blue):
Virtual Machine Configuration: Custom
Virtual Machine Hardware Compatibility: Workstation 6.5 – 7.0
Install operating system from: I will install the operating system later
Guest Operating System: Whatever you’re running (I’m using the vm for Windows XP Professional)
Virtual Machine Name: Whatever you want, or leave the defaults
Processors: Whatever you want, or leave the defaults. I’m using 1
Memory: As much as you like. I’m using 1GB
Network Connection: Use network address translation (NAT)
I/O Adapter Types: SCSI adapter: BusLogic.
Disk: Use an existing virtual disk. Then browse for the .vmdk file
When you start the VM, you will be asked to convert it to new format. Do so, since qemu-img may generate formats compatible with older VMWare versions. Also don’t forget to install VMWare Tools (from the VMWare menu select VM, then Install VMWare Tools…), 3D Acceleration didn’t work until I did.
6 Comments »
Leave a Reply
-
Recent
- Call of Cthulhu character generator for Android
- Using JiBX with Jersey
- Preventing session expiration with AJAX
- Migrating from VirtualBox to VMWare in Linux
- Fully disabling touchpad in Ubuntu 9.10 Karmic Koala
- Fixing sound after upgrading to Ubuntu 9.10 Karmic Koala
- Dealing with mouse and touchpad freezes in Linux
- Selecting language of multilingual web sites
- 4 + 1 ways to celebrate the Software Freedom Day
- OLPC Deployment in the Greek village of Sminthi
- Building and deploying Seam/JBoss applications with Intellij IDEA 8.1
- Free Software in Education
-
Links
-
Archives
- August 2011 (1)
- November 2010 (1)
- June 2010 (1)
- February 2010 (1)
- January 2010 (1)
- December 2009 (1)
- September 2009 (3)
- August 2009 (2)
- May 2009 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS


Thank you so much for this very helpful guide.
In case you didn’t already notice, the first command asks for “windows.dvi” which of course doesn’t exist. I just changed it to “windows.vdi” and it worked like a champ.
thanks!
Thanks for the info – good to learn something new
Thank you
[...] disk. The disk is dynamic which makes it a lot more trickier. If I follow the instructions at http://xpapad.wordpress.com/2010/02/21/migrating-from-virtualbox-to-vmware-in-linux, the vdi-to-raw conversion will result in a 2 TB file. I don’t even have that much disk [...]
Pingback by virtualbox 2 vmware disk Drija | November 12, 2010 |
Great job!
This saved my day :)
Thank you very much. Everything worked perfectly
Adding another big “thank you” to this article !
Works for VMWare Player 4 too it seems. The difference is that at first you can’t select an existing disk. Just select the defaults for a new disk. Right before creating the VM you can still remove it and then add an existing disk. Don’t forget to move the existing disk to IDE 0:0.
You actually ensure it is show up quite simple together with your powerpoint presentation, nonetheless am finding
the following issue to generally be really a very important factor we come to feel I would hardly
ever understand. It appears to be also difficult and
also intensive personally. I’m writing
about forward on your own following site, We’ll attempt to find the suspend than it!