Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jmada/31b3a0a23a2c20562fb2488d7ffc463c to your computer and use it in GitHub Desktop.
Save jmada/31b3a0a23a2c20562fb2488d7ffc463c to your computer and use it in GitHub Desktop.
Android Studio: /dev/kvm device permission denied.md

Android Studio: /dev/kvm device permission denied

You need to first

sudo apt install qemu-kvm.

To check the ownership of /dev/kvm use

ls -al /dev/kvm

The user was root, the group kvm. To check which users are in the kvm group, use

grep kvm /etc/group

This returned

kvm:x:some_number:

There is nothing rightwards of the final :, there are no users in the kvm group.

To add your user to the kvm group, you could use

sudo adduser $USER kvm

Which adds the user to the group, and check once again with

grep kvm /etc/group.

Restart linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment