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

# attachment

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

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

## Discussion

Assign an appropriate attachment object to this property, such as a [`VZFileHandleSerialPortAttachment`](/documentation/Virtualization/VZFileHandleSerialPortAttachment) or [`VZFileSerialPortAttachment`](/documentation/Virtualization/VZFileSerialPortAttachment) object. When configuring the serial ports, the virtual machine uses the attachment to set up the serial port communications.

---

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)