android studio kvm permission denied code example
Example 1: grant current user access to /dev/kvm
first install dependecies of kvm from android studio site then execute following command
Add your user to kvm group using:
sudo adduser $USER kvm
If still showing permission denied:
sudo chown $USER /dev/kvm
Example 2: where is /dev/kvm
This is how I got it to work in Ubuntu 18.04
1. Install qemu-kvm
$sudo apt install qemu-kvm
2. Add your user to kvm group using:
$sudo adduser <Replace with username> kvm
3.If still showing permission denied:
$ sudo chown <Replace with username> /dev/kvm
This works!
Example 3: dev/kvm device permission denied
sudo apt-get install qemu-kvm
// type your password
sudo chmod 777 -R /dev/kvm
Example 4: permission denied /dev/kvm
grep kvm /etc/group