---
title: uuid
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzusbdeviceconfiguration/uuid
---

# uuid

The device’s unique identifier.

## Declaration

```swift
var uuid: UUID { get set }
```

## Discussion

Discussion The framework autogenerates the device UUID. Before restoring the VM, you need to set the device’s UUID to the UUID of the device with the attachment at the time of saving the VM’s state.
