<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtualMachineConfiguration/validateSaveRestoreSupport()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtualMachineConfiguration(im)validateSaveRestoreSupportWithError:"
  },
  "title" : "validateSaveRestoreSupport()"
}
-->

# validateSaveRestoreSupport()

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

```
func validateSaveRestoreSupport() throws
```

## 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:)`](/documentation/Virtualization/VZVirtualMachine/saveMachineStateTo(url:completionHandler:)) to fail.

---

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)