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

# VZSerialPortAttachment

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

```
class VZSerialPortAttachment
```

## Overview

Don’t create a [`VZSerialPortAttachment`](/documentation/Virtualization/VZSerialPortAttachment) object directly. Instead, instantiate a concrete subclass such as [`VZFileHandleSerialPortAttachment`](/documentation/Virtualization/VZFileHandleSerialPortAttachment) to configure how the virtual machine’s serial port connects with the host computer.

---

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)