2023-06-02 18:40:24 +03:00
|
|
|
#!/bin/bash
|
2022-11-12 21:04:47 +02:00
|
|
|
set -e
|
2023-09-09 22:52:03 +03:00
|
|
|
|
2023-10-16 01:37:57 +03:00
|
|
|
if [ -z ${OVMF_PATH+x} ]; then
|
|
|
|
OVMF_PATH="/usr/share/ovmf/x64/OVMF.fd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$UEFI_BOOT" == "1" ]; then
|
|
|
|
BIOS_ARGS="-bios $OVMF_PATH -net none"
|
|
|
|
fi
|
|
|
|
|
2023-10-12 21:53:48 +03:00
|
|
|
qemu-system-$BANAN_ARCH \
|
|
|
|
-m 128 \
|
|
|
|
-smp 2 \
|
2023-10-16 01:37:57 +03:00
|
|
|
$BIOS_ARGS \
|
2023-10-12 21:53:48 +03:00
|
|
|
-drive format=raw,id=disk,file=${DISK_IMAGE_PATH},if=none \
|
|
|
|
-device ahci,id=ahci \
|
|
|
|
-device ide-hd,drive=disk,bus=ahci.0 \
|
|
|
|
$@ \
|