Sammekl
Sammekl

Reputation: 531

/dev/kvm is not found on Mac OS

I recently updated my Macbook pro to Mac OS High Sierra. Now I'm running into an issue where I can no longer start the emulator in Android Studio.

The warning /dev/kvm is not found. is shown. When I tried to start the emulator I get the following error:

enter image description here

I tried different versions of Intel HAXM from the SDK manager and standalone, reinstalling Android Studio and completely removing all configurations, still the same issue..

Upvotes: 7

Views: 10007

Answers (4)

HelloImKevo
HelloImKevo

Reputation: 556

I found the answers provided by @AresDev & @ShubhamJain to be super helpful for the uninstallation & re-installation of HAXM, but in my case it still didn't resolve the /dev/kvm not found errors I was seeing. My Mac OS High Sierra was blocking the AVD / Intel extensions from running correctly, and I had to Allow it under System Preferences > Security & Privacy > Allow.

However, the Allow button doesn't respond in some situations! I had to quit Google Chrome, before could click Allow, as described in these posts: "Github Karabiner Elements Issues"

Mac Security & Privacy

Upvotes: 0

AresDev
AresDev

Reputation: 638

  1. Go to: System Preferences > Security & Privacy > General

There should be a message like “System software from developer xxx was blocked from loading.”

  1. Click Allow

Upvotes: 47

Shubham Jain
Shubham Jain

Reputation: 2383

To use VM acceleration on a Mac, you must install the Intel HAXM kernel extension to allow the emulator to make use of CPU virtualization extensions. Android Studio requires Mac OS X 10.8.5 or higher, up to 10.11.4 (El Capitan) Mac OS X; the kernel extension is compatible with Mac OS X 10.6.0 and higher.

To install the Intel HAXM kernel extension, follow these steps:

  1. Open the SDK Manager.
  2. Click the SDK Update Sites tab and then select Intel HAXM.
  3. Click OK.

After the download finishes, execute the installer. For example, it might be at this location:

sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_version.dmg.

To begin installation, in the Finder, double-click the IntelHAXM.dmg file and then the IntelHAXM.mpkg file.

Follow the on-screen instructions to complete the installation.

After installation finishes, confirm that the new kernel extension is operating correctly by opening a terminal window and running the following command:

kextstat | grep intel

You should see a status message containing the following extension name, indicating that the kernel extension is loaded:

com.intel.kext.intelhaxm

Reference

Upvotes: 3

Sammekl
Sammekl

Reputation: 531

It seemed to be an Intel HAXM issue. I resolved it by completely removing Intel HAXM.

Then I followed this guide, which basically makes you edit the install script of HAXM so the silent installation will work on Mac OS High Sierra.

Upvotes: 2

Related Questions