Contents

VZMacPlatformConfiguration

The platform configuration for booting macOS on Apple silicon.

Declaration

class VZMacPlatformConfiguration

Mentioned in

Overview

When creating a VM, the hardwareModel and auxiliaryStorage depend on the restore image that you use to install macOS.

To choose the hardware model, start from VZMacOSRestoreImage.mostFeaturefulSupportedConfiguration to get a supported configuration, then use its VZMacOSConfigurationRequirements.hardwareModel property to get the hardware model.

Use the hardware model to set up VZMacPlatformConfiguration and to initialize a new auxiliary storage with init(creatingStorageAt:hardwareModel:options:).

When you save a VM to disk and load it again, you must restore the hardwareModel, machineIdentifier and auxiliaryStorage properties to their original values.

If you create multiple VMs from the same configuration, each should have a unique auxiliaryStorage and machineIdentifier.

Topics

Creating a platform configuration

Getting platform properties

See Also

Platform components