Kvm-ok on wsl returning INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used #515

Open
opened 2025-12-29 01:20:39 +01:00 by adam · 3 comments
Owner

Originally created by @Kimobonbon on GitHub (Jul 11, 2023).

I am trying to run docker-osx on windows but when I install wsl2, change the .wslconf file, install kvm and run kmv-ok I get INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

When I check if virtualization is enabled in my task manager it shows me that it is.

When I run this:

; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group

I get:

Linux DESKTOP-R7TO0DF 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
:0
1
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
Filesystem Size Used Avail Use% Mounted on
/dev/sdc 1007G 1.7G 954G 1% /
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.11)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.0.0
total used free shared buff/cache available
Mem: 7.7Gi 506Mi 6.1Gi 3.0Mi 1.2Gi 7.0Gi
Swap: 2.0Gi 0B 2.0Gi
12
0
crw-rw-r-- 1 root kvm 10, 232 Jul 11 03:01 /dev/kvm
total 4.0K
drwxrwxrwx 2 root root 60 Jul 11 02:55 .
drwxrwxrwt 6 root root 4.0K Jul 11 03:05 ..
srwxrwxrwx 1 0 Jul 11 02:55 X0
3457 0.0 0.0 4024 2172 pts/0 S+ 03:09 0:00 grep --color=auto dockerd
kvm:x:109:

Thanks in advance!

Originally created by @Kimobonbon on GitHub (Jul 11, 2023). I am trying to run docker-osx on windows but when I install wsl2, change the .wslconf file, install kvm and run kmv-ok I get INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used When I check if virtualization is enabled in my task manager it shows me that it is. When I run this: ; echo "${DISPLAY}" \ ; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \ ; grep NAME /etc/os-release \ ; df -h . \ ; qemu-system-x86_64 --version \ ; libvirtd --version \ ; free -mh \ ; nproc \ ; egrep -c '(svm|vmx)' /proc/cpuinfo \ ; ls -lha /dev/kvm \ ; ls -lha /tmp/.X11-unix/ \ ; ps aux | grep dockerd \ ; docker ps | grep osx \ ; grep "docker\|kvm\|virt" /etc/group I get: Linux DESKTOP-R7TO0DF 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux :0 1 PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy Filesystem Size Used Avail Use% Mounted on /dev/sdc 1007G 1.7G 954G 1% / QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.11) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 8.0.0 total used free shared buff/cache available Mem: 7.7Gi 506Mi 6.1Gi 3.0Mi 1.2Gi 7.0Gi Swap: 2.0Gi 0B 2.0Gi 12 0 crw-rw-r-- 1 root kvm 10, 232 Jul 11 03:01 /dev/kvm total 4.0K drwxrwxrwx 2 root root 60 Jul 11 02:55 . drwxrwxrwt 6 root root 4.0K Jul 11 03:05 .. srwxrwxrwx 1 <my name> <my name> 0 Jul 11 02:55 X0 <my name> 3457 0.0 0.0 4024 2172 pts/0 S+ 03:09 0:00 grep --color=auto dockerd kvm:x:109: Thanks in advance!
Author
Owner

@chepaika commented on GitHub (Aug 30, 2023):

What version of your Windows? Because in https://learn.microsoft.com/en-us/windows/wsl/wsl-config nestedVirtualization - Only available for Windows 11.

@chepaika commented on GitHub (Aug 30, 2023): What version of your Windows? Because in https://learn.microsoft.com/en-us/windows/wsl/wsl-config nestedVirtualization - Only available for Windows 11.
Author
Owner

@eulerv commented on GitHub (Jun 19, 2024):

Mine too, I have a Xeon e5 processor.

@eulerv commented on GitHub (Jun 19, 2024): Mine too, I have a Xeon e5 processor.
Author
Owner

@Kimobonbon commented on GitHub (Jul 15, 2024):

I am using windows 10, srry for late

@Kimobonbon commented on GitHub (Jul 15, 2024): I am using windows 10, srry for late
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#515