Files
freywaros/vm.sh
T
freywar 63c1720e60 Improve installation process
`meson.build` rewritten with DRY principle. `deploy.sh` added,
which deploys the image on a installation USB stick borrowed from
another project. Image name aligned with the installer's expectations.
2026-08-25 21:11:15 +03:00

19 lines
423 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
debug_flags=()
if [[ ${1:-} == '--debug' ]] || [[ ${1:-} == '-d' ]]; then
debug_flags+=(-s -S)
fi
qemu-system-x86_64 \
"${debug_flags[@]}" \
-monitor stdio \
-drive file=build/os.raw,format=raw,if=none,id=nvme0 \
-device nvme,drive=nvme0,serial=foo \
-device qemu-xhci,id=xhci,msi=off,msix=off \
-device usb-kbd,bus=xhci.0 \
-no-reboot \
-trace "*xhci*" \
-d int