Does the Android Emulator use KVM automatically on Ubuntu? How to check

July 16, 2025

On March 1, 2025, I searched for how to run android on kvm. I read an Ubuntu KVM installation tutorial, then opened the Android Emulator hardware acceleration guide. Reading the two together raised a natural question: if all I want is a virtual tablet in Android Studio, do I have to create a virtual machine myself and select KVM manually?1

On Ubuntu, the emulator uses KVM by default when the current user can access it and the selected Android system image matches the host CPU architecture. Create a virtual device in Android Studio's Device Manager, select it, and click Run. The command-line option -accel defaults to auto. The official wording is: “Determines automatically if acceleration is supported and uses it when possible (default).”2

What uses KVM when I click Run?

Creating a tablet in Device Manager actually saves an Android Virtual Device (AVD) configuration specifying screen size, memory, and the Android system image to boot. Android Studio launches the Android Emulator with this configuration, and your app runs on the Android system inside the emulator.

If you have a Fedora installation image and want to create a virtual machine with its own disk, that's a different use case. See Creating a virtual machine with virt-manager on Ubuntu.

This also explains why tutorials often mention QEMU and KVM together. QEMU provides a virtual computer, including its CPU, memory, and peripherals. KVM is a Linux kernel virtualization facility that lets code inside the VM use hardware support to execute on the host CPU.3 The emulator can emulate the tablet hardware while handing CPU execution to KVM for acceleration. Graphics acceleration in Device Manager controls how graphics are rendered. Changing it affects only graphics settings.45

How do I check whether my Ubuntu setup is ready?

Open a terminal as the same Ubuntu user that launches Android Studio and have the emulator check whether it can use KVM. My Android SDK is in the default directory. If yours is elsewhere, substitute its path.2

~/Android/Sdk/emulator/emulator -accel-check

A result such as KVM (version 12) is installed and usable. means KVM is available to this user. Next, check the architecture of the system image you selected in Device Manager. On a typical Intel or AMD machine, uname -m reports x86_64. Select an Android image that is also x86_64. These are two independent conditions: the check tests the host, and the image architecture is a property of the virtual device you created.5

If the check fails, use the error to narrow it down:

  • Missing /dev/kvm. This is the KVM device Linux exposes to the emulator. First check from a terminal on the host running Android Studio, since a container may not see host devices. If it's missing on the host too, check whether Intel VT-x or AMD-V is enabled in BIOS/UEFI and whether Linux has loaded the corresponding kvm_intel or kvm_amd module.51
  • The device exists, but access is denied. Use ls -l /dev/kvm to see which group owns it and id -nG to see the current user's groups. If the device belongs to the kvm group and your account lacks that membership, add the account to the group, log in again, and rerun the same check as an ordinary user. That way the check sees the same permissions as Android Studio.51

Do Windows and Mac use KVM too?

Start with the operating system that runs Android Studio. For the same Android app, switching development machines can mean the emulator uses a different system interface to access the CPU's virtualization capabilities.5

System running Android StudioUsual CPU acceleration for Android Emulator
Ubuntu and other Linux systemsKVM, supplied by the Linux kernel.
WindowsWHPX (Windows Hypervisor Platform), the Windows virtualization feature Google recommends enabling.
macOSHypervisor.framework, supplied by macOS. Pair an Apple silicon Mac with an arm64-v8a system image.

I also looked at OSX-KVM on March 10. It illustrates the importance of knowing what's running where. OSX-KVM uses QEMU/KVM on Linux to boot macOS, so macOS is the guest. In the last row above, Android runs on a Mac, so macOS is the host supplying virtualization.6

What configuration did my virtual tablet use?

On July 16, I was preparing to build PatientComm, a communication card app for patients. I reopened the Linux acceleration section of the Android documentation and created a virtual tablet called Medium_Tablet that morning. Its config.ini includes this line:

image.sysdir.1=system-images/android-34/google_apis_playstore/x86_64/

This tablet uses an Android 14 (API 34) x86_64 image matching my Ubuntu host. In November 2026, while putting together this article, I ran -accel-check on the host using Android Emulator 36.6.11. Here's the actual output:

accel:
0
KVM (version 12) is installed and usable.
accel

For this tablet I can keep the selected image, and KVM is available on the host. I can start Medium_Tablet directly in Android Studio and leave acceleration at its default, auto.

Footnotes

  1. Ali, M. (2024, December 5). How to install KVM on Ubuntu 24.04: Step-by-step. Cherry Servers. Installation and permissions (page updated 2026-06-19). ↩ ↩2 ↩3

  2. Google. (2026, November 6). Start the emulator from the command line. Android Developers. Commonly used options, System table entries for -accel and -accel-check. The quotation is the description of auto under -accel mode. ↩ ↩2

  3. Kurek, T. (2021, September 8). KVM hypervisor: a beginners’ guide. Ubuntu Blog. What is a KVM hypervisor?, paragraph 2. ↩

  4. QEMU Project. (n.d.). Introduction. QEMU documentation. Virtualisation Accelerators, paragraph 1. ↩

  5. Google. (2026, November 13). Configure hardware acceleration for the Android Emulator. Android Developers. Image architecture and VM acceleration requirements, checking KVM on Linux, Windows, and macOS. ↩ ↩2 ↩3 ↩4 ↩5

  6. kholia. (n.d.). OSX-KVM [Software repository]. GitHub. README, project description. ↩

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-07-16). Does the Android Emulator use KVM automatically on Ubuntu? How to check. https://caiborui.com/blog/2025-07-16-zh-android-emulator-kvm-on-ubuntu-entrans

@misc{borui2025-0f4b6082,
  author = {borui},
  title = {{Does the Android Emulator use KVM automatically on Ubuntu? How to check}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-07-16-zh-android-emulator-kvm-on-ubuntu-entrans}
}