I host Ubuntu 16.04 on a virtual box from Windows 10. Inside Ubuntu 16.04 there is QEmu emulating an ARM processor running under Ubuntu Trusty (14.04).
When I start QEmu as follows, it shows a window titled QEMU , but a completely black client area:
qemu-system-arm -smp 2 --drive format=raw,if=sd,file=vexpress-8G.img -kernel vmlinuz-3.13.0-24-generic-lpae -initrd initrd.img-3.13.0-24-generic-lpae -M vexpress-a15 -serial stdio -m 2048 -append 'root=/dev/mmcblk0 rw mem=2048M raid=noautodetect rootwait console=ttyAMA0,38400n8 devtmpfs.mount=0' -dtb ./vexpress-v2p-ca15-tc1.dtb
The guest OS console (ARM-Ubuntu) works, boot messages are displayed in the same terminal where the qemu-system-arm command was executed. But when I type the startx command, it shows errors:
Loading extension GLX (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error
/var/log/Xorg.0.log contains the following:
[ 214.406] X.Org X Server 1.15.1 Release Date: 2014-04-13 [ 214.411] X Protocol Version 11, Revision 0 [ 214.411] Build Operating System: Linux 3.2.0-58-highbank armv7l Ubuntu [ 214.412] Current Operating System: Linux VM-Ubuntu1 3.13.0-24-generic-lpae
Below are all the steps for creating and loading an ARM-Ubuntu image (based on https://wiki.ubuntu.com/Kernel/Dev/QemuARMVexpress ):
# 1) setup the rootfs sudo apt-get install qemu-user-static qemu-system-arm mkdir vexpress cd vexpress mkdir qemu-img
I do not know if the problem was Ubuntu (software) or QEmu (hardware emulation).
source share