mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-10 02:56:58 +00:00
19 lines
787 B
Bash
Executable File
19 lines
787 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
QEMU=$(command -v qemu-system-x86_64)
|
|
QEMU_ARGS="${QEMU_ARGS-} -smp ${QEMU_CPU} -m ${QEMU_RAM}"
|
|
QEMU_ARGS="${QEMU_ARGS-} -vga std -display vnc=:0"
|
|
QEMU_ARGS="${QEMU_ARGS-} -drive file=/var/lib/qemu/images/reactos.img,index=0,media=disk,format=${QEMU_DISK_FORMAT}"
|
|
QEMU_ARGS="${QEMU_ARGS-} -drive file=/var/lib/qemu/iso/reactos.iso,index=2,media=cdrom,format=raw"
|
|
QEMU_ARGS="${QEMU_ARGS-} -boot order=cd,menu=on,splash-time=5000"
|
|
QEMU_ARGS="${QEMU_ARGS-} -netdev user,id=n0,hostfwd=tcp::13389-:3389,hostfwd=tcp::15900-:5900 -device rtl8139,netdev=n0"
|
|
QEMU_ARGS="${QEMU_ARGS-} -usb -device usb-tablet"
|
|
QEMU_ARGS="${QEMU_ARGS-} -k ${QEMU_KEYBOARD}"
|
|
if [ "${QEMU_KVM}" = true ]; then QEMU_ARGS="${QEMU_ARGS-} -enable-kvm"; fi
|
|
|
|
cd ~/
|
|
exec 2>&1
|
|
exec "${QEMU}" ${QEMU_ARGS}
|