The Windows Phone 8 Software Development Kit (SDK) includes a Microsoft Hyper-V virtual machine image of a sample Windows Phone 8 device. In order to run this virtual machine on a Mac, you will need the following:
Install VMWare Fusion on the Mac.
Create a new virtual machine for Windows 8, using the ISO DVD image you downloaded from the Microsoft web site as the installation media.
Once the Windows 8 virtual machine has been created, select the Windows Phone 8 SDK ISO image as the disk in the machine's DVD drive, and run the setup file.
Once the SDK has been installed, we next need to enable Hyper-V support within the Windows 8 virtual machine. By default it is not possible to enable Hyper-V in a virtual machine, as the two hypervisors cannot co-exist. To get around this, do the following.
Turn off the Windows Phone 8 virtual machine.
Open the Finder and browse to where you specified the file for the virtual machine should be saved.
Right click on the file and select the option to Show Package Contents:
Locate the vmx file for the virtual machine. Right click on it and select the option to Open With TextEdit:
Locate the following three lines and ensure that the values are configured as shown below - if the lines do not appear, add them manually at the bottom of the file:
vhv.enable = "TRUE" hypervisor.cpuid.v0 = "FALSE" mce.enable = "TRUE"
Save the file and close TextEdit.
Now open the Settings of the virtual machine within VMWare Fusion. Select Advanced:
Set the Preferred virtualization engine to Intel VT-x with EPT:
Close the Settings. Now you can launch the virtual machine.
Within Windows 8, open the Control Panel and select Programs and Features.
Select the option to Turn Windows features on or off:
When complete, reboot the virtual machine. Once rebooted, launch the Hyper-V Manager and connect to the local computer. Within the management console, select the option to create a new virtual machine:
The following window will be displayed:
Enter a name for the virtual machine, such as Windows Phone 8, and click Next:
Enter an appropriate amount of memory, depending on what you have available on your Mac. Click Next:
Select the option to use an existing virtual hard disk and browse to
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images\Flash.vhd
Click Finish. The virtual machine will now be listed in the management console:
Select the option to Start it. After a few moments, select the option to Connect to it from the same menu, your Windows Phone 8 emulator will be displayed: