Virtualization has been a great and the extended way to utilize the hardware. Today many companies has virtualized their environment with VMware, HYPER V or other virtual product. But what if because of some reasons you require to change your virtual environments but unable to access the file created by that particular product like Vmware. Recently I have noticed there is a lot of queries about how to recover backups made within VMware into a Hyper-V environment. This article will help you find out the way to convert Vmware to Hyper V environment by accessing VMDK file as VHDX format.
VMware Server which has made it possible to partition a single physical drive into multiple virtual machines and support VMDK file extension. VMware server can now easily executed on Windows, Solaris, Linux, and Netware.
Hyper-V is a virtual hard disk (VHD) format found in Windows Server. One of the main advantages of switching to VHDX is its increased storage capacity is in terabytes. Either you are switching from VHD or from other formats like VMDK.
Note: Blog provide you DIY steps to successfully perform that conversion of virtual files from VMDK to VHDX, we will use Microsoft Virtual Machine Converter.
Let’s start with the procedure of how can do it.
1. Download the Microsoft Virtual Machine Converter
2. Start the installation of the wizard with the default options.
Convert Vmware to Hyper V Disk Format
- Restore your Backup and shut down your VMWARE Client.
- Copy the VM in different location, it preferred to copy the location that you will use for HYPER-V.
- Open a Powershell as an Administrator
- Import the MVMC module with the following command.
C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1
- Get the source path with VMDK disk of VMware and the destination path.
Cautious: If you have downloaded the full VM from Vmware, then it will create two VMDK files. One with “-flat.vmdk” that is the size of the disk and another is with “.vmdk” which is of 1-2 KB. When you type the command to start the conversion use the path of the disk with “.vmdk” extension. Don’t get confused. If you by mistake take the path of “-flat.vmdk”, you will get an error “No suitable drive was found at path”
- So Type the Command to start the conversion.
- Base on the size of VM it will take the necessary time to finish the process to convert Vmware to Hyper V
The standard command that you are using
SourceLiteralPath Source path of the VMDK file.
DestinationLiteralPath Destination path for VHD file
VhdType Specify the FixedHarddisk OR DynamicHarddisk.
VhdFormat The disk format VHD or VHDX.
Attach the converted VHD file in HYPER-V
After the conversion process is completed open the Destination path and you will see a new file with the VDHX extension.
- Open the HYPER-V Manager
- From the right Pane Actions and click New – Virtual Machine
- A New Wizard will start, in the first Screen click Next.
- Now Give the name to the Virtual Machine and the Location. Click Next.
- From the next windows click Next as well.
- In the assign memory windows, assign the size of memory to the physical memory that a Virtual Machine will take, Press Next.
- Choose the Connection Type from the Drop Down List; select the New Virtual Switch or Not Connection.
- Select “Use an existing virtual hard disk”. Click Browse to the converted virtual hard disk and Next.
- Click Finish
- Start The Virtual Machine with Hyper V Disk type
- Double click in New Virtual Machine.
- Click in Power on Button to Start. It will take more time to boot only for the first time.
Here we have converted a VMware Client into HYPER-V. Please make sure that you follow the steps properly as explained here. Otherwise, you might face problems like disk file corruptions although the Microsoft Virtual Machine Converter will convert Vmware to Hyper V you are unable to access the .vhdx file on Virtual Machine or start the VM machine.
If you face such problem, then take help of SysInfoTools VHDX recovery software to recover corrupted file from VMDK disk file.
I hope you find the article helpful. !!