---
title: VZSerialPortAttachment
framework: virtualization
role: symbol
role_heading: Class
path: virtualization/vzserialportattachment
---

# VZSerialPortAttachment

The common behaviors for the serial attachment points of your virtual machine.

## Declaration

```swift
class VZSerialPortAttachment
```

## Overview

Overview Don’t create a VZSerialPortAttachment object directly. Instead, instantiate a concrete subclass such as VZFileHandleSerialPortAttachment to configure how the virtual machine’s serial port connects with the host computer.

## Relationships

### Inherits From

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

### Inherited By

- [VZFileHandleSerialPortAttachment](virtualization/vzfilehandleserialportattachment.md)
- [VZFileSerialPortAttachment](virtualization/vzfileserialportattachment.md)
- [VZSpiceAgentPortAttachment](virtualization/vzspiceagentportattachment.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

- [VZFileHandleSerialPortAttachment](virtualization/vzfilehandleserialportattachment.md)
- [VZFileSerialPortAttachment](virtualization/vzfileserialportattachment.md)
