Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HAXM not working on Linux

Here we go for GingerBread:

http://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assistedvirtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator/

Any updates for ICECream sandwich or Kitkat? Helpful answers are highly appreciated!!

like image 539
Prashanth Sams Avatar asked Mar 06 '14 06:03

Prashanth Sams


People also ask

Can I run AVD without HAXM?

The default software emulator runs with or without HAXM. Intel HAXM just adds hardware capabilities to speed up the emulation.


2 Answers

KVM has to be enabled by inserting the kernel module:

sudo modprobe kvm-intel

How to Start Intel Hardware-assisted Virtualization (hypervisor) on Linux to Speed-up Intel Android x86 Emulator might help; verbose output is also useful for testing:

emulator -avd ... -verbose

should log something like:

emulator: CPU Acceleration: working
emulator: CPU Acceleration status: KVM (version 12) is installed and usable.

the qemuhowto states:

You must have kvm module (kvm-intel or kvm-amd) installed for your kernel, and the permission of /dev/kvm is set to allow your user to access it. Otherwise the KVM support will be disabled and it may run very slow.

like image 123
Martin Zeitler Avatar answered Oct 11 '22 05:10

Martin Zeitler


As already mentioned by @Digit, you do not need HAXM on Linux but KVM.

Although the links in the other answers give a comprehensive answer, for those who like it short, on my Ubuntu, this was just enough:

sudo apt-get install kvm
like image 30
hennzen Avatar answered Oct 11 '22 04:10

hennzen