DEV Community

Discussion on: Running MacOS on Windows 10 with WSL2, KVM and QEMU

Collapse
 
jst68 profile image
jstraten

When I am running kvm-ok, I am getting: KVM acceleration can be used
However, when I run ./basic.sh, I am getting Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize KVM: Permission denied
It seems to be some kind of authorization problem, but I can't figure out a solution. Did anybody run into the same problem and has somehow resolved it? Thank you!

Collapse
 
pkostelnik profile image
Pawel Kostelnik • Edited

Sorry being so late with my answer.
Permission denied means mostly that you need to change the permissions on /dev/kvm to 666 :
sudo chmod 666 /dev/kvm
this should resolve your Permission denied problem.

But you will do this after each reboot / restart of wsl.