Source : https://gist.github.com/plembo/782e1511e463221b5772e85b6f2f72d4#file-nestedvirtkvm-md
grep vmx /proc/cpuinfo
For AMD:
grep svm /proc/cpuinfo
options kvm_intel nested=1
grep vmx /proc/cpuinfo
Source : https://docs.fedoraproject.org/en-US/quick-docs/using-nested-virtualization-in-kvm/
Checking if nested virtualization is supported
cat /sys/module/kvm_intel/parameters/nested Y
Shut down all running VMs and unload the kvm_probe module:
sudo modprobe -r kvm_intel
Activate the nesting feature:
sudo modprobe kvm_intel nested=1
Nested virtualization is enabled until the host is rebooted. To enable it permanently, add the following line to the /etc/modprobe.d/kvm.conf file:
options kvm_intel nested=1
Shut down all running VMs and unload the kvm_amd module:
sudo modprobe -r kvm_amd
Activate the nesting feature:
sudo modprobe kvm_amd nested=1
Nested virtualization is enabled until the host is rebooted. To enable it permanently, add the following line to the /etc/modprobe.d/kvm.conf file:
options kvm_amd nested=1
virt-host-validate