Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ func createVZDiskImageStorageDeviceAttachment(url: URL, readOnly: Bool, guestTyp
// fixes this IO errors and disk corruption issues for Linux guest.
return try VZDiskImageStorageDeviceAttachment(url: url, readOnly: readOnly, cachingMode: .cached, synchronizationMode: .fsync)
} else {
return try VZDiskImageStorageDeviceAttachment(url: url, readOnly: readOnly)
// macOS guests also need cached mode to prevent APFS corruption under heavy I/O.
// See: UTM #4840, Lima VM #1957
return try VZDiskImageStorageDeviceAttachment(url: url, readOnly: readOnly, cachingMode: .cached, synchronizationMode: .fsync)
}
}

Expand Down