init(url:readOnly:cachingMode:synchronizationMode:)
Initialize the attachment from a local file URL.
Declaration
init(url: URL, readOnly: Bool, cachingMode: VZDiskImageCachingMode, synchronizationMode: VZDiskImageSynchronizationMode) throwsParameters
- url:
Local file URL to the disk image in RAW format.
- readOnly:
If
true, the device attachment is read-only, otherwise the device can write data to the disk image. - cachingMode:
The cacheing mode from one of the available Vzdiskimagecachingmode options.
- synchronizationMode:
How the disk image synchronizes with the underlying storage when the guest operating system flushes data, described by one of the available Vzdiskimagesynchronizationmode modes.