Request an invite
Docs menu

vm_start

Start a virtual machine.

Starts a machine by name, or from a spec file, as a job; a suspended machine resumes where it was, with its clock set. wait_for agent also waits for the guest agent, which vm_exec uses, and returns the guest's addresses and whether it reaches the internet, resolves names and has its clock set. A machine whose network did not start fails with why. open_window false starts it with its window closed; its screen and input still work. A macOS machine waits while two run, and the job's progress says for which.

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

Parameters

namestringRequired

The name of a machine that vm_list shows.

networkboolean

false starts the machine once without its network device, as after a network failure; default true.

open_windowboolean

Default true.

queueboolean

Waits while two macOS machines run, or the two machines OSMates Free runs; false refuses. Default true.

wait_forstring

Default running.

One of running, agent.

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_start/output.json

running

jobstringRequired
statestringRequired

One of running.

started

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
guestobject
guest.addressesarray of objectsRequired
guest.hostnameobjectRequired
guest.kernelobjectRequired
guest.operatingSystemobjectRequired
guest.sharesRootobject
guest.timestring (date-time)
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
readinessobject
readiness.checkedAtstring (date-time)Required
readiness.clockobjectRequired

Holds one key: synced, drifted or unchecked.

readiness.networkstring or objectRequired

One of connected, noAddress, off, detached, or an object that holds one key: noDNS, isolated, tunnelUnchecked, lost, unchecked, restricted or hostOnly.

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