Document qcow2 + macOS SSD TRIM support further

Signed-off-by: James Cuzella <james.cuzella@lyraphase.com>
This commit is contained in:
James Cuzella 2025-05-06 02:07:08 -06:00
parent 9d3deb0222
commit beff6eb1d3
No known key found for this signature in database
GPG Key ID: 2689A459B1568D09
1 changed files with 9 additions and 1 deletions

View File

@ -158,7 +158,11 @@ processors work just fine (even for macOS Sonoma).
qemu-img create -f qcow2 mac_hdd_ng.img 256G qemu-img create -f qcow2 mac_hdd_ng.img 256G
``` ```
NOTE: Create this HDD image file on a fast SSD/NVMe disk for best results. > [!NOTE]
> Create this HDD image file on a fast SSD/NVMe disk for best results.
>
> To enable TRIM support inside macOS, you must run: `sudo trimforce enable` from
> _inside the VM_ after it boots.
* Now you are ready to install macOS 🚀 * Now you are ready to install macOS 🚀
@ -236,6 +240,10 @@ work, patience, and a bit of luck (perhaps?).
### Post-Installation ### Post-Installation
* Run `sudo trimforce enable` to enable TRIM support on the macOS hard drive. * Run `sudo trimforce enable` to enable TRIM support on the macOS hard drive.
- NOTE: This is important so the `qcow2` image remains sparse, and does not
keep growing in size, even after deleting files to free space in the VM.
- This is supported by QEMU's `qcow2` image format block driver through the
`discard=unmap,detect-zeroes=unmap` parameters.
* See [networking notes](networking-qemu-kvm-howto.txt) on how to setup networking in your VM, outbound and also inbound for remote access to your VM via SSH, VNC, etc. * See [networking notes](networking-qemu-kvm-howto.txt) on how to setup networking in your VM, outbound and also inbound for remote access to your VM via SSH, VNC, etc.