Skip to content Skip to sidebar Skip to footer

"/dev/kvm Not Found "error On Windows In Android Studio

I have enabled the Virtualization in BIOS in windows and I have Intel HAXM installed as well but I still get the message when I run the application on the emulator. How to resolve

Solution 1:

Remove intel haxm installer 6 from control panel>Add or remomve Program. And download manually from here. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

Then install it manually. And launch android studio again. This worked for me. Hope it helps.

Solution 2:

Here are 4 simple steps that should work:

  1. Uninstall Intel Hardware Accelerated Execution Manager version from Windows Control Panel

  2. Go to https://github.com/intel/haxm/releases

  3. Download older version (v7.1.0)

  4. Install from zip

Solution 3:

I faced this issue and after some investigation, I concluded that the problem lies with the installer for HAXM and the way it is used.

Following is how I got it to work:

  1. uninstall previous instance of HAXM from control panel if any.
  2. download HAXM from here.
  3. extract downloaded zip. "haxm-windows_v6_0_1.zip" in my case.

Step 4, 5, 6 can be skipped they just provide some data points for entire process

  1. try running intelhaxm-android.exe.

    At this step I got error "Failed to configure driver: unknown error. Failed to open driver" this seems to be issue with installer itself.

  2. now I tried running "silent_install.bat".

    this installs HAXM but original error "/dev/kvm not found" persist. I believe this is the file which android studio uses to install HAXM but this does not lead to a healthy installation as original installer have some issue.

  3. uninstall HAXM again.

  4. extract intelhaxm-android.exe using winzip or any other program.

  5. go to extracted folder ("intelhaxm-android" in my case) and locate "hax64.msi"

    now we need to extract this file, win zip does not support this so I went with command prompt, other programs such as 7zip may support this.

  6. run command prompt in administartor mode (go to start > type cmd in search box > right click on cmd.exe > select run as administrator)

  7. run following command :

    ##>msiexec /a <path\to\file>\hax64.msi /qb TARGETDIR=<path\to\target>\hax64

    in my case it looks like

    C:\Windows\system32>msiexec /a D:\Intel_HAXM\intelhaxm-android\hax64.msi /qb TARGETDIR=D:\Intel_HAXM\intelhaxm-android\hax64

    this will extract "hax64.msi"

  8. now open command prompt in admin mode (refer step 9) and navigate to <newly extracted folder>\Intel\HAXM

    in my case it is "D:\Intel_HAXM\intelhaxm-android\hax64\Intel\HAXM"

  9. now run following command:

    ##> HaxInst64.exe /i intelhaxm.inf 1

    this should result in a success message at the end, something like this:

    SUCCESS: installed package D:\Intel_HAXM\intelhaxm-android\hax64\Intel\HAXM\intelhaxm.inf.

  10. go back to folder we have extracted in step 7

    in my case : D:\Intel_HAXM\intelhaxm-android

  11. run setup.exe, setup should complete without any error this time.

additionally I had to delete the existing AVD and create a new one as existing one was acting weird.

References:

  1. HAXM installer issue
  2. Extracting msi package from command line
  3. Json's Answer

Solution 4:

If you're using Windows and have secure boot on, you will not be able to install HAXM properly or use its driver since Intel didn't sign it. Secure boot prevents you from using unsigned drivers, so even if you managed to force it to install, you wouldn't be able to do anything with it, unless you restarted your computer and selected the option to load unsigned drivers (press F8 repeatedly then press F7). You'll need to do this every time, which can be annoying, so it's easier to just disable secure boot and reinstall HAXM.

Solution 5:

Follow Tiwari's answer here until step 11, you need to rename 3 files:

  • intelhaxm_x86.cat.win7_64 => IntelHaxm_x64.cat
  • intelhaxm.sys.win7_64 => intelhaxm.sys
  • intelhaxm.inf.win7_64 => intelhaxm.inf

Post a Comment for ""/dev/kvm Not Found "error On Windows In Android Studio"