|||

0052-vmdk_to_vhdx_disk_conversion

Cross Platform

Why not just use VMware Workstation or ESXi? In this use case it was 50% laziness, as I had just reinstalled the laptop and would need to install VMware Workstation and 50% just to play with Hyper-V.

This wasn’t something production. I just wanted a quick WordPress lab environment that I could wipe out when I was done. I didn’t want to install VMware Workstation, spin up a VM, and install & configure WordPress. Enter the laziness part. Enter Bitnami.

Bitnami

Cloud hosting for applications and virtual machines. Their virtual machines are also downloadable to give you a quick preconfigured environment for what ever you need.

WordPress

So I quickly clicked on the Wordpress Blog link. You have options to deploy to a cloud provider, a container, or download for local install. Below the download link there is a link to download the virtual machine image.

The instructions are for VMware and VirtualBox deployments and the download is an OVA file, which is just Zipped up OVF and disks.

OVA

So being entirely to lazy to search and look around for a Wordpress Hyper-V image. I decide to search and look around for a way to convert the VM to Hyper-V. First I extracted the OVA with 7-Zip.

MVMC

Besides this being an acronym fest, turns out that I needed Microsoft Virtual Machine Converter 3.0. Last updated in 2014, I held little hope this would work with any modern created VM, but in this instance, it did!

Powershell

I found a great reference post at the OpenIT Integrated Business Solutions blogOpenIT Integrated Business Solutions blog will walk you through all the steps. Great article guys! Their Powershell code below worked great.

Import the Converter Powershell Module

Import-Module "C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1"

Convert the VMware .vmdk to a Hyper-V .vhdx

ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "D:\Debian8\Debian8-disk1.vmdk" -DestinationLiteralPath "D:\Debian8.vhdx" -VhdType DynamicHardDisk -VhdFormat Vhdx

Hyper-V

After it successfully converting the disk, I created a Gen1 VM in Hyper-V and pointed it to the converted disk. Up and running with little fuss.

I had to document this down. I’ve needed it before and I’m sure I’ll need it again.

Up next 0051-rsa_conference_savings 0053-netscaler_301_class_review
Latest posts 0104-change-synology-password-cli 0105-free-git-ebook 0103-using-brew-bundle-to-backup-and-restore-mac-app-store-and-brew-apps Update macOS with an all in one alias Mac App Store Command Line Interface 0100-macos-softwareupdate-cli Markdown Crash Course Video What’s New with Fusion and Workstation [HCP1833] File IO in Python Overview of vSphere 7 Video 0095-what_is_iso Migrating Website HTML details Tag Microsoft RD Client iOS App 0091-create_vmware_esxi_usb_install_media Intel NUC Lab Hosts Hardware Setup 0089-installng_microsoft_sql_2016 Installing the First Two Domain Controllers in the VMware ESXi 6.7 Lab Environment 0088-deploy_vcsa_in_lab Macchanger Utility, and Usage Install a Kali Linux VM in a VMware ESXi 6.7 Environment Install Ubuntu 18.04 Virtual Machine in a VMware ESXi 6.7 Environment Install xRDP on Ubuntu 18.04 Install Chromium on Ubuntu 18.04 Install OpenSSH on Ubuntu 18.04 Install VMware Workstation 14 on Ubuntu 18.04 Nested ESXi server Laboratorium Rattus The Animal Within Who is Veeam? RSAC OnDemand Videos 0075-create_win10_sandbox_vm