budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.57k stars 1.27k forks source link

Low performance on nested virtualization environment #341

Open Ahernandez2904 opened 1 year ago

Ahernandez2904 commented 1 year ago

Hello! My team is trying to emulate virtual devices using Android Kubernetes Services. We are able to send Selenium tests, but it takes up to 20 minutes to boot depending on the docker image. 7.1.1 is fast enough but the Chrome and Chromedriver versions are a little old and we are receiving some issues because of that. We are using a device with nested-virtualization enabled. Our machine is Standard_F4s_v2 (8 RAM, 4 CPU cores, no GPU), which has enough RAM and CPU to run the device.

We tried environment variables like -gpu off -noboot-animation, but it just made the device disappear or did nothing.

Example of a part of an AKS YAML file:

            - name: EMULATOR_ARGS
              value: '-gpu off'
            - name: LD_LIBRARY_PATH
              value: >-
                /root/emulator/lib64/qt/lib/:/root/emulator/lib64/:/root/emulator/lib64/gles_swiftshader/

Is there a way to solve that? Any suggestions on what should we do instead to run virtual devices? Thank you!

Let me know is more information is needed.

asafe199 commented 1 year ago

@Ahernandez2904 Have you found any solution? I got the same problem, the performance is too lower than I expected.

Ahernandez2904 commented 1 year ago

@asafe199 I remember we tried a couple of things but didn't work. So we dropped the investigation and started using a service like SauceLabs but cheaper :(

asafe199 commented 1 year ago

@Ahernandez2904 I got it, thanks mate