Host 为Ubuntu X64,需要进行win phone8的开发,于是搭建环境:
(1)安装linux版本的vmware 9
(2)在vmware 9 上安装windows 8 操作系统 (64 位)
(3)在windows 8 下安装VS2012 以及 windows phone 8 的SDK
但在运行程序时,windows phone 8虚拟机总是无法创建成功.
借鉴一些网页,进行了一些配置,即可。
1) Add (or cheek they are present) to .vmx file these rows:
hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"
vhv.enable = "TRUE"
2) Settings -> CPU and memory -> Advanced: check "Enable hypervisor applications in this virtual machine"
3) Settings -> CPU and memory: make sure 2 Cores (or more?) are assigned to the Virutla machine
4) Settings -> Advanced: Preferred virtualizationn engine: Intel VT-x with EPT
After restarting Win 8 x64 VM, the HyperV system (and e.g. WIndows 8 Phone SKD debugging / Windows Phone Emulation) works perfectly.
更详细的参考网页:
http://www.developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator
http://www.dotblogs.com.tw/jasonyah/archive/2012/11/08/80959.aspx