Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Emulator "/dev/kvm is not found"

Couldn't use x86 emulators, AVD manager shows warning "/dev/kvm is not found" and telling me to edit BIOS security setting to enable VT-x.enter image description here

like image 947
ttyip Avatar asked Apr 23 '16 15:04

ttyip


People also ask

How do I know if KVM is enabled Ubuntu?

You can check whether KVM support is enabled in the Linux kernel from Ubuntu using kvm-ok command which is a part of the cpu-checker package. It is not installed by default. But it is available in the official package repository of Ubuntu.

What is QEMU KVM?

From QEMU. KVM (Kernel Virtual Machine) is a Linux kernel module that allows a user space program to utilize the hardware virtualization features of various processors. Today, it supports recent Intel and AMD processors (x86 and x86_64), PPC 440, PPC 970, S/390, ARM (Cortex A15, AArch64), and MIPS32 processors.


3 Answers

Re-installing HAXM resolved my problem Steps:

  1. Make sure SDK Manager -> Extras -> Intel x86 Emulator Accelerator (HAXM installer) is installed
  2. Navigate to <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/
  3. Run ./HAXM\ installation -u
  4. Run ./HAXM\ installation
like image 116
ttyip Avatar answered Sep 20 '22 21:09

ttyip


For MacOS users running Android Studio, when you get this error then try these steps to open up your privacy settings.

enter image description here enter image description here enter image description here

You can also follow the answer from Divakar on this post here - /dev/kvm not found on mac

Thank you Apple for pushing me with your dumb*** app review rules from iOS to android development

like image 45
Sam B Avatar answered Sep 18 '22 21:09

Sam B


You just need to "start" the HAXM. You can do this following this steps:

  1. Open the cmd.
  2. Type sc query intelhaxm, click enter and check the STATE.
  3. If state is 1 STOPED, type sc start intelhaxm and click enter to start the HAXM.
  4. Check the STATE again and it should be 4 RUNNING now.
  5. Finally, you are now able to create and use your AVD using a x86 emulator.

Alternatively, when you want to stop the HAXM you should type sc stop intelhaxm.

Hope this helps y'all.

like image 30
Adriano Sales Avatar answered Sep 17 '22 21:09

Adriano Sales