Jump to content

Pmbootstrap/Troubleshooting/QEMU

From postmarketOS Wiki
Revision as of 19:26, 14 March 2020 by Minecrell (talk | contribs) (Remove various options that no longer exist)

This page is about debugging problems with pmbootstrap qemu.

"Booting the kernel." displayed forever or segfault

By default, serial output is available in the terminal where you have run pmbootstrap qemu. Check it for indications why something is wrong.

Alternative display options

GTK instead of SDL

The virtual machine's output window can be drawn with either SDL or GTK. The default is SDL, and in case that does not work, you can try to switch to GTK:

$ pmbootstrap qemu --display=gtk

Disable OpenGL

Note Some user interfaces may not work properly with OpenGL disabled.

Graphics rendering with OpenGL is enabled by default. You can disable it (and fall back to slow(!!) software rendering using:

$ pmbootstrap qemu --no-gl

Using QEMU from the host system

Since !1612, pmbootstrap is using the QEMU binary from the Alpine chroots. That way you don't have to install QEMU on your host system and everybody uses the same version. However, for debugging purpose you might want to use the QEMU binaries from your host system instead:

$ pmbootstrap qemu --host-qemu

See also

  • QEMU
  • #1623 pmbootstrap qemu with proprietary nvidia drivers
  • #1641 pmbootstrap qemu booting the kernel for ever (with screenshot)