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

# VZVirtioConsoleDeviceSerialPortConfiguration

A configuration object that requests the creation of a console device to communicate with the guest system.

```
class VZVirtioConsoleDeviceSerialPortConfiguration
```

## Overview

A [`VZVirtioConsoleDeviceSerialPortConfiguration`](/documentation/Virtualization/VZVirtioConsoleDeviceSerialPortConfiguration) object enables serial communication between the guest operating system and host computer through the Virtio interface. After you create this configuration object, configure its inherited [`attachment`](/documentation/Virtualization/VZSerialPortConfiguration/attachment) property with an object that defines the type of serial communication you want to enable. Use a [`VZFileHandleSerialPortAttachment`](/documentation/Virtualization/VZFileHandleSerialPortAttachment) object to enable two-way communication between the guest and host, and use a [`VZFileSerialPortAttachment`](/documentation/Virtualization/VZFileSerialPortAttachment) object to enable one-way communication from the guest to the file you designate.

## Topics

### Creating the Configuration Object

[`init()`](/documentation/Virtualization/VZVirtioConsoleDeviceSerialPortConfiguration/init())

Creates a serial port configuration object.



---

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)