qemu KVM kernel module no such file or directory
In my case, the virtualization was disabled.
So sudo modprobe kvm-intel
kept giving me the following error
could not insert 'kvm_intel': Operation not supported
I just had to go in the BIOS and enable Virtualization.
Try with sudo modprobe kvm-intel
.
In order to have the module automatically loaded at the startup of the virtual machine, do the following:
- Edit the corresponding file from the shell with
sudo vim /etc/modules.conf
- Possibly enter your username password.
- Press the key
G
to go to the end of the document and theno
to begin inserting. - Write
kvm-intel
and press Enter, producing a new line. - Press
Esc
to return to the Normal mode of vim. "--INSERT--" will disappear from the bottom. - Save the file and exit
vim
by writing:wq
.
You are done. Try to reboot and load the nested virtual machine.