Converting VMware Images to VirtualBox – A Simple Method

June 20, 2009 | By: UbuntuLinuxHelp | 6 Comments
Posted in News

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

When I need to run a Windows based application on my trusty Ubuntu Hardy box, I don't use Wine. Don't get me wrong, it's just that I don't want to have to manage the Wine environment and prefer to have Windows and it's associated applications tucked away in it's own virtual system. This way if I need to run a Windows application... I simply boot up the Windows system and run whatever application I want.

More importantly, I run several distributions of Linux in virtual environments. This way I don't have to worry about multiboot configurations, bootloaders, etc. and I can simply delete or backup up a copy of images I don't immediately need. To do this I use VirtualBox.

To get it: sudo aptitude install virtualbox or apt:virtualbox

From time to time I come accross an image I'd like to be able to boot in my virtual environment (VirtualBox), only to find that the site only hosts the VMware version for download. Fortunately, there's an easy way for me to convert the files from the original .vmdk to VirtualBox's .vdi. Actually, it's a two-set method.

  1. Convert the .vmdk to a .bin file
  2. Convert the .bin file to .vdi

In order to convert the image to .bin, were going to need qemu:

sudo aptitude install qemu or apt:qemu

To convert the .bin to a.vdi, we'll need the VBoxManage package, which is included when you install VirtualBox.

Here's how the conversion process plays out:

Convert the downloaded VMware image like this:

qemu-img convert xxxxxx.vmdk xxxxxx.bin (where xxxxxx is the name of the file).

Then convert the .bin like this:

VBoxManage convertdd xxxxxx.bin xxxxxx.vdi (where xxxxxx is the name of the file).

I should note that I originally started using VMware as my virtualization platform, then switched to VirtualBox. Converting the images, saved me a fair bit of time reinstalling all the different linux systems!

Update June 20, 2009: As an after thought, I should try the command this way:

qemu-img convert xxxxxx.vmdk xxxxxx.bin && VBoxManage convertdd xxxxxx.bin xxxxxx.vdi (again, where xxxxxx is the name of the file).

Have a comment, suggestion or better way? Please comment below. A GUI application that can do this? - Again, please comment and let me know. Hope this post helps some of you!

If you like this post, why not share it?
  • StumbleUpon
  • del.icio.us
  • Digg
  • Google Bookmarks
  • Reddit
  • Mixx
  • Yahoo! Bookmarks
  • blogmarks
  • Twitter

Related posts:

  1. How to Install VMware in Ubuntu Linux
  2. How to Install VMware in Linux via Source Files
  3. 20 Useful, Common Linux (Ubuntu) Commands for New Users
  4. How to install Ubuntu Studio in Windows using VirtualBox – A Complete Walkthrough
  5. Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux


Comments

6 Comments so far

  1. Vadim P. Vadim P. on June 20, 2009 1:30 pm

    Thanks, I’ll give this a try. Been needing it for the near future.

  2. Alexei Alexei on June 21, 2009 10:02 am

    Doesn’t current version of VirtualBox support VMWare images out of the box?

  3. UbuntuLinuxHelp UbuntuLinuxHelp on June 21, 2009 11:21 am

    @Alexei – That would be great! Thanks for commenting that!

    I took a look, I could not find anything definite, but I think the newer release of VirtualBox (May, 2009 – 2.2.4) supports .vmdk images? (But, I use an older version of VirtualBox).

  4. moriancumer moriancumer's status on Tuesday... on June 22, 2009 7:37 pm

    [...] I’m Converting vmware to virtualbox #linux http://ubuntulinuxhelp.com/con.....le-method/ [...]

  5. netcarver netcarver on August 30, 2009 1:26 pm

    Hello,

    thank you for the post, didn’t know about this. As Virtual Box is now my preferred solution, I’ve been wondering about running VMWare images myself but never got around to trying it.

    A little reading of the official change log (http://www.virtualbox.org/manu.....#ChangeLog) seems to indicate that native vmdk image support was added in Version 2.1.0 though bug fixes for this feature are mentioned in later versions including 2.1.2, 2.2.0, 2.2.4, 3.0.0 and 3.0.4

  6. HowtoMatrix HowtoMatrix on September 28, 2009 10:26 pm

    [...] Converting VMware Images to VirtualBox – A Simple Method Posted by suvi under Virtualization New tutorial added to HowtoMatrix database. Converting VMware Images to VirtualBox – A Simple Method When I need to run a Windows based application on my trusty Ubuntu Hardy box, I don’t use Wine. Don’t get me wrong, it’s just that I don’t want to have to manage the Wine environment and prefer to have Windows and it’s associated applications tucked away in it’s own virtual system. This way if [...] Link to the original site [...]

Name (required)

Email (required)

Website

Speak your mind