mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
Apple virtualization reported snapshots as unsupported. It has no notion of them, but the pieces are there: the disks can be layered and the saved state and firmware storage are ordinary files. Add a backend that freezes a layer per drive and keeps copies of the saved state, the EFI variables and the macOS auxiliary storage beside them. The layers under a disk that is attached cannot be changed, so a running VM may only delete; everything else waits until it stops. A layer sits beside the image it belongs to and is named after it, and the saved state and firmware of a snapshot are copies named the same way. A bundle only keeps the files its configuration names, so saving the configuration would take all of them with it. Work out what the snapshots still need instead — the layer being written to, the layers of the snapshots in the bundle, and whatever lies underneath those — and keep exactly that, so anything left over is still cleaned up. When that cannot be worked out, because the manifest or a layer cannot be read, everything named after the file is kept instead. Assisted-by: Claude:claude-fable-5-1 Assisted-by: Claude:claude-opus-5