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

# VZGenericMachineIdentifier

An object that represents a unique identifier for a virtual machine.

```
class VZGenericMachineIdentifier
```

## Overview

Use the data representation in [`dataRepresentation`](/documentation/Virtualization/VZGenericMachineIdentifier/dataRepresentation) to save the VM’s identifier. To restore a previously saved identifier use [`init(dataRepresentation:)`](/documentation/Virtualization/VZGenericMachineIdentifier/init(dataRepresentation:)).

## Topics

### Creating a Machine Identifier

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

Creates a new unique identifier for a VM.

[`init(dataRepresentation:)`](/documentation/Virtualization/VZGenericMachineIdentifier/init(dataRepresentation:))

Creates a new unique identifier for a VM with the provided data.

### Getting Information About the Machine Identifier

[`dataRepresentation`](/documentation/Virtualization/VZGenericMachineIdentifier/dataRepresentation)

An opaque data representation of the VM’s identifier.



---

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)