/dev/kvm permission denied android emulator

I followed these steps to make it work in Ubuntu 18.04

Step 1: Install qemu-kvm

sudo apt install qemu-kvm

Step 2:

Add user to kvm group using:

sudo adduser <username> kvm

Step 3: If it still showing permission denied:

sudo chown <username> /dev/kvm

Android studio can't access /dev/kvm directory. To allow access run

sudo chmod 777 -R /dev/kvm

It will ask for your password. After that restart android studio.


No need to give whole permission to the kvm. you can give owner access for the kvm is fine like as follow

sudo chown <username>:<username> /dev/kvm