Running Android Emulator on cimg/android

Hello,

I’m trying to launch the Android Emulator using the android docker image.
The reason why I’m using docker instead of regular android image, is the IP ranges features.
I need to whitelist specific IPs to access our infrastructure.

However, if I run Android Emulator on docker image, I get the following:

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

Is there a way to launch the Emulator on the docker to run the UI tests or at least use specific IPs for the regular image?

1 Like

I have the same situation: I need to whitelist specific IPs to access our infrastructure and run UI tests on the emulator. Is there any way to achieve this?

I think running on a self-hosted runner within your own infrastructure would be your only option here CircleCI’s self-hosted runner overview - CircleCI.

There are some workarounds that have worked for other users in the past but are a bit more involved to set up https://support.circleci.com/hc/en-us/articles/115014372807-IP-Address-Ranges-for-Safelisting-Do-You-Have-Static-IP-Addresses-Available

IP ranges for Machine Jobs | Feature Requests | CircleCI Ideas is the feature request that you can upvote that I believe would solve this issue for you.