---
title: attachment
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzserialportconfiguration/attachment
---

# attachment

The object that defines how the configuration of the virtual machine’s serial port interfaces.

## Declaration

```swift
var attachment: VZSerialPortAttachment? { get set }
```

## Discussion

Discussion Assign an appropriate attachment object to this property, such as a VZFileHandleSerialPortAttachment or VZFileSerialPortAttachment object. When configuring the serial ports, the virtual machine uses the attachment to set up the serial port communications.
