---
title: "guestDidStop(_:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzvirtualmachinedelegate/guestdidstop(_:)"
---

# guestDidStop(_:)

Tells the delegate that the guest operating system stopped the VM.

## Declaration

```swift
optional func guestDidStop(_ virtualMachine: VZVirtualMachine)
```

## Parameters

- `virtualMachine`: The VM that called the delegate method.

## See Also

### Stopping the VM

- [virtualMachine(_:didStopWithError:)](virtualization/vzvirtualmachinedelegate/virtualmachine(_:didstopwitherror:).md)
