---
title: label
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzvirtualmachineconfiguration/label
---

# label

An optional label for the virtual machine.

## Declaration

```swift
var label: String? { get set }
```

## Discussion

Discussion The framework uses this string as part of the name of the virtual machine in some system services. The label must be non-empty, less than or equal to 64 characters in length, and contain at least one non-whitespace character.
