Dockerization of supported QEMU releases
Go to file
2020-12-03 10:33:02 -08:00
.github/workflows Use jq-template.awk 2020-08-27 16:34:48 -07:00
4.2 Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
5.0 Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
5.1 Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
5.2-rc Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
.gitattributes Fix .gitattributes specificity 2020-10-16 16:28:51 -07:00
.gitignore Use jq-template.awk 2020-08-27 16:34:48 -07:00
apply-templates.sh Use jq-template.awk 2020-08-27 16:34:48 -07:00
Dockerfile.template Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
generate-stackbrew-library.sh Use jq-template.awk 2020-08-27 16:34:48 -07:00
README.md Adjust README formatting 2020-12-03 10:33:02 -08:00
start-qemu Add QEMU_NO_VNC to start-qemu for disabling VNC 2020-05-29 10:22:38 -07:00
update.sh Use jq-template.awk 2020-08-27 16:34:48 -07:00
versions.json Add 5.2.0-rc3 2020-11-30 11:03:55 -08:00
versions.sh Use jq-template.awk 2020-08-27 16:34:48 -07:00

tianon/qemu

$ touch /home/jsmith/hda.qcow2
$ docker run -it --rm \
	--device /dev/kvm \
	--name qemu-container \
	-v /home/jsmith/hda.qcow2:/tmp/hda.qcow2 \
	-e QEMU_HDA=/tmp/hda.qcow2 \
	-e QEMU_HDA_SIZE=100G \
	-e QEMU_CPU=4 \
	-e QEMU_RAM=4096 \
	-v /home/jsmith/downloads/debian.iso:/tmp/debian.iso:ro \
	-e QEMU_CDROM=/tmp/debian.iso \
	-e QEMU_BOOT='order=d' \
	-e QEMU_PORTS='2375 2376' \
	tianon/qemu

Note: port 22 will always be mapped (regardless of the contents of QEMU_PORTS).

For supplying additional arguments, use a command of start-qemu <args>. For example, to use -curses, one would docker run ... tianon/qemu start-qemu -curses.

For UEFI support, the ovmf package is installed, which can be utilized most easily by supplying --bios /usr/share/ovmf/OVMF.fd.