VMware Cloud Community
yue201110141
Contributor
Contributor

run nested KVM hypervisor VMs

i success  on esxi5.1.0.

according to http://communities.vmware.com/docs/DOC-8970 ,but i have to appent   "featMask.vm.hv.capable = "Min:1"  and
vhv.enable = "true"" to KVM hypervisor's vmx file.

both of them is created throught  web client,"Expose hardware-assisted virtualization to the guest operating system.".

so i you  create guest KVM hypervisor, should append this 2 lines to  VM'vmx conf file.

1).

i have confusion  to figure out.

looking  the following two steps , both need to be done,or just  one is ok.

1.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"

2. IN vsphere or vcenter, edit guest KVM VM,change the Guest Operating System to Other - VMWare ESXi 5.x.

are they the same thing?

2)

here are my knowledge.

1.vhv.allow = TRUE   == enable virtualized HV  on ESXi 5.X

2.cpuid.80000......  == export virtualized HV to guest hypervisors

3.vhv.enable = TRUE  ==  same with (1).

am i right?

0 Kudos
3 Replies
admin
Immortal
Immortal

yalogr yue wrote:

i success  on esxi5.1.0.

according to http://communities.vmware.com/docs/DOC-8970 ,but i have to appent   "featMask.vm.hv.capable = "Min:1"  and
vhv.enable = "true"" to KVM hypervisor's vmx file.

both of them is created throught  web client,"Expose hardware-assisted virtualization to the guest operating system.".

so i you  create guest KVM hypervisor, should append this 2 lines to  VM'vmx conf file.

1).

i have confusion  to figure out.

looking  the following two steps , both need to be done,or just  one is ok.

1.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"

2. IN vsphere or vcenter, edit guest KVM VM,change the Guest Operating System to Other - VMWare ESXi 5.x.

are they the same thing?

2)

here are my knowledge.

1.vhv.allow = TRUE   == enable virtualized HV  on ESXi 5.X

2.cpuid.80000......  == export virtualized HV to guest hypervisors

3.vhv.enable = TRUE  ==  same with (1).

am i right?

The "vhv.allow = TRUE" setting in /etc/vmware/config is only necessary for ESXi 5.0; it is not necessary for ESXi 5.1.

The "vhv.enable = TRUE" setting in ESXi 5.1 is the equivalent of the various cpuid settings in ESXi 5.0.

Under ESXi 5.0, VHV was enabled (if it was allowed) for "VMware ESX" guests by default.  That is no longer the case under ESXi 5.1.  In any event, you should not use the "VMware ESX" guest OS type for other guest hypervisors.

0 Kudos
yue201110141
Contributor
Contributor

i know a little more now.

1.

esxi5.1  only require one step. Expose hardware-assisted virtualization to the guest operating system.

but what is the equivalent line in vmx file ?

"vhv.enable = "true"" or something else?

2.

esxi5.0.x also support  guest-KVM-hypervisor,but in the end, guest-kvm-hypervisor seems running,but its screen is always dark.

it seems a graphics card problem.

so i have to  use esxi5.1 .

do you know this ?

thanks

0 Kudos
admin
Immortal
Immortal

1. Expose hardware-assisted virtualization is the same as vhv.enable = TRUE.

2. Under ESXi 5.0, have you disabled CPU hot-add, as discussed in javascript:;?

0 Kudos