Hyper-V - “VM名称”无法在Azure上启动

时间:2016-04-19 19:15:28

标签: visual-studio azure xamarin visual-studio-2015 hyper-v

我在Azure上有一个VM:

  • Windows Server 2012 R2
  • VS 2015社区更新2(与Xamarin合作)

当我构建一个Android应用程序时(在使用模板创建后直接)我有这个错误:

[Window Title]
Hyper-V Manager

[Main Instruction]
An error occurred while attempting to start the selected virtual machine(s).

[Content]
'VS Emulator 5-inch KitKat (4.4) XXHDPI Phone' failed to start.

Failed to start the virtual machine 'VS Emulator 5-inch KitKat (4.4) XXHDPI Phone' because one of the Hyper-V components is not running.

[Expanded Information]
'VS Emulator 5-inch KitKat (4.4) XXHDPI Phone' failed to start. (Virtual machine ID F03A58D7-BEAB-4FA2-A17F-FACC465E8559)

The Virtual Machine Management Service failed to start the virtual machine 'VS Emulator 5-inch KitKat (4.4) XXHDPI Phone' because one of the Hyper-V components is not running (Virtual machine ID F03A58D7-BEAB-4FA2-A17F-FACC465E8559).

[V] See details  [Close]

一个想法? THX

2 个答案:

答案 0 :(得分:4)

不幸的是,这不起作用,因为Azure不支持嵌套虚拟化。

需要嵌套虚拟化,因为Azure已在虚拟机中运行,为了在该实例中运行虚拟化实例,您需要在主机中启用相应的标志。 Azure不会在其基础架构中启用这些标记(也不会在任何其他主要云供应商中启用)

答案 1 :(得分:0)

*在记事本中打开.vmx文件并添加以下行:

hypervisor.cpuid.v0 = "FALSE"
mce.enable = "TRUE"
vhu.enable = "TRUE"
  • 运行VM。
  • 转到"程序和功能"并确保已安装Hyper-V