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. |   * 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 | ### macOS compatibility | ||||||
| 
 | 
 | ||||||
|  | @ -177,7 +179,7 @@ There are some considerations when running macOS via Quickemu. | ||||||
|     * Big Sur |     * Big Sur | ||||||
|   * Optimised by default |   * Optimised by default | ||||||
|     * Host CPU vendor is detected and guest CPU configuration is optimised accordingly. |     * 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*). |     * [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*). |     * `vmxnet3` network device is used (*available since macOS El Capitan*). | ||||||
|   * USB host pass-through is limited to UHCI (USB 2.0) |   * 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) |              -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="" | ||||||
|  |  | ||||||
							
								
								
									
										7
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								quickget
									
										
									
									
									
								
							|  | @ -147,6 +147,13 @@ EOF | ||||||
|         if [ -n "${ISO_FILE}" ]; then |         if [ -n "${ISO_FILE}" ]; then | ||||||
|             echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf" |             echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf" | ||||||
|         fi |         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 |     fi | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue