We build Mobilebox, a cloud Android phone service, and it shows up as one option below. The short version: if your CI runner or agent sandbox has no /dev/kvm, the Android emulator will either refuse an x86_64 image or crawl, and your realistic choices are to get KVM back, accept software emulation, or move the phone off the runner.

Why it stalls

The emulator's speed comes from VM acceleration, which on Linux means KVM. Without it, Google's own page says the emulator "must translate the machine code from the VM block by block" and calls that "quite slow". The same page says you can't run an accelerated emulator "inside another VM, such as a VM hosted by VirtualBox, VMWare, or Docker". That covers most containers and a lot of cloud agent sandboxes. (Docs as of November 2026.)

The three ways out

Option What it needs What you give up
A runner with KVM Bare metal or nested virtualization; android-emulator-runner turns KVM on for ubuntu-latest with a udev rule Nothing on the emulator side, but you own boots, images and caching
Software emulation -no-accel and software graphics Slow boots and timeouts
A remote phone over HTTP An API key and outbound network No ADB or emulator flags; you live with someone else's device and limits

If you need ADB, logcat or instrumented tests, get KVM back. If the job is "install this build and see what a user sees", a remote phone is enough.

What the remote route looked like for us

On November 4, 2026 we ran the script below against our production API from a Linux host with no /dev/kvm. It creates a phone, installs a small public APK from F-Droid, opens it, prints the screen as text and deletes the phone. It needs only curl and jq; set APK_URL to your own build.

#!/usr/bin/env bash set -euo pipefail MSB=${MOBILESANDBOX_URL:-https://46.225.109.82} AUTH="Authorization: Bearer ${MOBILESANDBOX_API_KEY:?set MOBILESANDBOX_API_KEY}" APK_URL=${APK_URL:-https://f-droid.org/repo/org.billthefarmer.editor_198.apk} api() { curl -sS --fail-with-body -H "$AUTH" -H 'Content-Type: application/json' "$@"; } ID=$(api -X POST "$MSB/v1/phones?wait=ready&timeout=50" \ -d '{"name":"apk-check","idle_timeout":120,"max_duration":300}' | jq -r .id) trap 'api -X DELETE "$MSB/v1/phones/$ID" && echo "deleted $ID"' EXIT for _ in 1 2 3 4; do # a boot can outlast one 50 s wait; poll the same id STATUS=$(api "$MSB/v1/phones/$ID?wait=ready&timeout=50" | jq -r .status) [ "$STATUS" = ready ] && break [ "$STATUS" = failed ] && { echo "phone failed to boot" >&2; exit 1; } done [ "$STATUS" = ready ] || { echo "not ready: $STATUS" >&2; exit 1; } INSTALLED=$(api -X POST "$MSB/v1/phones/$ID/apps" -d "{\"url\":\"$APK_URL\"}") || { echo "$INSTALLED" >&2; exit 1; } echo "$INSTALLED" PKG=$(jq -r .package <<<"$INSTALLED") api -X POST "$MSB/v1/phones/$ID/actions" \ -d "{\"actions\":[{\"type\":\"open_app\",\"package\":\"$PKG\"},{\"type\":\"wait\",\"ms\":1500}]}" \ | jq -e -r 'if all(.results[]; .ok) then .screen.text else (.results | tostring | halt_error) end' 

Create to delete took 25 seconds. The interesting part was the output: the first screen wasn't the editor, it was an "Access all files" permission dialog with CANCEL and ACCESS ALL FILES buttons. If your smoke test asserts on the app's main screen, it will fail on a dialog like that, so either expect it or tap through it first.

What a pass does and doesn't tell you

The script fails the job on any HTTP error, a refused download or a failed action, and the trap deletes the phone either way. A pass means the build installs on Android 14 arm64 and opens to the screen you printed. It says nothing about Google Play services, a physical device, iOS or the rest of your user flow.

If what drives the phone is a coding agent rather than a CI script, the same create, install, read-the-screen and tap steps are also available as a hosted Android MCP server, so the agent calls tools instead of curl.

Originally published at mobilebox.dev/blog/android-emulator-without-kvm. Disclosure: we build Mobilebox, one of the services in this post. Written with AI assistance from our own published data; every number carries its date and source, and corrections go to hello@mobilebox.dev.