For Intel processors, check the `/sys/module/kvm_intel/parameters/nested` file. For AMD processors, check the `/sys/module/kvm_amd/parameters/nested` file. If you see `1` or `Y`, nested virtualization is supported; if you see `0` or `N`, nested virtualization is not supported.
To enable nested virtualization for Intel processors:
. 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
----
To enable nested virtualization for AMD processors:
. 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:
== Configuring nested virtualization in virt-manager
Configure your VM to use nested virtualization:
. Open virt-manager, double-click the VM in which you wish to enable nested virtualization, and click the *Show virtual hardware details* icon.
. Click *CPUs* in the side menu. In the *Configuration* section, there are two options - either type `host-passthrough` in the *Model:* field, or select the *Copy host CPU configuration* check box (that fills the `host-model` value in the *Model* field).
+
NOTE: Using host-passthrough is not recommended for general usage. It should only be used for nested virtualization purposes.