For those times when you need to run virtualization (e.g. vagrant with VirtualBox) inside a KVM (libvirtd) guest.
The following taken from Enabling nested virtualization in KVM over on Fedora Docs.
- Make sure that the Intel-VT-x/AMD-V extensions are enabled in the host machine's BIOS. For Intel:
$ cat /proc/cpuinfo | grep vmx
For AMD:
$ cat /proc/cpuinfo | grep svm
- Check to see if /etc/modprobe.d/qemu-system-x86.conf exists and if it does not have the following line, add it and reboot:
options kvm_intel nested=1
-
Go into the graphical virt-manager, open the subject guest's config, and click on "CPUs".
-
Check the box "Copy host CPU configuration" and Apply.
-
Restart the virtual machine, open a terminal in it and check for the extensions:
$ cat /proc/cpuinfo | grep vmx