UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Run without saving changes does not work for Apple VM

Open conath opened this issue 1 year ago • 2 comments

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.

conath avatar Jul 10 '22 16:07 conath

+1 - I used "Run without saving changes" and installed some software. Rebooted the VM, and the software is still there.

mikedowler avatar Aug 03 '22 13:08 mikedowler

+1 As well

jsiegers avatar Sep 20 '22 09:09 jsiegers

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.

Javdat avatar Oct 01 '22 10:10 Javdat

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

lewurm avatar Jan 25 '23 14:01 lewurm