mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-09-01 22:10:25 +00:00
Unattended install of ReactOS
This commit is contained in:
@ -2,11 +2,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
# Create ReactOS disk
|
||||
if [ ! -f /var/lib/qemu/images/reactos.img ]; then
|
||||
qemu-img create -f qcow2 /var/lib/qemu/images/reactos.img "${VM_DISK_SIZE:?}"
|
||||
fi
|
||||
|
||||
stop() {
|
||||
for s in "${SVDIR:?}"/*; do sv force-stop "${s:?}" >/dev/null 2>&1; done
|
||||
kill -HUP "${RUNSVDIRPID:?}"; wait "${RUNSVDIRPID:?}"
|
||||
|
@ -5,10 +5,8 @@ set -eu
|
||||
set --
|
||||
set -- "$@" -smp "${VM_CPU:?}" -m "${VM_RAM:?}"
|
||||
set -- "$@" -serial stdio -monitor unix:/run/qemu-monitor,server,nowait -device VGA -display vnc=:0
|
||||
set -- "$@" -drive file=/var/lib/qemu/images/reactos.img,index=0,media=disk,format=qcow2
|
||||
set -- "$@" -drive file=/var/lib/qemu/iso/reactos.iso,index=2,media=cdrom,format=raw
|
||||
set -- "$@" -boot order="${VM_BOOT_ORDER:?}",menu=off
|
||||
set -- "$@" -netdev user,id=n0,"${VM_NET_OPTIONS:?}"
|
||||
set -- "$@" -drive file=/var/lib/qemu/reactos.qcow2,index=0,media=disk,format=qcow2
|
||||
set -- "$@" -netdev user,id=n0,"${VM_NET_OPTIONS?}"
|
||||
set -- "$@" -device e1000,netdev=n0
|
||||
set -- "$@" -usb -device usb-tablet
|
||||
set -- "$@" -k "${VM_KEYBOARD:?}"
|
||||
|
Reference in New Issue
Block a user