In this post, we will discuss about how to convert IMG Files to VDI, VMDK, VHD format for Oracle VirtualBox, Vmware and XenCenter. First We have to take Image from Linux System and It will take some time.
1. Open the windows cmd. Click Run -> cmd -> Enter
2. Notice that Windows open a DOS window. Then go to dd image drive.
3. Oracle Virtual box should be installed for this activity.
For Virtual Box:
I:\>VBoxManage convertfromraw --format VDI sourcefile.dd filename.VDI
For Vmware ESXi:
I:\>VBoxManage convertfromraw --format VMDK sourcefile.dd filename.VMDK
I:\>VBoxManage convertfromraw --format VHD sourcefile.dd filename.VHD
Press Enter to start the conversion. Wait about serveral minute or so while the conversion takes place, and then create the new virtual machine with the VDI file.
How to Convert a VirtualBox Guest’s Disk Image from VMDK to VDI
A VirtualBox Administrator would like to migrate the underlying disk image format of an existing, imported Guest VM from VMDK to a VirtualBox native file format, such as VDI. VirtualBox provides support for disk-image file conversions using the “VBoxManage clonemedium” command.
As always, it is considered an Administrative “Best Practice” that critical components are preserved within a back-up archive prior to performing invasive administrative actions of this kind. An example command syntax for this operation within VirtualBox 6.0:
# VBoxManage clonemedium disk [inputfile] [outputfile] --format VDI