google / android-emulator-container-scripts

1.82k stars 256 forks source link

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

Open Raikerian opened 11 months ago

Raikerian commented 11 months 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.