-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect permissions on /dev/kvm
#7149
Comments
That's expected, WSL2 doesn't have udev. You can use wsl.conf to change those permissions at boot time with something like this though:
|
Release notes for boot.command: https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-21286 |
For anyone who comes across this, I wanted to add that this works if you change |
If you still see the incorrect permissions error add your user to the
|
great ! works for me! |
Restart your WSL after. Works like a charm. |
I cant find this folder, can anyone help me? |
Doesn't work for me. I Tried
but it didn t work . Does someone has a hint for me ? |
Are you using the WSL from Windows Store? https://apps.microsoft.com/store/detail/windows-subsystem-for-linux/9P9TQF7MRM4R?hl=en-us&gl=us |
I think, is there a linux command that confirm that ? |
Though not a Linux command, |
Here are the corresponding informations :
|
This issue seem to be fixed in WSL from Windows Store if systemd is enabled.
So, you have to enabled systemd in wsl.conf file. |
It's pretty strange -- I did make it work by running the android virtual device on my machine before, but after I re-install my OS. I can't seem to make it work again. Update
|
Thanks it works now. |
Windows Build Number
Microsoft Windows [Version 10.0.22000.51]
WSL Version
Kernel Version
5.10.16
Distro Version
Ubuntu 20.04
Other Software
KVM
Repro Steps
Incorrect permissions on
/dev/kvm
is preventing startup of Android emulator although the user is a member of the required group.Permissions on
/dev/kvm
is currently (incorrect group and permissions):This should ideally be:
Manually changing it helps boot up the emulator. However, the settings are reverted on restart.
Looks like the correct permissions are part of udev defaults but this is not getting applied on WSL:
#4193 (comment) (#4193)
This is causing issues with React Native development on WSL where the manual step is required on every boot.
#6929
The issue is reproducible on Windows 10 21H1 builds as well.
Expected Behavior
Permissions on
/dev/kvm
should be as follows:Actual Behavior
Current permissions on
/dev/kvm
:Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: