centos is deployed KVM, KVM default VM can not be used in a nested virtualization
Check that the host is turned nested kvm
CAT / SYS / Module1 / kvm_intel / Parameters / nested
the Y is turned on, N being unopened
Host modify the configuration
vi /etc/modprobe.d/kvm-nested.conf
options kvm-intel nested=1
options kvm-intel enable_shadow_vmcs=1
options kvm-intel enable_apicv=1
options kvm-intel ept=1
wq!
modprobe -r kvm_intel
modprobe -a kvm_intel
Check the configuration
cat /sys/module/kvm_intel/parameters/nested
Modify VM.xml
virsh edit vm
Log in to check VM
cat /proc/cpuinfo | grep vmx