Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,138
Community Members
 
Community Events
165
Community Groups

Trying to run android emulator in pipeline docker image but hardware acceleration required

Setting up CI environment using pipeline, and want to run our integration tests using android emulator.

Our docker image is this : runmymind/docker-android-sdk:ubuntu-standalone which is a standard ubuntu install populated with android development environment

Have succesfully created android avd inside the docker image we are using, but when try to start the emulator get the following error reported:

emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure KVM is properly installed and usable.CPU acceleration status: KVM requires a CPU that supports vmx or svm

My understanding is that I can try to install KVM in my docker ubuntu instance, but i think it is dependent on kvm capabilities being available on the docker host.

Can you please:

1 indicate that it is indeed possible to set up kvm inside my docker container on your platform and

2. give any guidance on how I can set up KVM inside my docker container in order to run an android emulator

 

Thanks

 

Malcolm Cooke

1 answer

Hi Malcom,

actually this is quite easy, since there is a Flag, which can be used to update the CPU settings within VMWARE.

 

Hope it helps.

cpu-virt-flag.png

I think you cannot change the hardware settings on BitBucket Cloud. 

Or can somebody provide a link to this setting?

Hi Ritcher, did you find any solution? Is there any other way to run android emulator without KVM acceleration?

No, but I also did not further investigate since January.

Hi Developers, Currently we are also facing the same issue, did anyone find any solution? Is there any other way to run android emulator without or with KVM acceleration?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,208 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you