From postmarketOS
Revision as of 15:47, 13 November 2022 by Newbyte (talk | contribs) (Reverted edits by Minecrell (talk) to last revision by IdanHoro)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Building and starting a QEMU image

$ pmbootstrap init  # Choose a qemu-* device (x86_64: amd64, arm: vexpress-soc)
$ pmbootstrap install
$ pmbootstrap qemu --image-size=2G

Note: The amd64 version is recommended if you don't know which one to choose. See the device specific pages (links below) for the differences.

The --image-size=2G parameter will increase the image size to 2GB, so you don't instantly run out of space (by default the image size is as small as possible). Check out pmbootstrap qemu --help for more options, such as performance tweaks.

QEMU on Debian stretch

Note This is only needed if you want to use --host-qemu, otherwise Alpine's QEMU will be used.
Note This also applies to Ubuntu Artful and below, Bionic likely will not have it enabled either - Launchpad bug.

QEMU on Debian does not include SDL-support by default. To use pmbootstrap on Debian you have to do the following:

  1. Ensure that /etc/apt/sources.list contains a deb-src line for Debian buster or later.
  2. sudo apt-get build-dep libvirglrenderer-dev/buster (install build dependencies for libvirglrenderer)
  3. fakeroot apt-get -b source libvirglrenderer-dev/buster (download and build libvirglrenderer)
  4. sudo dpkg -i libvirglrenderer0_0.6.0-2_amd64.deb libvirglrenderer-dev_0.6.0-2_amd64.deb (install it)
  5. sudo apt-get build-dep qemu/buster
  6. fakeroot apt-get -b source qemu/buster
  7. Install the appropriate qemu Debian packages which have been created in the current directory.

See also