Tuesday, July 15, 2014

Converting VirtualBox VMs to Parallels

I sometimes get VM "appliances" in VirtualBox format. I prefer Parallels and thankfully the conversion isn't difficult.

To convert the VirtualBox .vdi file to an .hdd file:
  • Start Parallels as it's services will be needed
  • From the command line run: 
    • /Applications/Parallels\ Desktop.app/Contents/MacOS/prl_convert .vdi --allow-no-os
This created a "naked" disk that doesn't have the wrapper virtual machine definition that Parallels needs. To make the wrapper, in Parallels:
  • Add a new virtual machine
  • Install from a DVD/image file
  • Continue without a source (iso)
  • Select the OS for the wrapper (Ubuntu)
  • Name it and select customize settings before installation
Even though you're only part way through the definition of the VM, the disk files are already there. Find the Parallels .pvm file in the Finder and show contents. 
  • Move the .hdd you created from the convert step into it
  • Choose hardware—>Hard Disk 1
  • Change the source to the converted .hdd
  • Set other options to suit
Boot your new VM and install Parallels tools.