Request an invite
Docs menu

osmates snapshot create

Snapshot a machine's disk, and its memory with --memory.

Usage
osmates snapshot create <machine> [--name <name>] [--memory] [--json]

A running machine pauses for the snapshot and then keeps running: for a fraction of a second, longer for a disk image in many pieces, which vm info reports and vm compact fixes, and about half a second more per GiB of memory in use with --memory.

Arguments

<machine>Required

The machine's name or identifier.

--name <name>

A name for the snapshot. Default: the time.

--memory

Also save the machine's memory, so that reverting resumes it where it was. It must be running or suspended.

--json

Print machine-readable JSON.

JSON output

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

JSON Schema: /schemas/0/cli/snapshot/create.json

createdAtstring (date-time)Required
discstring (uri)
discControllerboolean
firmwareobject
firmware.sha256stringRequired
firmware.versionstringRequired
frameworkSoundobject
frameworkSound.playsbooleanRequired
frameworkSound.recordsbooleanRequired
frameworkSound.sourceboolean
guestToolsboolean
hardwareobjectRequired
hardware.cpuCountintegerRequired
hardware.diskSizeintegerRequired

At least 0.

hardware.displayobject
hardware.memorySizeintegerRequired

At least 0.

hardware.nestedVirtualizationboolean
hardware.processorobject
hostBuildstring
idstring (uuid)Required
includesMemorybooleanRequired
isCrashConsistentbooleanRequired
isKeptbooleanRequired
namestringRequired
networkPathstring

One of direct, detached, filtered.

originstring or objectRequired

One of manual, or an object that holds one key: agentSession, agent, beforeRevert, schedule, beforeUpdate, beforeDrivers, guest, beforeGuestRevert, codeSession, beforeMacOSUpdate or beforeFirmwareUpdate.

origin.agentSessionobject
origin.agentobject
origin.beforeRevertobject
origin.scheduleobject
origin.beforeUpdateobject
origin.beforeDriversobject
origin.guestobject
origin.beforeGuestRevertobject
origin.codeSessionobject
origin.beforeMacOSUpdateobject
origin.beforeFirmwareUpdateobject
partitionGrowthobject
partitionGrowth.diskSizeintegerRequired

At least 0.

partitionGrowth.failuresintegerRequired
partitionGrowth.problemstring
partitionGrowth.retriesbooleanRequired
rosettaboolean
windowsDriversobject
windowsDrivers.datestring (date-time)Required
windowsDrivers.namestringRequired
windowsDrivers.resultsarray of objectsRequired
windowsDrivers.setstringRequired
windowsDrivers.snapshotstring (uuid)
windowsDrivers.snapshotNamestring
withoutNetworkbooleanRequired

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