Add args array

This commit is contained in:
Rony Lee 2022-07-24 20:35:28 +08:00
parent 527588d5a2
commit 7f65402ef3
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa
qemu-system-x86_64 \
args=(
-enable-kvm \
-m 2G \
-machine q35,accel=kvm \
@ -26,3 +26,6 @@ qemu-system-x86_64 \
-device ide-hd,bus=sata.2,drive=ESP \
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
-device ide-hd,bus=sata.3,drive=InstallMedia \
)
qemu-system-x86_64 "${args[@]}"