---
title: VZStorageDeviceAttachment
framework: virtualization
role: symbol
role_heading: Class
path: virtualization/vzstoragedeviceattachment
---

# VZStorageDeviceAttachment

The common behaviors for storage devices in the guest system.

## Declaration

```swift
class VZStorageDeviceAttachment
```

## Overview

Overview A VZStorageDeviceAttachment object defines the implementation of a storage interface in a virtual machine. You use the attachment object to specify the source of the storage on the host computer. Don’t create VZStorageDeviceAttachment objects directly. Instead, instantiate an appropriate subclass such as VZDiskImageStorageDeviceAttachment, which provides storage using a disk image.

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [VZDiskBlockDeviceStorageDeviceAttachment](virtualization/vzdiskblockdevicestoragedeviceattachment.md)
- [VZDiskImageStorageDeviceAttachment](virtualization/vzdiskimagestoragedeviceattachment.md)
- [VZNetworkBlockDeviceStorageDeviceAttachment](virtualization/vznetworkblockdevicestoragedeviceattachment.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Attachment points

- [VZDiskBlockDeviceStorageDeviceAttachment](virtualization/vzdiskblockdevicestoragedeviceattachment.md)
- [VZDiskImageStorageDeviceAttachment](virtualization/vzdiskimagestoragedeviceattachment.md)
- [VZNetworkBlockDeviceStorageDeviceAttachment](virtualization/vznetworkblockdevicestoragedeviceattachment.md)
