<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZDiskImageStorageDeviceAttachment/isReadOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZDiskImageStorageDeviceAttachment(py)readOnly"
  },
  "title" : "isReadOnly"
}
-->

# isReadOnly

A Boolean value that indicates whether the underlying disk image is read-only.

```
var isReadOnly: Bool { get }
```

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the guest operating system may read the contents of the disk image, but may not write to it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)