Public | Automated Build

Last pushed: a year ago
Short Description
Image for QEMU dependencies and development environment
Full Description

QEMU dev

This is a base image for building QEMU and qemu-plugins.

It is base on the ubuntu:14.04 image and adds QEMU dependencies, gcc/clang
compilers, libcapstone3 disassembler library.

This image is used in particular as a base build for Docker images
qemu-plugins and qemu-tutorial.

Run

Run the image with:

$ docker pull guillon/qemu-dev
$ docker run -it guillon/qemu-dev
root@container:~$

Use Image

From this image, one may clone QEMU and build it directly as it contains the
necessary build dependency (including dependencies for the qemu-plugins repo).

For instance, build a linux-user qemu-plugins for aarch64 and x86_64 with:

$ git clone --depth 1 -b next/master https://github.com/guillon/qemu-plugins
$ cd qemu-plugins
$ ./configure --disable-werror --enable-capstone --enable-tcg-plugin \
--disable-system --target-list=x86_64-linux-user,aarch64-linux-user --prefix=$PWD/devimage
$ make -j4 && make install
$ devimage/bin/qemu-x86_64 --version
qemu-x86_64 version 2.6.0-stm-5.1.0, Copyright (c) 2003-2008 Fabrice Bellard
$ echo "Hello world!" | devimage/bin/qemu-x86_64 -tcg-plugin icount /usr/bin/md5sum
59ca0efa9f5633cb0371bbc0355478d8  -
/usr/bin/md5sum (4102): number of executed instructions on CPU #0 = 187693

Modify Image

The image sources are located at https://github.com/guillon/docker-qemu-dev, actually an automated Docker hub build is setup and the images are available at https://hub.docker.com/r/guillon/qemu-dev/ when this repo is modified.

In order to rebuild the image locally, extract sources and execute the ./build.sh script which build the Docker image locally under the name guillon/dev-qemu-dev:

$ git clone https://github.com/guillon/docker-qemu-dev
$ cd docker-qemu-dev
$ ./build.sh
$ docker run -it guillon/dev-qemu-dev
...

References

Ref QEMU repository: https://github.com/qemu/qemu

Ref qemu-plugins repository: https://github.com/guillon/qemu-plugins

Ref docker-qemu-dev repository: https://github.com/guillon/docker-qemu-dev

Ref docker hub prebuilt images: https://hub.docker.com/r/guillon/qemu-dev/

Docker Pull Command
Owner
guillon
Source Repository

Comments (0)