QEMU
Appearance
Building and starting a QEMU image
pmbootstrap init # Choose a qemu-* device (x86_64: amd64, arm: vexpress-soc) pmbootstrap install --no-fde 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
Qemu on Debian does not include SDL-support by default. To use pmbootstrap on Debian you have to do the following:
- Ensure that /etc/apt/sources.list contains a deb-src line for your distribution.
apt-get source qemu
(get the source code for the Debian package)cd qemu-*
- In debian/rules change common_configure_opts such that the line
--extra-ldflags="$(LDFLAGS) -Wl,--as-needed" \
to--extra-ldflags="$(LDFLAGS) -Wl,--as-needed,-rpath-link,/lib/x86_64-linux-gnu" \
and add"--enable-sdl --with-sdlabi=2.0 \
as the following line. apt-get build-dep qemu
(get build dependencies for qemu)fakeroot debian/rules binary
(compile the package)- Install the appropriate Debian packages which have been created in ..