Contents

socketDevices

The socket device that you use to implement port-based communication with the guest operating system.

Declaration

var socketDevices: [VZSocketDeviceConfiguration] { get set }

Discussion

The default value of this property is an empty array. If your VM supports port-based communication with sockets, create a single VZVirtioSocketDeviceConfiguration object, add it to an array, and assign it to this property. After initializing the virtual machine, use the object in its socketDevices property to configure the port information and handlers.

See Also

Adding devices to the VM