Dockerization of supported QEMU releases
Go to file
Tianon Gravi 0a7d8e431e Apply workaround for https://bugs.debian.org/960271
This change comes from 467d12f5c7 in the upstream kernel, and will hopefully get patched in Debian directly so we can drop this patch from our builds.
2020-05-11 10:11:39 -07:00
.github/workflows Add initial GitHub Actions CI 2020-04-29 09:08:36 -07:00
4.0 Apply workaround for https://bugs.debian.org/960271 2020-05-11 10:11:39 -07:00
4.1 Apply workaround for https://bugs.debian.org/960271 2020-05-11 10:11:39 -07:00
4.2 Apply workaround for https://bugs.debian.org/960271 2020-05-11 10:11:39 -07:00
5.0 Apply workaround for https://bugs.debian.org/960271 2020-05-11 10:11:39 -07:00
Dockerfile.template Apply workaround for https://bugs.debian.org/960271 2020-05-11 10:11:39 -07:00
generate-stackbrew-library.sh Update to 5.0.0 (GA) 2020-04-29 11:24:47 -07:00
README.md Add some notes about additional arguments and about UEFI/OVMF 2016-11-02 17:32:50 -07:00
start-qemu Adjust whitespace and naming 2018-01-16 13:17:25 -08:00
update.sh Add 5.0.0-rc4 (remove EOL 3.1) 2020-04-27 12:38:05 -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.