qemu 不显示 gui,尽管通过了 -display gtk 选项

qemu does not display gui that despite passed -display gtk option

我想 运行 debian on qemu on macOS 以了解模拟器。

我用自制软件安装了它。 brew install qemu --with-vde --with-sdl2 --with-gtk+3 --with-libssh2 然后我在 qemu 上尝试了 运行 debian。 但是不显示gui。

qemu-img create -f qcow2 os.img 6G
qemu-system-x86_64 -display gtk -m 4096 -hda os.img -cdrom debian-9.5.0.iso -boot d

我如何 运行 debian 与 qemu?

不要尝试在 OSX 上使用 GTK UI。唯一支持的显示选项是默认的 Cocoa 选项。 (理想情况下,我们应该让配置不允许您构建 GTK UI,因为它不起作用。)