Android Studio Emulator "/dev/kvm is not found"
Solution 1
Re-installing HAXM resolved my problem Steps:
- Make sure
SDK Manager -> Extras -> Intel x86 Emulator Accelerator (HAXM installer)
is installed - Navigate to
<sdk>
/extras/intel/Hardware_Accelerated_Execution_Manager/ - Run
./HAXM\ installation -u
- 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.
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:
- Open the cmd.
- Type
sc query intelhaxm
, click enter and check the STATE. - If state is 1 STOPED, type
sc start intelhaxm
and click enter to start the HAXM. - Check the STATE again and it should be 4 RUNNING now.
- 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.
Related videos on Youtube
ttyip
Updated on July 16, 2022Comments
-
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.
-
K.Sopheak over 7 yearsI got the same error in Ubuntu. How to solve this problem?
-
T77 about 7 yearsI 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 over 6 yearsThis Helped me, on macOS High Sierra: stackoverflow.com/a/44942860/502404
-
-
Jesse Onolemen over 7 yearsThis is for OSX and your solution is a windows solution
-
MMG almost 7 years[SC] EnumQueryServicesStatus: Open Service FAILED 1060 Specified service does not exist as an installed service.
-
Damian over 6 yearsUnder MacOS X I have to allow also the installation under "Security & Privacy"
-
fatihturan over 6 yearsI'm trying to allow but it doesn't anything like this screencast. What should I do?
-
Crysfel over 6 yearsMaybe try to restart your mac? That button should work :o
-
fatihturan over 6 yearsI 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 over 6 yearsI needed to both reinstall and give permissions
-
Naveed Abbas over 6 yearsIt gives me "Permission Denied" I also tried to execute it after "sudo su" and using my admin password.
-
Ahmed Ismail about 6 years
./HAXM\ installation
gives installation failed -
Abdul Wahid almost 6 yearsin 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 over 5 yearschown: -R: No such file or directory chown: /dev/kvm,: No such file or directory
-
Naveen over 4 yearsHi 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 almost 4 yearsOn ubuntu I don't see the 'extras'
-
Paresh Mangukiya over 3 yearsThanks 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 over 3 yearsThis only works if /dev/kvm exists, which in quite some cases it doesnt.
-
Michael Paccione about 3 yearsMy KVM doesnt exist on Ubuntu 20