macos-qemu-rpi
macos-qemu-rpi copied to clipboard
QEMU window shows error "Guest has not initialized the display (yet)"
I first installed with ./install.sh
and everything seemed to go well. Then I started with ./run.sh
. While I did see at least one error ([FAILED] Failed to start rng-tools.service.
) everything else appeared to boot normally. I was left with a login prompt and was able to log in with default raspbian credentials. Another window popped up labeled QEMU and the screen was simply black with the message, "Guest has not initialized the display (yet)". I am unable to do anything in the QEMU window. If I enter the command startx
in the terminal window where I logged in as the user pi, it just says, "command not found."
I see here on the page you link to an image showing the raspbian GUI in the QEMU window. How do I get this? What am I missing?
Thanks!
Hey, @fivestones , the script installs the Raspbian Buster Lite image, which doesn't include a GUI, and therefore startx
is missing:
https://github.com/faf0/macos-qemu-rpi/blob/5de69abc88a79465cab86887667d602f57a2cd38/install.sh#L6
That image is meant to be used over SSH. If you replace it by the desktop version of Raspbian buster, I expect it will work, but I haven't tested that.
You'd also need to update: https://github.com/faf0/macos-qemu-rpi/blob/5de69abc88a79465cab86887667d602f57a2cd38/install.sh#L5
Info about Raspbian images: https://www.raspberrypi.org/downloads/raspbian/
Trying the latest full raspbian with GUI - 2020-02-13-raspbian-buster-full - still results in:
Guest has not initialized the display (yet)
...on the QEMU window.
I also get:
[FAILED] Failed to start Light Display Manager. See 'systemctl status lightdm.service' for details.
$ systemctl status lightdm.service
● lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset:
Active: activating (start) since Fri 2020-10-23 12:03:14 BST; 1s ago
Docs: man:lightdm(1)
Process: 747 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager
Main PID: 749 (lightdm)
Memory: 428.0K
CGroup: /system.slice/lightdm.service
└─749 /usr/sbin/lightdm
If anyone has any clues to get this working, I would be grateful. Have also tried to VNC in without any luck.
Hi @cannyboy , I updated the images and kernel in the scripts. Note that by default the Lite image is loaded, which doesn't come with a desktop environment. You might try to modify the scripts to use the full image instead, as you did previously.