UTM
UTM copied to clipboard
Run without saving changes does not work for Apple VM
From pyrosousa on Discord:
Does the "Run without saving changes" work for a macOS Monterrey guest on m1?
Maybe i'm misunderstanding its function, but i was testing with some text files on my desktop and all the changes i was making (pretty simple ones) were persisting.
+1 - I used "Run without saving changes" and installed some software. Rebooted the VM, and the software is still there.
+1 As well
Seems to work as intended in macOS Monterrey on M1. You have to exit the "disposable mode", or re-open it. Reboot doesn't seem to exit it, hence you continue within the same "disposable mode". Closing the window and starting again will start a fresh one.
There is some API in the Apple hypervisor that sounds related: https://developer.apple.com/documentation/virtualization/vzdiskimagestoragedeviceattachment/3857729-init https://developer.apple.com/documentation/virtualization/vzdiskimagesynchronizationmode
VZDiskImageSynchronizationMode case none Disables data synchronization with the permanent storage.
But UTM doesn't specify a synchronizationMode
currently:
https://github.com/utmapp/UTM/blob/917ccf9c74b0b86c1523905113660f80ddb6c6ba/Configuration/UTMAppleConfigurationDrive.swift#L100-L105