# Running Mobile Automation Scripts with Android Emulators on top of linux Docker containers

**URL:** <https://forum.robotframework.org/t/running-mobile-automation-scripts-with-android-emulators-on-top-of-linux-docker-containers/7343>\
**Category:** Robot Framework\
**Created:** [30 May 2024 08:06 UTC](https://forum.robotframework.org/t/running-mobile-automation-scripts-with-android-emulators-on-top-of-linux-docker-containers/7343 "2024-05-30T08:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekharpadala333](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sekharpadala333](https://forum.robotframework.org/u/sekharpadala333)\
**Post date:** [30 May 2024 08:06 UTC](https://forum.robotframework.org/t/running-mobile-automation-scripts-with-android-emulators-on-top-of-linux-docker-containers/7343/1 "2024-05-30T08:06:06Z")

</div>

We are currently trying to run Android mobile automation scripts on top of dockers with ubuntu as base image , so i created need a dockerfile with the below configurations :

Android Studio: Android Studio Dolphin | 2021.3.1 Patch 1  
Appium: App Version 1.19.1  
Node.js: v18.12.1  
Java: openjdk 17.0.2 2022-01-18 LTS  
OpenJDK Runtime Environment Corretto-17.0.2.8.1 (build 17.0.2+8-LTS)  
OpenJDK 64-Bit Server VM Corretto-17.0.2.8.1 (build 17.0.2+8-LTS, mixed mode, sharing)  
Python: 3.10.5  
RobotFramework

Below Are the configuration which we have used to create the AVD

hw.ramSize=4096  
vm.heapSize=1024  
image.sysdir.1=system-images/android-33/google\_apis/x86\_64/  
hw.internalStorage.path=/root/.android/avd/Incident\_AVD.avd/sdcard.img  
hw.internalStorage.size=16384MB  
sdcard.size=16384MB

And copied our mobile scripts which are based on Robotframework into the container

While running the dockerfile , i am getting the below error

Waiting for emulator to start…  
INFO | Storing crashdata in: /tmp/android-unknown/emu-crash-34.2.14.db, detection is enabled for process: 58  
INFO | Android emulator version 34.2.14.0 (build\_id 11834374) (CL:N/A)  
INFO | Found systemPath /opt/android-sdk/system-images/android-33/google\_apis/x86\_64/  
INFO | Storing crashdata in: /tmp/android-unknown/emu-crash-34.2.14.db, detection is enabled for process: 58  
INFO | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag.  
INFO | Increasing RAM size to 2048MB  
WARNING | File System is not ext4, disable QuickbootFileBacked feature  
ERROR | x86\_64 emulation currently requires hardware acceleration!  
CPU acceleration status: KVM requires a CPU that supports vmx or svm  
More info on configuring VM acceleration on Linux:

> **[Cómo configurar la aceleración de hardware para Android Emulator...](https://developer.android.com/studio/run/emulator-acceleration?hl=es-419)**
>
> Descubre cómo Android Emulator puede usar las funciones de aceleración de hardware para mejorar el rendimiento.

General information on acceleration: [Configure hardware acceleration for the Android Emulator &nbsp;|&nbsp; Android Studio &nbsp;|&nbsp; Android Developers](https://developer.android.com/studio/run/emulator-acceleration).  
Emulator not found. Exiting…

Q&A:

I am currently running this docker on an T3a.large

I have reached a bit on running the android emulators on linux dockers , Is there any way we can bypass this hardware acceleration and run the tests as iam ok to take a hit on performance.

Is it must that we need hardware acceleration to run this on \*86-64 architecture .

Thanks

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [30 May 2024 17:32 UTC](https://forum.robotframework.org/t/running-mobile-automation-scripts-with-android-emulators-on-top-of-linux-docker-containers/7343/2 "2024-05-30T17:32:57Z")

</div>

Well, looks like you are trying a very complicated setup.

If the error says it needs hardware acceleration then it must.  
In my PC it needed, and Android Studio installs a driver for it.  
Did you manage to run Android Emulator in docker? That is the first step to solve, and I would experiment first in a normal PC.

Also I don’t know if this is relevant:

```python
WARNING | File System is not ext4, disable QuickbootFileBacked feature

```

Maybe you should have the same operating system as in T3a.large, as the base Docker image.

Good luck
