The many benefits of virtualization software have led to an increase in its use among businesses the world over. Also, this demand has fueled different vendors to offer virtualization software, each in a different format. For example, let’s take the two largest players in this industry — Microsoft and VMware. Both these companies offer excellent virtualization software, but unfortunately they’re not compatible with each other. VMware uses a format called virtual machine disk (VMDK) while Microsoft uses a format called virtual hard disk (VHD) to store your virtual disks. So, what happens when you have a client who gives you a bunch of VMDK files, but you have a Hyper-V set up in your system? Well, you’ll have to convert one format to another, meaning you’ll need some sort of VMDK to VHD conversion tool. How to Convert VMWare VMDK File to Hyper-V VHD and VHDX file Simple Tricks
VMDK to VHDX
- Download: http://www.microsoft.com/en-us/download/details.aspx?id=42497
- Open Powershell as administrator and run
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
- And after (please check your Source&Destination path After run this commond)
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
If you counter following error:
In my case it was entry
Follow these steps:
- download and extract dsfok tools
dsfo.exe "c:\temp\disk2.vmdk" 512 1024 descriptor1.txtto extract the descriptor
- edit the descriptor file in Notepad++: comment the above mentioned line (as I added the extra single character (#) I also deleted one NULL character from the end to keep the file size of 1024 bytes (not sure if this is needed).
dsfi.exe "c:\temp\disk2.vmdk" 512 1024 descriptor1.txtto inject the descriptor back into the VMDK
- repeat these steps for the other disk (my VM has two
- reissue the