解决方法(ESXi 5.0,虚拟机版本最大支持版本8)

  • 登陆到ESXi shell 上,然后在/etc/vmware/config追加以下内容

    vhv.allow="TRUE"

  • 修改ESXi上的XenServer虚拟机配置,将客户机操作系统类型修改为【其他】-【ESXi5】

  • 重新安装XenServer程序

解决方法(ESXi 5.1)
在vSphere 网页客户端上选择编辑虚拟机设置,修改CPU的属性,选中“Expose hardware-assisted virtualization to the guest operating system.”即可。
PS1:已经虚拟机化需要虚拟机版本9以上才支持;另外,GUI客户端不支持修改。
PS2:vmware虚拟机版本情况参见https://communities.vmware.com/docs/DOC-8970


Once allowed by the ESXi administrator, virtualized HV will be enabled by default for all hardware version 8 VMs with guest OS type "ESX Server 4" and "ESX Server 5." To enable virtualized HV for other guests, add the following lines to the outer guest's configuration file:

cpuid.1.ecx="----:----:----:----:----:----:--h-:----"
cpuid.80000001.ecx.amd="----:----:----:----:----:----:----:-h--"
cpuid.8000000a.eax.amd="hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh"
cpuid.8000000a.ebx.amd="hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh"
cpuid.8000000a.edx.amd="hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh"