|
|
@ -498,9 +498,15 @@ function vm_boot() { |
|
|
|
-device ide-hd,bus=ahci.1,drive=InstallMedia) |
|
|
|
-device ide-hd,bus=ahci.1,drive=InstallMedia) |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC2054,SC2206 |
|
|
|
if [ "${virtio_blk}" == "on" ]; then |
|
|
|
args+=(-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" |
|
|
|
# shellcheck disable=SC2054 |
|
|
|
-device virtio-blk-pci,drive=SystemDisk,scsi=off ${STATUS_QUO}) |
|
|
|
args+=(-device virtio-blk-pci,drive=SystemDisk,scsi=off |
|
|
|
|
|
|
|
-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO}) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
# shellcheck disable=SC2054,SC2206 |
|
|
|
|
|
|
|
args+=(-device ide-hd,bus=ahci.2,drive=SystemDisk |
|
|
|
|
|
|
|
-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO}) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${fixed_iso}" ]; then |
|
|
|
if [ -n "${fixed_iso}" ]; then |
|
|
|
# shellcheck disable=SC2054 |
|
|
|
# shellcheck disable=SC2054 |
|
|
@ -601,6 +607,7 @@ iso="" |
|
|
|
port_forwards=() |
|
|
|
port_forwards=() |
|
|
|
ram="" |
|
|
|
ram="" |
|
|
|
usb_devices=() |
|
|
|
usb_devices=() |
|
|
|
|
|
|
|
virtio_blk="on" |
|
|
|
|
|
|
|
|
|
|
|
DELETE=0 |
|
|
|
DELETE=0 |
|
|
|
FULLSCREEN="" |
|
|
|
FULLSCREEN="" |
|
|
|