This is a reminder of the steps required to use kvm/hardware acceleration in the Android Emulator, in case I need to re-do them.
They’re taken from here: https://software.intel.com/en-us/android/articles/speeding-up-the-android-emulator-on-intel-architecture#_Toc358213272
(The link also has instructions for Windows and Mac, in case any of you haven’t switched to Linux yet.)
In brief, the steps are:
- Verify hardware support by typing
egrep –c ‘(vmx|svm)’ /proc/cpuinfo
(result should not be 0).
- Install required packages:
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
- Add yourself to the kvm and libvirtd groups; log out and log in again.
- Install “Intel x86 Atom System Image” in Android SDK Manager
- (If using Eclipse, shut it down and restart it.)
- Create a new device in the Android Virtual Device Manager, selecting the new system image for the “CPU/ABI” option.