How to Convert Virtual Machines from VMware to VirtualBox and Vice Versa

Migrate Vmware Virtualbox Featured

Virtual machines are helpful in many ways. You can use them to try out new operating systems, test experimental software, run older applications, etc. Two of the most popular virtual machine software are VMware and VirtualBox. Each has its own pros and cons, but the best thing is that you can easily swap your virtual machines between them: convert VMware to VirtualBox and vice versa. You’ll never have to recreate the same virtual machine in a different software ever again.

Good to know: can’t decide between VMware and VirtualBox? Learn which is the best virtualization software for you.

Migrate from VMware to VirtualBox

I frequently use VMware Workstation Player to create a virtual machine of my Windows 10 PC, so that’s what I’m using to illustrate this. Even if you are using VMware Workstation Pro, the procedure is the same.

Before starting the migration process, make sure that the virtual machine you want to export is completely powered off and not in a “suspended” state. This applies to both VMware and VirtualBox. You will have to convert your VMware virtual machine file (.vmx) to an “.ovf” file. OVF is an open standard for packaging and distributing virtual machines and is supported by both VirtualBox and VMware.

Export your desired VMware virtual machine file to an”.ovf file by opening your VMware directory and the OVFTool folder. Press Shift + right-click, then click Open PowerShell window here.

VMware directory OVFtool folder

Use the below command, and press Enter in the PowerShell window. Change the path of the .vmx file you want to export and the destination for the new .ovf file, based on the respective paths in your system.

ovftool "F:\Setups\kali-linux-2023.2-vmware-amd64\kali-linux-2023.2-vmware-amd64.vmwarevm\kali-linux-2023.2-vmware-amd64.vmx" f:\Exported\KaliLinux.ovf

As soon as you execute the command, the system will start writing the OVF package to the marked destination. Depending on the size of the VM, it can take a few minutes to complete.

PowerShell window with export OVF command

Note: if you are using the paid version (i.e., VMware Workstation Pro), you can also export the VM as an OVF file by navigating to File and then selecting Export to OVF. Simply enter the name and the path for the OVF file, and you’re done.

Now that you’ve successfully exported the OVF package to your desired location, launch VirtualBox, and click Import or File -> Import Appliance.

In the Import Virtual Appliance window, click the browse button, select the exported OVF file, and click Next.

VirtualBox import virtual machine wizard

The next screen shows the Appliance settings. VirtualBox will show you all the VM settings. Leave them as is; you can always change them later. Click on Finish to continue.

VirtualBox import virtual machine settings

The import process will take some time to complete. Once the import is finished, your imported virtual machine will be in the VM VirtualBox Manager. Select the VM, and click Start to power on the VM.

VirtualBox run imported virtual machine

You’ve successfully converted your VM from VMware to VirtualBox.

Tip: still love your Windows 10 setup? Try Windows 11 without nuking Windows 10.

Troubleshooting Import Errors in VirtualBox

If you are receiving importing errors, follow the steps below.

1. Open the exported OVF file in Notepad, find all instances of “ElementName,” and replace it with “Caption.”

2. Find the “vmware.sata.ahci” instance, and replace it with “AHCI.”

3. Find the SHA1 hash value of the exported OVF file using this online tool, and replace the old hash value with the new one found in the exported file. You can open it with any text editor.

Once you are done with the changes, try importing again. This should solve the import errors. If not, you should probably start the above VMware to VirtualBox converter process from scratch.

Migrate from VirtualBox to VMware

Whether you want to install macOS in VirtualBox or run Windows in VirtualBox on your Linux machine, the easy-to-use software makes things extremely seamless. Also, migrating from VirtualBox to VMware is easier than converting VMware to VirtualBox. You don’t need a PowerShell window. Launch VirtualBox and click File -> Export Appliance.

In the Export Virtual Appliance wizard, select the VM you want to export, and click Next to continue.

VirtualBox export virtual machine wizard

Select the destination path for the exported VM, leaving everything else unchanged. Click Next to proceed.

VirtualBox export virtual machine settings

Check all the settings on the next screen, and click Finish to start the exporting process.

VirtualBox export virtual machine process

Depending on the size of the VM, the exporting process may take some time. Once you are done exporting the VM, you can import it into VMware. To do that, open VMware Workstation Player, and click File -> Open. Select the OVA file you exported from VirtualBox.

VMware import virtual machine wizard

Set a name and path for the VM, and click Import to start the process, which can also take some time, depending on the size of the VM.

VMware import virtual machine settings

If you receive an error saying that the import failed due to hardware compliance issues, click Retry to start the importing process.

Note: if the above action doesn’t solve the problem, you have to create a new virtual machine from the ground up.

Once the import has been completed, turn on the VM by clicking Play virtual machine.

VMware run imported virtual machine

You’ve successfully imported or migrated your VM from VirtualBox to VMware.

Both VMware and VirtualBox are excellent virtualization tools for Windows users. Depending on your preferences, you can use either of them to try different operating systems or run risky software. You can easily export your favorite VMs – convert VMware to VirtualBox or the other way around. If you swear by Linux instead, you can import and export OVA files in VirtualBox on your Linux PC.

Tip: don’t have a Raspberry Pi? Learn how to make a Raspberry Pi virtual machine.

All screenshots by Tanveer Singh.

Is this post useful?
Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Tanveer Singh
Tanveer Singh - Staff Writer

After a 7-year corporate stint, Tanveer found his love for writing and tech too much to resist. An MBA in Marketing and the owner of a PC building business, he writes on PC hardware, technology, video games, and Windows. When not scouring the web for ideas, he can be found building PCs, watching anime, or playing Smash Karts on his RTX 3080 (sigh).