---
title: VZVirtioConsoleDeviceSerialPortConfiguration
framework: virtualization
role: symbol
role_heading: Class
path: virtualization/vzvirtioconsoledeviceserialportconfiguration
---

# VZVirtioConsoleDeviceSerialPortConfiguration

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

## Declaration

```swift
class VZVirtioConsoleDeviceSerialPortConfiguration
```

## Overview

Overview A 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 property with an object that defines the type of serial communication you want to enable. Use a VZFileHandleSerialPortAttachment object to enable two-way communication between the guest and host, and use a VZFileSerialPortAttachment object to enable one-way communication from the guest to the file you designate.

## Topics

### Creating the Configuration Object

- [init()](virtualization/vzvirtioconsoledeviceserialportconfiguration/init().md)

## Relationships

### Inherits From

- [VZSerialPortConfiguration](virtualization/vzserialportconfiguration.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Configurations

- [VZSerialPortConfiguration](virtualization/vzserialportconfiguration.md)
