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

# VZVirtioConsolePortConfiguration

A class that represents the configuration options you can set on a Virtio console port.

```
class VZVirtioConsolePortConfiguration
```

## Overview

A console port is a two-way communication channel between a host [`VZSerialPortAttachment`](/documentation/Virtualization/VZSerialPortAttachment) and a VM console port. A Virtio device can have one or more attached console devices. Optionally, you can set a name for a console port and also configure a console port that the guest can use as the system console.

## Topics

### Creating a port configuration

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

Creates a new Virtio console port configuration.

### Configuring the port

[`isConsole`](/documentation/Virtualization/VZVirtioConsolePortConfiguration/isConsole)

A Boolean value that indicates whether this port is a console.

[`name`](/documentation/Virtualization/VZVirtioConsolePortConfiguration/name)

The name of the port.

## See Also

[`consoleDevices`](/documentation/Virtualization/VZVirtualMachineConfiguration/consoleDevices)

The array of console devices that you expose to the guest operating system.



---

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)