简体   繁体   中英

/dev/kvm permission denied android emulator

hi i install android stdio on Ubuntu 18.0 then i try to start android emulator i got error

/dev/kvm permission denied

i try some stackoverflow question but its not solve my problem those question links are

1. Android Studio: /dev/kvm device permission denied

2. KVM is required to run this AVD. Unknown Error! Please file a bug against Android Studio

3. Ubuntu 14 Android Studio 3 xrdp /dev/kvm permission denied

t tried all this but its not solve my problem and i give chmod 777 permission also

chmod 777 -R /home/halfix/Android/Sdk/emulator/

still i have /de/kvm permission divided

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.

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

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

This is a realistic error message related to permission but mine happened to be the same message when java was not installed and ran the app. Hope this will help if would be my case.

/dev/kvm permission denied android studio [Motherboard]Set VT(Virtualization Technology) in BIOS and install Virtual Machine https://www.asus.com/in/support/FAQ/1045141/#A

在此处输入图像描述

Ut worked for me:

sudo apt install qemu-kvm

Re-start terminal and execute the following command:

sudo chmod 777 -R /dev/kvm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM