Contents

VZMacMachineIdentifier

A unique identifier for a VM.

Declaration

class VZMacMachineIdentifier

Overview

This value uniquely identifies a virtual Mac hardware instance. Two VMs running concurrently shouldn’t use the same identifier.

When serializing the VM to disk, you can preserve the identifier in a binary representation by serializing the data in the VZMacMachineIdentifier.dataRepresentation property. Conversely, you can recreate the identifier with init(dataRepresentation:) from the binary representation.

You can compare the contents of two identifiers with isEqual(to:).

Topics

Creating a machine identifier

Machine data representation

See Also

Platform components