Thursday, 8 January 2015

Migrating a virtual hard disk to Hyper-V from VirtualBox

I've been using VirtualBox for a while for my testing environments and thought it would be a good test to see if they can be run on Hyper-V (well the truth is I couldn't be bothered to find the server 2012 install media and wanted a server on a PC without VBox.)

So a quick google reveals that VirtualBox has a utility to migrate the VDI files it uses.

VBoxManage.exe internalcommands converthd -srcformat VDI -dstformat VHD "original.vdi" "new.vhd"

Well blow me over with a feather if it didn't work first time, once I'd added a new machine in Hyper-V and pointed it at the VHD