![]() ![]() ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath “C:\Ubuntu-disk1.vmdk” -DestinationLiteralPath “C:\Ubuntu-disk1.Import-Module ‘C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’.Next, open an elevated PowerShell prompt and run these command (changing the paths to match your source VMDK file and destination path of your new VHD file):.First, you will need to download and install Microsoft Virtual Machine Converter 3.0 from Microsoft’s website. ![]() We do however have a few clients that use Hyper-V in their environments and luckily, Microsoft does have a utility for easily converting VMware virtual guest OS directly from your vSphere environment, or in my situation, from a VMware Fusion VMDK file to a Hyper-V VHD file. Typically, I find myself doing most of my conversions directly from physical hosts (P2V) or from Hyper-V host to VMware ESXi hosts. It does have a major shortfall I recently ran into: there is no ability to easily convert VMDK into VHD files. Granted VMware Fusion is “I believe” an inferior product to it’s nearest competition, especially when it comes to connecting to and uploading VM’s directly to multiple VMware vSphere server environments. To accomplish this, I prefer to build and maintain several VM’s utilizing VMware Fusion Pro on my Mac. PS C:\>ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath E:\SERVERNAME\SERVER NAME.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination E:\VHD\ Once the VMDK file is converted to VHD, you can create a new VM in Hyper-V manager and select an existing disk. I use a MacBook Pro in the field daily and find myself needing to spin-up some home-brewed Windows and Linux virtual machines quickly. Once the module is imported, you can use the below cmdlet to convert the VMDK to VHD. Digital Transformation and Cloud Migration.
0 Comments
Leave a Reply. |