LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2020, 10:53 AM   #1
marietto
Member
 
Registered: Aug 2010
Posts: 96

Rep: Reputation: 17
FATAL: Module kvm_intel not found in directory /lib/modules/4.19.84-microsoft-standard+ when I try to enable KVM on WSL on Windows 10


Hello.

I'm trying to enable KVM on WSL2 on Windows 10 x64 bit. I've found this tutorial and I'm following it :

https://gist.github.com/offlinehacker/b1d96515f87a47bd0b0bea574eab5583


I've cloned and compiled the WSL2 kernel on a vmware VM with this command as suggested by the tutorial :

make KCONFIG_CONFIG=Microsoft/config-wsl -j8

It reached the end without errors and the vmlinux file has been produced. So,according with the instructions,I have placed it on /users/marietto2020/ with the other file .wslconfig. So,I went on with the instructions,like that :

1) Copy run-wsl.bat, attach.wdbg and patch_wsl_nested.js to same folder

2) Fix path in attach.wdbg

3) Open admin powershell in that folder

4) Run ./run-wsl.bat and follow instructions

and this is what happened :

Code:
ziomario@DESKTOP-N9UN2H3:/mnt/c/Users/marietto2020/Desktop/WSL/b1$ kvm-ok
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_intel
INFO: For more detailed results, you should run this as root
HINT:   sudo /usr/sbin/kvm-ok


ziomario@DESKTOP-N9UN2H3:/mnt/c/Users/marietto2020/Desktop/WSL/b1$ su
Password:


root@DESKTOP-N9UN2H3:/mnt/c/Users/marietto2020/Desktop/WSL/b1# kvm-ok
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm_intel
modprobe: FATAL: Module msr not found in directory /lib/modules/4.19.84-microsoft-standard+


root@DESKTOP-N9UN2H3:/mnt/c/Users/marietto2020/Desktop/WSL/b1# sudo modprobe kvm_intel
modprobe: FATAL: Module kvm_intel not found in directory /lib/modules/4.19.84-microsoft-standard+

root@DESKTOP-N9UN2H3:/lib/modules/4.19.84-microsoft-standard+# cp /mnt/c/Users/marietto2020/Desktop/WSL/WSL/Ubuntu-KVM/WSL2-Linux-Kernel/arch/x86/kvm/* /lib/modules/4.19.84-microsoft-standard+

root@DESKTOP-N9UN2H3:/lib/modules/4.19.84-microsoft-standard+# ls /lib/modules/4.19.84-microsoft-standard+
kvm-amd.ko kvm-intel.ko kvm.ko

root@DESKTOP-N9UN2H3:/lib/modules/4.19.84-microsoft-standard+# sudo modprobe kvm_intel
modprobe: FATAL: Module kvm_intel not found in directory /lib/modules/4.19.84-microsoft-standard+
IT IS NOT RECOGNIZED ! do u know the reason ?

Last edited by marietto; 04-24-2020 at 11:43 AM.
 
Old 05-08-2020, 11:10 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,953

Rep: Reputation: 270Reputation: 270Reputation: 270
The modules don't exist. They don't exist on my system because I don't configure the kernel so as to build them. Perhaps you didn't. Run
Code:
make menuconfig
, search for kvm_intel, configure the kernel according to its instructions.
 
  


Reply

Tags
kernel, kvm, ubuntu 18.04, windows 10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't get KVM working. FATAL: Module kvm_intel not found. CamTheSaxMan Linux - Software 5 03-10-2014 05:43 PM
kvm problem with centos 6 module kvm_intel not found !!? jecko617 Red Hat 5 02-28-2012 08:35 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
FATAL: could not load /lib/modules/2.6.1/modules.dep Fr33B33R Slackware 3 01-12-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration