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

# pause()

Pauses a running VM and notifies the specified completion handler of the results.

```
func pause() async throws
```

## Discussion

Call this method to pause a VM that’s in the [`VZVirtualMachine.State.running`](/documentation/Virtualization/VZVirtualMachine/State-swift.enum/running) state. To determine if a VM is in a state that allows you to pause it, check the VM’s [`canPause`](/documentation/Virtualization/VZVirtualMachine/canPause) property.

If the VM stops before the attempt to pause it finishes, this method calls the completion handler with an error.

---

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)