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

66,808

Solution 1

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

Solution 2

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

Solution 3

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.

Solution 4

I had a similar message in the emulators area in Android Studio 2.1.

My emulator for a certain API (think 21) worked initially fine and was fully accelerated, then installed a couple of other images (Nougat x86/64 etc) and suddenly started seeing /dev/kvm not found and NO emulator would boot up.

  • In My Case, re-installing HAXM sadly did not help, but rebooting my MAC did (go figure).

  • But, I also noted that if you have installed an emulator image but not the related SDK for the API (which makes sense), then you get a similar pop-up when starting the emulator, which makes you think it may be a HAXM / KVM issue, which its not.

Hope this helps someone.

Solution 5

Just go to terminal and type

sudo chown 777 -R /dev/kvm,

then type

sudo chmod 777 -R /dev/kvm.

And restart android studio

And that's it..

In some case it may happened that for every start of android studio you need to type this commands First and then start android studio.

Share:
66,808

Related videos on Youtube

ttyip
Author by

ttyip

Updated on July 16, 2022

Comments

  • ttyip
    ttyip almost 2 years

    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

    • K.Sopheak
      K.Sopheak over 7 years
      I got the same error in Ubuntu. How to solve this problem?
    • T77
      T77 about 7 years
      I had the same problem: couldn't run AVD (image Nougat x86_64). As makthrow answer, how I solved: just enabled Intel Virtualization Technology in BIOS (BIOS Features section for my Gigabyte motherboard). Note: SDK Manager show for Intel x86 Emulator Accelerator (HAXM installer): "Not compatible with Linux" and it is not possible to install.
    • misima
      misima over 6 years
      This Helped me, on macOS High Sierra: stackoverflow.com/a/44942860/502404
  • Jesse Onolemen
    Jesse Onolemen over 7 years
    This is for OSX and your solution is a windows solution
  • MMG
    MMG almost 7 years
    [SC] EnumQueryServicesStatus: Open Service FAILED 1060 Specified service does not exist as an installed service.
  • Damian
    Damian over 6 years
    Under MacOS X I have to allow also the installation under "Security & Privacy"
  • fatihturan
    fatihturan over 6 years
    I'm trying to allow but it doesn't anything like this screencast. What should I do?
  • Crysfel
    Crysfel over 6 years
    Maybe try to restart your mac? That button should work :o
  • fatihturan
    fatihturan over 6 years
    I found a solution from here which recommends disable MacOS system protection (only for Kernel Extensions) and its worked. But I'm worried about this way for decreasing for my security. :( I hope I can find a safer way in future.
  • rvazquezglez
    rvazquezglez over 6 years
    I needed to both reinstall and give permissions
  • Naveed Abbas
    Naveed Abbas over 6 years
    It gives me "Permission Denied" I also tried to execute it after "sudo su" and using my admin password.
  • Ahmed Ismail
    Ahmed Ismail about 6 years
    ./HAXM\ installation gives installation failed
  • Abdul Wahid
    Abdul Wahid almost 6 years
    in my case when i started to start the intelhaxm it gave message "windows can not verity the digital signature for this file. a recent hardware or software change might have installed a file that is signed incorrectly or damaged"
  • Yosra Nagati
    Yosra Nagati over 5 years
    chown: -R: No such file or directory chown: /dev/kvm,: No such file or directory
  • Naveen
    Naveen over 4 years
    Hi Abdul Wahid, I am also getting the same error message after running "sc start intelhaxm". May I know what is the Issue and what is the solution for this ?Please help me on this.
  • Michael Durrant
    Michael Durrant almost 4 years
    On ubuntu I don't see the 'extras'
  • Paresh Mangukiya
    Paresh Mangukiya over 3 years
    Thanks for taking the time to contribute an answer.! Can you:- 1) edit your answer so the answer in detail. 2) Explain what you are trying to achieve with this answer and what you want to say.? See How do I write a good answer in the Help Centre for more information (How to Ask : stackoverflow.com/help/how-to-answer)
  • Isac
    Isac over 3 years
    This only works if /dev/kvm exists, which in quite some cases it doesnt.
  • Michael Paccione
    Michael Paccione about 3 years
    My KVM doesnt exist on Ubuntu 20