Today I wanted to convert a virtual machine from VMWare Fusion to Hyper-V using a Mac. There is talk of doing it on Windows but nothing on a Mac. The process is actually nearly identical you just need to swap a few things round and learn where the tools are.
The Microsft VM convertor tool assumes the VMDK files are in a single file. VMWare fusion seems to split the files up by default. I did not find this
worked. I used VMWare Fusion to merge into a single image then used winimage to convert.
The first thing we need to do is merge them together using the following method. If you don't do that you will get an error like below:
Before you do anything ensure your virutal machine is powered down and VMware tools are removed.
Firstly open terminal. To access the commands you need to go into the application bundle itself to that do the following:
cd /Applications/VMware Fusion.app/Contents/Library/
Now run the following command noting the correct vm. In this example my VM is called Windows on a drive called Virtual Machines.
./vmware-vdiskmanager -r /Volumes/Virtual\ Machines/Windows.vmwarevm/Virtual\ Disk.vmdk -t 0 /Volumes/Virtual\ Machines/test.vmdk
Copy over the single file to your windows server or workstation running hyper v. Ensure you have the win image software installed. You can download a trial.
Use WinImage to convert the HD from VMDK to VHD selecting convert a virtual disk image as shown below:
Open Hyper-V create a new virtual machine ensuring you select the existing virtual hard disk. Start the new virtual machine.
To complete uninstall vmware tools using programs and features.