Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to toggle Linux hardware acceleration #154

Merged
merged 1 commit into from
May 28, 2021
Merged

Add option to toggle Linux hardware acceleration #154

merged 1 commit into from
May 28, 2021

Conversation

stevestotter
Copy link
Contributor

Adds option to override Linux hardware acceleration (which works on AWS Bare Metal machines for example), referenced in #153 + updated docs.

Also relevant for #46.

Copy link
Member

@ychescale9 ychescale9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! And thanks for updating the docs ❤️

@ychescale9 ychescale9 merged commit 5e38ea2 into ReactiveCircus:main May 28, 2021
@skumarpk
Copy link

skumarpk commented Jun 1, 2021

Hi Yang,

I have enabled hardware acceleration for ubuntu-latest but this is not working for me. I am running Appium + Android apk.
Even I have enabled, it as to install kvm but so far not able to install it correctly.
"Note - working fine in MacOS" but has some price constraint so need lower price machine.

My job look like -

  • name: run tests
  • uses: reactivecircus/android-emulator-runner@v2.17.0
  • with: api-level: 29
  • cores: 4 arch: x86_64
  • disable-linux-hw-accel: false
  • profile: Nexus 6
  • working-directory: ./Android
  • script: mvn test -Dcucumber.options="--tags ' @Messag'"

Would request you to please let me know what pre-requisite need to install KVM.
I tried few things from batch command-
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
sudo aptitude install kvm libvirt-bin ubuntu-vm-builder bridge-utils

Thanks,
Surjeet.

@stevestotter
Copy link
Contributor Author

Hi @skumarpk,

You can't install KVM on most cloud provider machines, because they're already virtualized. Only on special instances like AWS Bare Metal instances can you install KVM, as they allow you to do so.

If you are using one of those instances that allows KVM, make sure you add the runner user to the KVM group.

Have a look on issue #153 for more info on how we got this working.

@skumarpk
Copy link

skumarpk commented Jun 1, 2021 via email

@stevestotter
Copy link
Contributor Author

KVM doesn't work on the Github provided Ubuntu machines. You have to spin up your own custom runner machine in AWS using Bare Metal instances (e.g. m5.metal) for this to work. Please read pinned issue #46 for more context on this.

@ychescale9
Copy link
Member

Thanks @stevestotter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants