|
|
@ -476,6 +476,12 @@ function vm_boot() { |
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${guest_os}" == "freedos" ] ; then |
|
|
|
|
|
|
|
# fix for #382 |
|
|
|
|
|
|
|
SMM="on" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
disk_size="16G" |
|
|
|
disk_size="16G" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -933,7 +939,7 @@ function vm_boot() { |
|
|
|
args+=(-drive media=cdrom,index=1,file="${fixed_iso}") |
|
|
|
args+=(-drive media=cdrom,index=1,file="${fixed_iso}") |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -n "{iso}" ] && [ "${guest_os}" == "freedos" ]; then |
|
|
|
if [ -n "${iso}" ] && [ "${guest_os}" == "freedos" ]; then |
|
|
|
# FreeDOS reboots after partitioning the disk, and QEMU tries to boot from disk after first restart |
|
|
|
# FreeDOS reboots after partitioning the disk, and QEMU tries to boot from disk after first restart |
|
|
|
# This flag sets the boot order to cdrom,disk. It will persist until powering down the VM |
|
|
|
# This flag sets the boot order to cdrom,disk. It will persist until powering down the VM |
|
|
|
args+=(-boot order=dc) |
|
|
|
args+=(-boot order=dc) |
|
|
|