One, VSphere 6 turns on nested virtualization
A virtual machine named CentOS 7 has been created through vsphere client and now requires the virtual machine's nested virtualization capabilities to be opened.
1. Open the SSH service on the ESXi server and shut down the virtual machine
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image_thumb[4] "border=" 0 "alt=" image_thumb[4] "src=" http://s3.51cto.com/wyfs02/M01/92/5E/ Wkiol1j-7dzieeupaafns10gfpq945.png "" 572 "height=" 464 "/>
2. Find the virtual machine configuration file and modify the configuration file
[[Email protected]:~]# Find/-name *.VMX
/vmfs/volumes/570794cb-7a2de328-398b-000c294ee9b7/centos7/centos7.vmx
Modify the configuration file (add vhv.enable = "TRUE" in the last line of the configuration file), note that you cannot have a blank line
[[Email protected]:~]# sed-i ' $ a\vhv.enable = ' TRUE ' '/vmfs/volumes/570794cb-7a2de328-398b-000c294ee9b7/centos7/ Centos7.vmx
3. Verify that nested virtualization is turned on
[[email protected] ~]# egrep ‘(vmx|svm)‘ /proc/cpuinfo
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image_thumb[18] "border=" 0 "alt=" image_thumb[18] "src=" http://s3.51cto.com/wyfs02/M02/92/ 5f/wkiom1j-7d3qqlozaae5wex3lfa004.png "" 964 "height=" 98 "/>
4. Using Vcenter to open a single set of nested virtualization
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image_thumb[7] "border=" 0 "alt=" image_thumb[7] "src=" http://s3.51cto.com/wyfs02/M02/92/5E/ Wkiol1j-7d6rcueeaah2tbbwrxc313.png "" 485 "height=" 346 "/>
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" image_thumb[10] "border=" 0 "alt=" image_thumb[10] "src=" http://s3.51cto.com/wyfs02/M02/92/ 5e/wkiol1j-7d-wfsjmaagnu6jsbgs614.png "" 487 "height=" 317 "/>
Second, the VSphere server directly above the open
[[email protected] ~]#
Vi/etc/vmware/config
vhv.enable = "TRUE" #增加这一行 and restart Vsphere server to enable virtual machine nested virtualization
Vmware VSphere turns on nested virtualization