vm_revert
Revert a virtual machine to a snapshot.
Returns a machine to a snapshot, as a job. Everything the machine wrote since the snapshot is lost. A running machine is turned off without shutting down, so writes to shared folders it hadn't finished are lost too. A snapshot with memory resumes the machine where it was, with the processors, memory and display it had then. OSMates first snapshots the machine as it is, unless its policy says not to; the result names that snapshot.
- Profiles
- operator, full
- Read-only
- No
- Destructive
- Yes
- Idempotent
- No
- Open world
- No
- Runs as a task
- Optional
Parameters
snapshotstringRequiredThe snapshot's name or identifier.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
wait_secondsintegerSeconds 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_revert/output.json
running
jobstringRequiredstatestringRequiredOne of
running.
reverted
jobstringRequirednotSavedBecausestringsavedBeforeobjectsavedBefore.createdAtstring (date-time)RequiredsavedBefore.discstring (uri)savedBefore.discControllerbooleansavedBefore.firmwareobjectsavedBefore.frameworkSoundobjectsavedBefore.guestToolsbooleansavedBefore.hardwareobjectRequiredsavedBefore.hostBuildstringsavedBefore.idstring (uuid)RequiredsavedBefore.includesMemorybooleanRequiredsavedBefore.isCrashConsistentbooleanRequiredsavedBefore.isKeptbooleanRequiredsavedBefore.namestringRequiredsavedBefore.networkPathstringOne of
direct,detached,filtered.savedBefore.originstring or objectRequiredOne of
manual, or an object that holds one key:agentSession,agent,beforeRevert,schedule,beforeUpdate,beforeDrivers,guest,beforeGuestRevert,codeSession,beforeMacOSUpdateorbeforeFirmwareUpdate.savedBefore.partitionGrowthobjectsavedBefore.rosettabooleansavedBefore.windowsDriversobjectsavedBefore.withoutNetworkbooleanRequiredstatusobjectRequiredstatus.canSuspendbooleanRequiredstatus.controlobjectstatus.detailstringstatus.displayobjectstatus.failureobjectstatus.idstring (uuid)Requiredstatus.namestringRequiredstatus.pauseReasonstring or objectOne of
person,hostAsleep, or an object that holds one key:volumeFull,volumeLowortpmStateUnsaved.status.shutdownWaitobjectstatus.startWaitobjectstatus.statestringRequiredOne of
starting,running,paused,stopping,stopped,failed,suspended,offline.status.suspensionobjectstatus.updatedAtstring (date-time)Requiredstatus.workerBuildstringstatus.workerProcessIdentifierinteger
Fields nested deeper are in the schema.