I am trying to run an AVD without window and boot for running an instrumented test in a pipeline workflow. I am using Docker [image][1] with Android SDK and use Linux Ubuntu.
The setup works and managed to create AVD however there is an error when starting it as it ask for hardware acceleration.
Commands
emulator -avd EMU -no-window -no-audio -no-boot-anim & ./gradlew connectedAndroidTest --continue
Error
WARNING | Crash annotation is very large (17292), only 16384 bytes will be recorded, 908 bytes are lost.
INFO | Storing crashdata in: /tmp/android-unknown/emu-crash-34.1.20.db, detection is enabled for process: 378
INFO | Android emulator version 34.1.20.0 (build_id 11610631) (CL:N/A)
INFO | Found systemPath /opt/android-sdk-linux/system-images/android-34/google_apis_playstore/x86_64/
WARNING | Crash annotation is very large (17651), only 16384 bytes will be recorded, 1267 bytes are lost.
WARNING | File System is not ext4, disable QuickbootFileBacked feature
Downloading https://services.gradle.org/distributions/gradle-8.4-bin.zip
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:
https://developer.android.com/studio/run/emulator-acceleration#vm-linux
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.
INFO | Storing crashdata in: /tmp/android-unknown/emu-crash-34.1.20.db, detection is enabled for process: 378
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
[1]: https://github.com/mindrunner/docker-android-sdk