Request an invite
Docs menu

vm_suspend

Suspend a virtual machine.

Saves a running machine's memory and devices to its bundle and turns it off, as a job; vm_start resumes it where it was, also after the Mac restarts. The guest agent writes the guest's cached data to its disks first when it answers. The result says when the memory was saved and how much it takes. It needs the machine's memory and 1 GiB more free on the Mac. A temporary machine, one that is still starting or one paused because its volume is full cannot be suspended, nor a Linux machine whose guest has no driver for its USB controller; the refusal says why.

Profiles
operator, full
Read-only
No
Destructive
No
Idempotent
No
Open world
No
Runs as a task
Optional

Parameters

vmstringRequired

The machine's name or identifier, as vm_list shows it.

wait_secondsinteger

Seconds to wait before answering with a job to follow; default 20.

From 0 to 30.

Output

The result's structured content is one of these objects.

JSON Schema: /schemas/0/mcp/tools/vm_suspend/output.json

running

jobstringRequired
statestringRequired

One of running.

suspended

canSuspendbooleanRequired
controlobject
control.holderstringRequired
control.isPausedbooleanRequired
control.namestringRequired
detailstring
displayobject
display.heightintegerRequired
display.pixelsPerInchinteger
display.scaleintegerRequired
display.widthintegerRequired
failureobject
failure.actionsarray of objectsRequired
failure.codestring
failure.kindstringRequired

One of failed, temporary, wrongInput.

failure.messagestringRequired
idstring (uuid)Required
jobstringRequired
namestringRequired
pauseReasonstring or object

One of person, hostAsleep, or an object that holds one key: volumeFull, volumeLow or tpmStateUnsaved.

pauseReason.volumeFullobject
pauseReason.volumeLowobject
pauseReason.tpmStateUnsavedobject
shutdownWaitobject
shutdownWait.percentinteger
shutdownWait.sincestring (date-time)Required
shutdownWait.workstringRequired

One of shuttingDown, installingUpdates.

startWaitobject
startWait.limitstringRequired

One of macOS, edition.

startWait.placeintegerRequired
startWait.runningarray of stringsRequired
startWait.sincestring (date-time)Required
statestringRequired

One of starting, running, paused, stopping, stopped, failed, suspended, offline.

suspensionobject
suspension.bytesintegerRequired

At least 0.

suspension.discControllerboolean
suspension.flushedbooleanRequired
suspension.frameworkSoundobject
suspension.guestToolsboolean
suspension.hostBuildstring
suspension.networkPathstringRequired

One of direct, detached, filtered.

suspension.rosettaboolean
suspension.savedAtstring (date-time)Required
suspension.withoutNetworkbooleanRequired
updatedAtstring (date-time)Required
workerBuildstring
workerProcessIdentifierinteger

Fields nested deeper are in the schema.

Report a problem with this page