Request an invite
Docs menu

osmates vm suspend

Save a running machine's memory and devices to its bundle and turn it off.

Usage
osmates vm suspend <machine> [--json]

vm start resumes it where it was, also after the Mac restarts, and vm stop --discard throws the memory away. The guest agent writes the guest's cached data to its disks first when it answers. It needs the machine's memory and 1 GiB more free on the Mac. Quitting the machine's window from the Dock, or logging out of the Mac, suspends it too. A temporary machine, one still starting, one paused because its volume is full, and a Linux machine whose guest has no driver for its USB controller cannot be suspended.

Arguments

<machine>Required

The machine's identifier or name.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/vm/suspend.json

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
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.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page