Back in Windows 7 I was using Oracle VirtualBox because I needed the 64 bits support to set up SharePoint 2010 virtual machines but now that I run Windows 8, I would rather use Hyper-V!
The goal of this article is to show you that you can get your beloved SharePoint vdi files to run on Windows 8 with Hyper-V with just a little bit of work. I have read a lot of bad stuff about it basically saying that it won’t work properly but I can tell you that it’s nothing to be scared of, I have tested it, you can go ahead with it!
First things first, get Hyper-V installed on Windows 8
You will then need to install Oracle Virtual Box on Windows 8 (but do not worry you can delete it later on)
Download and install Virtual Box from here
We will use then Oracle Virtual Box to convert your vdi files into a format compatible with Hyper-V.
I read somewhere that you should uninstall the Guest Tools, I didn’t do it and I got no issues with that.
Using command prompt,
C:\Program Files\Oracle\Virtual Box (or wherever you have chosen to install Virtual Box)
and Run the following command:
vboxmanage clonehd D:\VMachines\SP2010.vdi D:\VMachines\SP2010.vhd –format VHD
That is it, you can use your vhd as virtual hard drive in a new Hyper-V machine.
Finally, a small trick, get the internet working in your virtual machine through a wireless connection
For those using Hyper-V on a laptop, there is a big chance that you are connected wirelessly. If it is the case, there is a small trick to know in order to get the internet working in the virtual machine (or more generally get the virtual machine to be part of the network), here is how I do it:
Create an Internal Switch in the Virtual Switch Manager of Hyper-V
This action will create a new Virual Adapater.
Create a Bridged Connection between the Wi-Fi and the Internal Switch Virtual Adpater (vEthernet in our example)
Now that everything is set up, you can use the Internal Switch that you created at the first step.
Your Hyper-V machine will be now part of your network as any other physical machine would be.
Hope it helps!