---
title: validateSaveRestoreSupport()
framework: virtualization
role: symbol
role_heading: Instance Method
path: virtualization/vzvirtualmachineconfiguration/validatesaverestoresupport()
---

# validateSaveRestoreSupport()

Determines whether the framework can save or restore the VM’s current configuration.

## Declaration

```swift
func validateSaveRestoreSupport() throws
```

## Discussion

Discussion Use this method to verify that a virtual machine with this configuration is savable. Not all configuration options can be safely saved and restored from the configuration file on disk. If this method returns false, the caller should expect future calls to saveMachineStateTo(url:completionHandler:) to fail.

## See Also

### Validating the configuration

- [validate()](virtualization/vzvirtualmachineconfiguration/validate().md)
