---
title: "Running an Android emulator on a VPS: what to check first · CloudSat"
description: "An Android emulator needs hardware virtualization inside your VPS. Check for it first, then run BlueStacks on Windows, a headless SDK emulator or Redroid."
url: https://cloudsat.io/learn/android-emulator-on-a-vps
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

# Running an Android emulator on a VPS: what to check first

An Android emulator needs hardware virtualization inside your VPS. Check for it first, then run BlueStacks on Windows, a headless SDK emulator or Redroid.

CloudSat team November 18, 2026 7 min read

An Android emulator is a virtual machine. Put one on a VPS and you are asking a VM to run inside a VM, which only works at a usable speed when the provider passes the CPU's virtualization extensions through to your server. RAM, the operating system and the choice of emulator all come second. This guide covers the check that decides the whole project, three ways to run Android on a server (for app testing, CI pipelines or keeping an app open while your own computer sleeps), and how to size the machine.

## Why the emulator needs nested virtualization

Google's Android Emulator boots an x86\_64 Android image on QEMU and hands the heavy lifting to a hypervisor: KVM on Linux, Windows Hypervisor Platform (WHPX) on Windows. The emulator also requires second-level address translation (Intel EPT or AMD RVI), which every recent server CPU has. Intel HAXM is gone (the emulator stopped using it in version 36.2), and Google's alternative Windows driver, AEHD, is scheduled to be retired on December 31, 2026, which leaves WHPX as the path on Windows.

Without a hypervisor the emulator would translate guest code block by block. Google's documentation says that mode "is not supported and is very slow", and the emulator refuses to start in it unless you set `ANDROID_I_WANT_MY_TCG=yes`. BlueStacks also runs Android inside its own virtual machine, so it depends on the same CPU extensions.

On a VPS, those extensions exist only if the host enables nested virtualization for your server. The main emulator documentation still says a VM-accelerated emulator can't run inside another VM, while Google's own emulator container scripts state that KVM is reachable "inside cloud Virtual Machines with nested virtualization enabled", with reduced performance. Treat it as a setup to verify, not a promise.

## Check before you install anything

### On Linux

```bash
grep -cE 'vmx|svm' /proc/cpuinfo    # 0 means no virtualization extensions in this VM
ls -l /dev/kvm                      # appears once the kvm modules load
sudo apt install -y cpu-checker && sudo kvm-ok
```

`kvm-ok` should end with "KVM acceleration can be used". Once the SDK is installed, `emulator -accel-check` gives the final word: "KVM (version 12) is installed and usable" or an error.

### On Windows

There is no trustworthy one-line test inside a VM. Even Sysinternals Coreinfo warns that it can misreport VMX and SVM support when it runs inside a virtual machine. The dependable method is to turn on Windows Hypervisor Platform, reboot, and ask the emulator you plan to use:

```powershell
Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -All
Restart-Computer
```

With the Android SDK installed, `emulator -accel-check` then reports whether WHPX is "installed and usable". For BlueStacks, install it on an hourly server first and judge the speed yourself before you commit to a month.

## Three ways to run Android on a server

| Path | Nested virtualization | Best for | Watch out for |
| --- | --- | --- | --- |
| Windows with BlueStacks | Required | Using apps through a desktop session | Desktop Windows license, RDP habits |
| Linux with the SDK emulator | Required | Automated tests, CI, screenshots | No GPU, so software rendering |
| Linux with Redroid | Not needed | Many light instances driven by `adb` | Privileged container, kernel modules |

### Windows and BlueStacks

BlueStacks lists Windows 7 or later as its minimum and Windows 10 or later as recommended, with at least 4 GB of RAM. Its requirements describe desktop Windows, so a Windows 10 or 11 image is the closest match to what it supports. Recent versions (5.20 and later) run whether Hyper-V is on or off. Connect over Remote Desktop, and when you leave, disconnect the session instead of signing out: a disconnected session keeps apps running, a signed-out one closes them.

### Linux and the SDK emulator, headless

This path suits developers: no desktop, no window, just `adb`. Install a Java runtime and Google's command-line tools into `$ANDROID_HOME/cmdline-tools/latest`, then:

```bash
export ANDROID_HOME="$HOME/android-sdk"
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$PATH"
sudo usermod -aG kvm "$USER"        # then log out and back in
sdkmanager --licenses
sdkmanager "platform-tools" "emulator" "system-images;android-35;google_apis;x86_64"
echo no | avdmanager create avd -n test35 -k "system-images;android-35;google_apis;x86_64"
emulator -avd test35 -no-window -no-audio -no-boot-anim -gpu software -accel on &
adb wait-for-device shell 'while [ "$(getprop sys.boot_completed)" != "1" ]; do sleep 2; done'
```

`-accel on` makes the emulator fail loudly instead of crawling when KVM is missing, and `-gpu software` selects a software renderer, since a regular VPS has no graphics card (older guides use `swiftshader_indirect`, now deprecated). Pick the API level you test against; `sdkmanager --list` shows what exists. Google now marks `sdkmanager`, `avdmanager` and `emulator` as deprecated in favor of its newer Android CLI, where `android emulator create` and `android emulator start --headless` cover the same ground. The classic tools still work and make it easy to pin an exact system image in scripts.

To watch the screen, keep `adb` on the server's loopback address and reach it through an SSH tunnel, then run scrcpy on your own computer:

```bash
ssh -N -L 5555:127.0.0.1:5555 user@203.0.113.10    # run on your computer
adb connect 127.0.0.1:5555 && scrcpy -s 127.0.0.1:5555
```

### Linux and Redroid, without nested virtualization

Redroid runs Android's user space as a container on the server's own kernel, so it needs kernel drivers (binder, plus ashmem or memfd) rather than AMD-V or VT-x. Images cover Android 8.1 through 16, and the project is Apache-2.0 licensed.

```bash
sudo modprobe binder_linux devices="binder,hwbinder,vndbinder"
docker run -itd --rm --privileged -v ~/redroid-data:/data \
  -p 127.0.0.1:5555:5555 redroid/redroid:15.0.0_64only-latest
adb connect 127.0.0.1:5555
```

The trade-offs are real. The container runs privileged, the binder module must exist in your distribution's kernel (on Ubuntu it ships in the extra modules package), and app compatibility differs from Google's emulator. Redroid's documentation also warns never to expose the `adb` port on a public network, which is why the example binds it to 127.0.0.1.

## Size the server

Memory sets the limit. The SDK emulator's `-memory` option accepts 1,536 to 8,192 MB per instance, BlueStacks asks for 4 GB, and the host operating system needs its own share on top; Windows takes noticeably more than a minimal Linux install. Add up instances times their RAM, add the OS, and leave headroom.

Without a GPU, the CPU also draws every frame, so vCPUs matter more than usual: give each instance at least two, and more for anything animated. Messaging apps, utilities and UI tests run well; fast 3D games will stutter on software rendering. Every system image takes a few gigabytes of disk and every AVD adds its own data image, so NVMe storage keeps boots short. Expect some overhead from nesting itself, as Google's own container notes say.

On CloudSat, [nested virtualization](https://cloudsat.io/nested-virtualization) is available on plans with 8 GB of memory or more for 11% on top of the plan price, and BlueStacks is in the [one-click app](https://cloudsat.io/apps/deploy-bluestacks) catalog. Windows images there come with a 180-day evaluation license or your own key, depending on the version.

Whatever you run, the apps' own terms still apply. Some apps and games forbid emulators or automation, and the provider's acceptable use policy covers what the server does.

## FAQ

### Can I run an Android emulator without nested virtualization?

Not Google's emulator at a usable speed: unaccelerated mode is unsupported, very slow and disabled unless you set an override variable. Redroid and other container-based Android builds are the exception: they run on the host's kernel rather than starting a virtual machine.

### How many emulators can one server run?

Memory decides first, then CPU. Start one instance, watch `free -h` (or Task Manager on Windows) while your real workload runs, and add instances one at a time. Each SDK emulator uses a pair of ports, starting at 5554 and 5555, and one machine can host up to 64.

### Should I use Windows Server or Windows 11 for BlueStacks?

BlueStacks' requirements name desktop Windows versions, with Windows 10 or later recommended; Windows Server is not among them. A Windows 10 or 11 image is the safer choice; test any other edition on an hourly server before relying on it.

### Will the emulator keep running when I disconnect?

On Windows, yes, if you close the Remote Desktop window or choose disconnect rather than sign out. On Linux, start the emulator from a systemd service or inside `tmux`, so it survives your SSH session ending.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

- [Cloud virtualization under the hood: what your VPS shares](https://cloudsat.io/learn/cloud-virtualization-under-the-hood): Cloud and hosting Cloud virtualization under the hood: what your VPS shares 8 min read
- [Hourly VPS billing explained: what you actually pay for](https://cloudsat.io/learn/hourly-vps-billing-explained): Cloud and hosting Hourly VPS billing explained: what you actually pay for 7 min read
- [Cloud VPS buyer's checklist: what to verify before you pay](https://cloudsat.io/learn/cloud-vps-buyers-checklist): Cloud and hosting Cloud VPS buyer's checklist: what to verify before you pay 7 min read
- [Nested virtualization on a VPS: uses, limits, setup](https://cloudsat.io/learn/nested-virtualization-on-a-vps-explained): Cloud and hosting Nested virtualization on a VPS: uses, limits, setup 7 min read
