Vega Virtual Device on Linux waits the full timeout and reports "failed to access shell" when qemu's system libraries are missing

:backhand_index_pointing_right: Bug Description

1. Summary

On a Linux host missing some system libraries, vega virtual-device start doesn’t report the real problem. It waits for the whole timeout and then prints failed to access shell. The bundled qemu can’t start because libpulse.so.0 and several X/xcb/GL libraries are missing, which we only found by running ldd on the qemu binary ourselves.

App Name: Kahani TV (hackathon project, not yet on the Appstore)
App Link on Amazon Appstore: N/A

Bug Severity

  • Impacts operation of app
  • Blocks current development (until the cause is found)
  • Improvement suggestion
  • Issue with documentation: the VVD setup page doesn’t list the host packages qemu needs
  • Other

2. Steps to Reproduce

  1. On Ubuntu 24.04 without desktop audio/GL packages (for example a minimal or container install), install the Vega SDK.
  2. Run vega virtual-device start --timeout 240.
  3. Wait.

3. Observed Behavior

(waits 240 s)
failed to access shell

ldd on the bundled qemu shows libpulse.so.0 => not found, plus missing libX11/xcb, libGL/libEGL and libgbm.

4. Expected Behavior

The start command checks qemu's libraries (like the Android emulator's own
checks), fails within seconds, and names the missing libraries or packages.
The setup docs list the packages.

4.a Possible Root Cause & Temporary Workaround

Root cause: qemu exits immediately for missing shared libraries; the CLI keeps
polling for a shell until the timeout.
Workaround: apt install libpulse0 libnss3 libgl1 libegl1 libgbm1 and the
libx11 / libxcb packages. After that the VVD booted in about 10 seconds.

5. Logs or crash report

ldd <sdk>/.../qemu-system-* | grep "not found"
    libpulse.so.0 => not found
    (and X11/xcb, GL, EGL, gbm libraries)

6. Environment

  • SDK Version: Vega CLI 1.4.5, Vega Virtual Device 0.24.12112
  • React Native Version: N/A (the device doesn’t boot)
  • App State: N/A
  • OS Information: host Ubuntu 24.04 (container). The VVD never booted, so vega exec vda shell isn’t available.

7. Example Code Snippet / Screenshots / Screengrabs

vega virtual-device start --timeout 240

:backhand_index_pointing_right: Playback Issues

N/A

:backhand_index_pointing_right: Additional Context

Found on the hackathon's first day, while setting up to test a Fire TV / Vega app.

Hi @akash_parashar,

Thank you for the detailed bug report on the Vega Virtual Device timing out with “failed to access shell” when qemu’s system libraries are missing - and for including the ldd output and the packages that resolved it.

Our team is investigating this issue and will provide an update as soon as we have more information.

One thing that is documented and may be relevant to your setup: the VVD runs on QEMU/KVM and requires direct hardware virtualization, so it isn’t supported inside containers or other nested-virtualization environments (Docker/WSL/VirtualBox). It can sometimes boot once the libraries are installed, as you saw, but a container is outside the supported path; for reliable testing we recommend a native Ubuntu 20.04/22.04/24.04 host or a physical Fire TV / Vega device in developer mode. (Reference: Is it possible to test a Vega app inside a VirtualBox machine running Ubuntu 24?)

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya