Configuring VM acceleration on Linux
Linux-based Systems support virtual machine acceleration through, the KVM software package. Follow instructions for installing KVM on your Linux system, and verify this KVM is enabled. In addition to following the installation instructions, be aware of these configuration requirements:
- Running KVM requires specific user permissions, make sure are sufficient permissions according to the KVM Installatio n instructions.
- If You use another virtualization technology on your Linux platform, unload its kernel driver before running the x86 Emula Tor. For example, the VirtualBox driver program is
vboxdrv
.
To run a x86-based emulator with VM acceleration:
- If you is running the emulator from the command line, start the emulator with an x86-based AVD and include the KVM option S
-<avd_name>----enable-KVM
Note: You must provide an x86-based AVD configuration name, otherwise VM acceleration is not enabled.
- If you is running the emulator from Android Studio, run your Android application with an x86-based AVD and include the KV M options:
- in Android Studio, click your Android Module folder and then select Run > Edit configurations. .
- in the left panel of the run/debug configurations dialog, select your Android Run Configur ation or create a new configuration.
- under the Target Device options, select the x86-based AVD you created previously.
- in the Emulator tab, in the Additional command line Options field, Enter:
-qemu -m 512 -enable -KVM
- Run your Android project using this run configuration.
Important: When using -qemu
the command line option, make sure it was the last parameter in your command. All subsequent options is interpreted as qemu-specific parameters.
Note: issue:195031 Emulator tab not available in Android Studio 1.5
"Go" Configuring VM acceleration on Linux