Add $virtio_blk to disable VirtIO Block Media

Currently only required for macOS High Sierra and Mojave
This commit is contained in:
Martin Wimpress 2021-09-28 15:37:36 +01:00
parent f60e92d80e
commit 3527001973
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3
3 changed files with 20 additions and 4 deletions

View file

@ -147,6 +147,13 @@ EOF
if [ -n "${ISO_FILE}" ]; then
echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf"
fi
# VirtIO Block Media doesn't work in High Sierra or Mojave so use SATA
case ${RELEASE} in
high-sierra|mojave)
echo "virtio_blk=\"off\"" >> "${OS}-${RELEASE}.conf"
;;
esac
fi
}