Cannot make android emulator work in the container
Hi, I'm trying to use this example project and the related article to understand how to compile and make available android build to our developer. I'm using gitlab-ce 8.14.2 and gitlab-ci-multi-runner 1.8.1 (running on a RHEL 7 virtual machine on vSphere 5.5) with docker as executor. After some playing with proxy settings I was able to compile and test the android application but the functionalTest don't work. I think I'm missing some configuration on the host. What happen is that the container don't recognize the hardware acceleration and did not run.
$ echo no | android-sdk-linux/tools/android create avd -n test -t android-${ANDROID_COMPILE_SDK} --abi google_apis/x86
Android 7.1.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]Created AVD 'test' based on Android 7.1.1, Google apis Intel Atom (x86) processor,
with the following hardware config:
hw.lcd.density=240
hw.ramSize=512
vm.heapSize=48
$ android-sdk-linux/tools/emulator64-x86 -avd test -no-window -no-audio &
$ ./android-wait-for-emulator
emulator: WARNING: Increasing RAM size to 1GB
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).
Do you have any suggestion? Any prerequisite for the host where i execute the gitlab-runner ?