Documentation
¶
Overview ¶
Package clipboard configures host-guest clipboard sharing via SPICE agent.
It creates a VZVirtioConsoleDeviceConfiguration with a SPICE agent port attachment that enables bidirectional clipboard sync (text and images). Requires macOS 13+ on the host and spice-vdagent running in the guest.
Basic usage:
consoleDevice, err := clipboard.NewConfig()
if err != nil {
log.Fatal(err)
}
// Add consoleDevice to your VM configuration's console devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig() (vz.VZVirtioConsoleDeviceConfiguration, error)
NewConfig creates a Virtio console device configured for SPICE agent clipboard sharing. The returned device should be added to the VM's console device list.
Clipboard sharing only functions when the guest has spice-vdagent running. For macOS guests this requires macOS 15+ with SPICE guest tools installed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.