Ubuntu – Android Studio not recognising KVM on Ubuntu 18.04
18.04android-studiokvm
KVM is required to run this AVD.
/dev/kvm device: permission denied.
Grant current user access to /dev/kvm
Best Answer
I had this mistake with Android Studio 3.0.1 on Ubuntu 18.04 when I run the emulator. You can try this answer. To add the user username to the kvm group, you could use:
sudo apt install qemu-kvm
sudo adduser $USER kvm
In my case it worked, albeit with a re-login required after the whole process.
The error you get when you try the command kvm-ok gives you two other commands which may resolve your problem :
sudo modprobe kvm-intel(with intel CPU, replace, with -amd for AMD ones) or sudo modprobe kvm : this will load the kvm virtualisation module into the kernel, allowing VM to run properly.
running sudo /usr/sbin/kvm-ok : will run it as root.
The first one is the most likely to work, so try it first, and then run the second one.
EDIT :
I just noticed in your answer that you said your BIOS supported it, but not that it was enabled... It's probably just a misunderstanding from me, but check anyway...
Best Answer
I had this mistake with Android Studio 3.0.1 on Ubuntu 18.04 when I run the emulator. You can try this answer. To add the user username to the kvm group, you could use:
In my case it worked, albeit with a re-login required after the whole process.