google / android-emulator-container-scripts

Apache License 2.0
1.89k stars 266 forks source link

CPU stalls during kernel boot when running container on Ubuntu 22.04 host #352

Open Raikerian opened 1 year ago

Raikerian commented 1 year ago

Hi. I am running docker image as per README documentation:

docker run \
  -e ADBKEY="$(cat ~/.android/adbkey)" \
  --device /dev/kvm \
  --publish 8554:8554/tcp \
  --publish 5555:5555/tcp  \
  us-docker.pkg.dev/android-emulator-268719/images/30-google-x64:30.1.2

This works successfully on Ubuntu 20.04 host and emulator fully boots, however I am getting CPU stalls on Ubuntu 22.04 host on the very early stage. Using official LTS ubuntu images for both. KVM is available on both. The stall happens at the random point every time, as well as sometimes it just doesn't happen, but the log starts hanging. Attaching logs of both. ubuntu-20-04-successful-boot.log ubuntu-22-04-cpu-stall.log

Any idea what might be the cause with the newer version of Ubuntu on the host? Please let me know if more details are needed. Thank you.