E

KVM and Android Emulator Tests Inquiry

Summary

The user is seeking information about using KVM for running Android emulator tests. They mention that it works locally with --allow-privileged, but not with small satellites. They are inquiring whether larger satellites support privileged mode or if they need to use self-hosted satellites.

Status
resolved
Tags
    Source
    #earthly
      b

      brandon

      9/10/2024

      Makes sense. It seems that our instances are not capable of kvm. I think your best bet would be self-host a satellite to get that working.

      l

      luper.rouch

      9/10/2024

      You can check for kvm support with:

      l

      luper.rouch

      9/10/2024

      Ok then maybe then it's the host that doesn't support KVM. I'm running android tests on the standard x86 emulator, which needs KVM: https://developer.android.com/studio/run/emulator-acceleration#vm-linux

      b

      brandon

      9/10/2024

      All satellites should support running privileged mode. E.g. earthly -P +some-target - no difference in larger sizes.

      Can you explain your android emulator setup a bit more? What earthly command are you running, what’s in the Earthfile?

      l

      luper.rouch

      9/10/2024

      Hello, I need KVM to run android emulator tests. This works locally with --allow-privileged, but it doesn't with small satellites. Do larger satellites support privileged mode or do I have to use self-hosted satellites?