This article explains how to convert VMDK VDI in Windows OS environment. VMDK is the default disk file format of VMware workstation and VDI belongs to Oracle VirtualBox. Converting the VMDK to VDI will allow using virtual machines in from VMware to VirtualBox. But, we will keep things simple here.
There are some articles on the internet about doing the same steps in Linux or Solaris environment. This method explains how to convert VMDK to VDI file format on Windows 10, 8.1 OS by using built-in VirtualBox command, hence you should have Oracle VirtualBox on the computer.
2 Ways to Convert VMDK to VDI
1) Technically it’s not required to convert VMDK to VDI to open VMware virtual machines in VirtualBox, because VirtualBox supports VMDK disk image files natively.
VMDK file can be added to VirtualBox media manager very easily. Read the earlier guide about attaching and opening VMDK file in VirtualBox.
After successfully added the VMDK file to VirtualBox media manager. You can boot the virtual machine OS from VMDK file by following steps;
- Create a new virtual machine in VirtualBox with the correct Operating System which is on the disk file.
- Instead of creating a new hard disk, select the existing VMDK disk file. That’s it, boot the OS. Do not worry about the VMX file which is having VMware virtual machine configuration only.
This is the first step to use the VMDK file in VirtualBox without converting to VDI file format. Let’s go to the second step.
2) This step to convert .vmdk file to .vdi and get the real output.
As mentioned earlier, this step can be done on a computer where VirtualBox installed, because we will be using the VirtualBox command. Also, it is advisable to copy the VMDK file if you really need the original VMDK file intact. Though the conversion command should not affect the original file, this is for backup purpose if the VM on the VMDK file is so important.
We will be using Vboxmanage clonehd command which is located under C:\Program Files\Oracle\VirtualBox\.
“C:\Program files\Oracle\Virtualbox\vboxmanage” clonehd <VMDK file location> <VDi file location> –format VDI
“C:\Program files\Oracle\Virtualbox\vboxmanage” clonehd windows10l.vmdk windows10vb.vdi –format VDI
It will provide the output VDI file to the destination you mentioned.
Now the converted VDI file is ready to use in Oracle VirtualBox or VDI virtual disk image supported platforms.