Summary: Does the Android emulator work inside a VM? Or must it be run on a 
bare metal machine?

I am trying to setup some automated tests using Jenkins with the Android 
plugin. The slave is a VM (on top) of VMWare ESXi, running Ubuntu Linux (32 
bit x86). When the emulator tries to start the VM, it shows an error 
"Failed to Initialize backend EGL display" and nothing happens.

[android] Using Android SDK: /home/hudson/hudson/tools/android-sdk

[android] Creating Android AVD: 
/home/hudson/.android/avd/hudson_en-US_160_1080x1920_android-19_x86.avd

[android] /home/hudson/hudson/tools/android-sdk/tools/android create avd -f 
-a -s 1080x1920 -n hudson_en-US_160_1080x1920_android-19_x86 -t android-19 
--abi x86
[android] Setting hardware properties:
hw.ramSize: 768
vm.heapSize: 64

$ /home/hudson/hudson/tools/android-sdk/platform-tools/adb start-server

$ /home/hudson/hudson/tools/android-sdk/tools/emulator -snapshot-list 
-no-window -avd hudson_en-US_160_1080x1920_android-19_x86
[android] Starting Android emulator and creating initial snapshot
$ /home/hudson/hudson/tools/android-sdk/tools/emulator -no-boot-anim -ports 
45507,44892 -prop persist.sys.language=en -prop persist.sys.country=US -avd 
hudson_en-US_160_1080x1920_android-19_x86 -no-snapshot-load 
-no-snapshot-save -wipe-data -no-window -noaudio -gpu off
* daemon not running. starting it now on port 39784 *
* daemon started successfully *
Failed to Initialize backend EGL display
...
emulator: WARNING: Could not initialize OpenglES emulation, using software 
renderer.

I tried with different abi (x86|x86) and options (combinations of -noaudio 
-gpu off). All failing. I also tried to login to the console and launch the 
emulator manually. All I see is a black emulator window. The emulator 
process is actively running ('top' command), but I don't see the home 
screen.

Thanks,
Charles

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to