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

# VZSpiceAgentPortAttachment

An attachment point that enables the Spice clipboard sharing capability.

```
class VZSpiceAgentPortAttachment
```

## Topics

### Creating a shared clipboard

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

Creates a new Spice agent port attachment.

### Enabling clipboard sharing between the host and the VM

[`sharesClipboard`](/documentation/Virtualization/VZSpiceAgentPortAttachment/sharesClipboard)

A Boolean value that indicates whether the framework needs to share the clipboard between the host and the VM.

### Naming the Virtio console port for the Spice guest agent

[`spiceAgentPortName`](/documentation/Virtualization/VZSpiceAgentPortAttachment/spiceAgentPortName)

The name of the Virtio console port for the Spice guest agent.



---

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)