mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add $virtio_blk to disable VirtIO Block Media
Currently only required for macOS High Sierra and Mojave
This commit is contained in:
parent
f60e92d80e
commit
3527001973
3 changed files with 20 additions and 4 deletions
|
@ -163,6 +163,8 @@ iso="${HOME}/Quickemu/macos-big-sur/disk.qcow2"
|
|||
```
|
||||
|
||||
* The `guest_os="macos"` line instructs Quickemu to optimise for macOS.
|
||||
* If you want to disable VirtIO Block Media and use SATA emulation add `virtio_blk="off"` to your configuration.
|
||||
* `quickget` disables VirtIO Block Media for High Sierra and Mojave by default since it is not supported on those releases.
|
||||
|
||||
### macOS compatibility
|
||||
|
||||
|
@ -177,7 +179,7 @@ There are some considerations when running macOS via Quickemu.
|
|||
* Big Sur
|
||||
* Optimised by default
|
||||
* Host CPU vendor is detected and guest CPU configuration is optimised accordingly.
|
||||
* [VirtIO block device](https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is used for the system disk (*available since macOS Mojave*).
|
||||
* [VirtIO block device](https://www.kraxel.org/blog/2019/06/macos-qemu-guest/) is used for the system disk where supported.
|
||||
* [VirtIO `usb-tablet`](http://philjordan.eu/osx-virt/) is used for the mouse (*available since macOS El Capitan*).
|
||||
* `vmxnet3` network device is used (*available since macOS El Capitan*).
|
||||
* USB host pass-through is limited to UHCI (USB 2.0)
|
||||
|
|
13
quickemu
13
quickemu
|
@ -498,9 +498,15 @@ function vm_boot() {
|
|||
-device ide-hd,bus=ahci.1,drive=InstallMedia)
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2054,SC2206
|
||||
args+=(-drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}"
|
||||
-device virtio-blk-pci,drive=SystemDisk,scsi=off ${STATUS_QUO})
|
||||
if [ "${virtio_blk}" == "on" ]; then
|
||||
# shellcheck disable=SC2054
|
||||
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
|
||||
# shellcheck disable=SC2054
|
||||
|
@ -601,6 +607,7 @@ iso=""
|
|||
port_forwards=()
|
||||
ram=""
|
||||
usb_devices=()
|
||||
virtio_blk="on"
|
||||
|
||||
DELETE=0
|
||||
FULLSCREEN=""
|
||||
|
|
7
quickget
7
quickget
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue