Adjust README formatting

This commit is contained in:
Tianon Gravi 2020-12-03 10:33:02 -08:00
parent de840b8932
commit 712b0be43a

View File

@ -1,19 +1,21 @@
# tianon/qemu # tianon/qemu
touch /home/jsmith/hda.qcow2 ```console
docker run -it --rm \ $ touch /home/jsmith/hda.qcow2
--device /dev/kvm \ $ docker run -it --rm \
--name qemu-container \ --device /dev/kvm \
-v /home/jsmith/hda.qcow2:/tmp/hda.qcow2 \ --name qemu-container \
-e QEMU_HDA=/tmp/hda.qcow2 \ -v /home/jsmith/hda.qcow2:/tmp/hda.qcow2 \
-e QEMU_HDA_SIZE=100G \ -e QEMU_HDA=/tmp/hda.qcow2 \
-e QEMU_CPU=4 \ -e QEMU_HDA_SIZE=100G \
-e QEMU_RAM=4096 \ -e QEMU_CPU=4 \
-v /home/jsmith/downloads/debian.iso:/tmp/debian.iso:ro \ -e QEMU_RAM=4096 \
-e QEMU_CDROM=/tmp/debian.iso \ -v /home/jsmith/downloads/debian.iso:/tmp/debian.iso:ro \
-e QEMU_BOOT='order=d' \ -e QEMU_CDROM=/tmp/debian.iso \
-e QEMU_PORTS='2375 2376' \ -e QEMU_BOOT='order=d' \
tianon/qemu -e QEMU_PORTS='2375 2376' \
tianon/qemu
```
Note: port 22 will always be mapped (regardless of the contents of `QEMU_PORTS`). Note: port 22 will always be mapped (regardless of the contents of `QEMU_PORTS`).