Request an invite
Docs menu

vm_create

Create a virtual machine.

Creates a virtual machine from an image without starting it: a Linux image such as debian-13, an arm64 Linux disk image by https URL with checksum or by path, macos for the newest macOS this Mac runs or one from an IPSW file, or windows for Windows 11 from an ISO image. debian-13-desktop (Debian with Xfce), omarchy (Arch Linux with Hyprland) and fedora-44-workstation-iso (GNOME) are desktops that sign in by themselves. Other images ending in -iso install from the distribution's official ISO; linux-iso is the person's to install by hand. Resources left out take the image's defaults. The first machine from an image downloads it; macos downloads tens of GB, installs for several minutes and boots once to set up its account, agent, locale and U.S. keyboard; windows installs for about 20 minutes. An interrupted creation, which vm_list shows, goes on with resume or goes with vm_delete.

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

Parameters

checksumstring

With an image URL: sha256:<hex>, sha512:<hex>, or the https URL of the vendor's checksum file. Required; a missing one's error names the file found beside the image.

cpusinteger

The image's default: 4.

From 1 to 32.

disk_gibinteger

The image's default: 32, or 64 for macos and windows.

From 4 to 2048.

displayobject

windows: 2880x1800 at scale 2 when left out.

display.heightintegerRequired

Pixels; on windows at least 720 times the scale.

From 320 to 8192.

display.scaleinteger

2 draws at 200% in a window of half as many points, 1 at 100%. Default 1.

From 1 to 2.

display.widthintegerRequired

Pixels; on windows a multiple of 8, at least 1024 times the scale.

From 320 to 8192.

editionstring

windows: pro (default), home, home-single-language, pro-workstations, pro-education, education or enterprise; the last four install Pro and upgrade at its first sign-in.

egressobject

Its network access from its first boot.

egress.allowarray of strings

allowlist's rules, such as "example.com" or "preset:packages".

egress.modestringRequired

Default open.

One of open, allowlist, blocked.

enginestring

A Linux cloud image: virtualization for Apple Virtualization, the default, or hypervisor for the OSMates engine, with battery and sound, without Rosetta.

One of virtualization, hypervisor.

imagestring

A catalog image (default debian-13; debian-13-desktop or omarchy for desktop apps), the https URL of an arm64 Linux disk image (qcow2, RAW, xz or ASIF), or its absolute path on this Mac, which asks the person.

installation_mediastring

windows: the path of Microsoft's Windows 11 multi-edition ISO for Arm64, read before its copy. macos: an IPSW file instead of the newest macOS. With resume: the file again.

keyboardstring

Comma-separated, the first in use; default US. macos: Apple's layouts, such as Dvorak or com.apple.keylayout.French. linux: at most 4 layouts such as fr or us(dvorak). windows: keyboard IDs (0000040C), LANGID:KLID pairs or languages (fr).

languagestring

macos: languages, comma-separated, such as en-GB,fr, the first the menus'; default the Mac's. linux: one, such as de; default the Mac's. windows: a display language the ISO holds, such as de-DE; default the ISO's.

memory_gibinteger

The image's default: 4, or 8 for macos and windows.

From 1 to 256.

namestringRequired

Lowercase letters, digits and hyphens; also the guest's host name.

passwordstring

macos and windows: the account's password, kept in the Keychain for vm_sign_in. Required for windows, and for macos unless an IPSW older than macOS 27 is handed, which runs Setup Assistant on the screen without it.

product_keystring

windows: the user's product key, only when they give one; required for home.

regionstring

macos and linux: a region such as GB, or a locale such as en_GB. windows: region formats, such as en-DE. Default the Mac's.

remote_loginboolean

macos: turn on Remote Login (SSH).

resumeboolean

Run the interrupted creation of this name again; default false.

time_zonestring

An IANA time zone, such as Europe/Berlin, or for windows a Windows one; default the Mac's.

user_datastring

Linux, but not omarchy or an -iso image: cloud-init user-data, such as a #cloud-config document, applied at the first boot with the account and agent OSMates sets up.

At most 1048576 characters.

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

running

jobstringRequired
statestringRequired

One of running.

machine

acceleratedGraphicsboolean
accountobjectRequired
account.authorizedKeysarray of stringsRequired
account.enablesRemoteLoginbooleanRequired
account.userstringRequired
cameraobject
camera.devicestring
camera.onbooleanRequired
clipboardstringRequired

One of off, to-guest, to-mac, both.

cpuCountintegerRequired
createdAtstring (date-time)Required
creatorstring
credentialsarray of objects
credentials[].credentialstring (uuid)Required
credentials[].endedobject
credentials[].expiryobject or stringRequired

One of machineStop, never, or an object that holds one key: at.

credentials[].grantedAtstring (date-time)Required
credentials[].includesClonesbooleanRequired
credentials[].placeholderstringRequired
dataDisksarray of objects
dataDisks[].filestringRequired
dataDisks[].fromstringRequired
dataDisks[].sizeintegerRequired

At least 0.

discstring (uri)
diskBusstring

One of nvme.

diskSizeintegerRequired

At least 0.

displayobject
display.heightintegerRequired
display.pixelsPerInchinteger
display.scaleintegerRequired
display.widthintegerRequired
displayCountinteger
egressobject
egress.modestringRequired

One of open, allowlist, blocked.

egress.rulesarray of stringsRequired
enginestringRequired

One of virtualization, hypervisor.

firmwareobject
firmware.sha256stringRequired
firmware.versionstringRequired
firstAgentAnswerstring (date-time)
forwardsarray of objects
forwards[].gueststringRequired
forwards[].guestPortintegerRequired

At least 0.

forwards[].hostPortintegerRequired

At least 0.

forwards[].transportstringRequired

One of tcp, udp.

highDynamicRangeboolean
idstring (uuid)Required
importedobject
imported.bitLockerbooleanRequired
imported.formatstringRequired

One of vmdkSparse, vmdkFlat, vmdkSplitSparse, vmdkSplitFlat, vmdkStream, vmdkVMFS, hddExpanding, hddPlain, qcow2, raw, asif.

imported.fromstringRequired
imported.identitystringRequired

One of kept, new.

imported.leftBehindarray of objects or stringsRequired

Each item is one of firmwareVariables, guestTools, appSettings, or an object that holds one key: tpm, snapshots, savedStates or otherDisks.

imported.systemstringRequired

One of linux, macOS, windows, freeBSD.

isEphemeralbooleanRequired
jobstringRequired
keepsMacAwakeboolean
lastBuildobject
lastBuild.enginestring
lastBuild.signaturestringRequired
lastBuild.versionstringRequired
macOSobject
macOS.listedAtstring (date-time)
macOS.offerobject
macOS.reportedAtstring (date-time)Required
macOS.versionstringRequired
macOS.wayBackobject
memorySizeintegerRequired

At least 0.

namestringRequired
nestedVirtualizationboolean
networkobject

Holds one key: nat or vmnet.

network.natobject
network.vmnetobject
operatingSystemstringRequired

One of linux, macOS, windows, freeBSD.

originobject
origin.keptIdentifierboolean
origin.machinestring (uuid)Required
origin.namestringRequired
origin.sharesAccessboolean
origin.snapshotstring
origin.templateSincestring (date-time)
ownedByRunboolean
ownerobject
owner.processIdentifierintegerRequired
owner.startedAtstring (date-time)Required
partitionGrowthobject
partitionGrowth.diskSizeintegerRequired

At least 0.

partitionGrowth.failuresintegerRequired
partitionGrowth.problemobject
partitionGrowth.retriesbooleanRequired
presetstring

One of agent-sandbox.

processorobject
processor.clockSpeedintegerRequired

At least 0.

processor.manufacturerstringRequired
processor.midrintegerRequired

At least 0.

processor.namestringRequired
pulledFromobject
pulledFrom.digeststringRequired
pulledFrom.publisherstring
pulledFrom.pulledAtstring (date-time)Required
pulledFrom.referencestringRequired
pulledFrom.signedBystring
recordingstring

One of off, on, video, trajectory.

requirementsobject
requirements.cpuCountintegerRequired
requirements.memorySizeintegerRequired

At least 0.

rosettaboolean
secureBootboolean
securityKeyboolean
sharesarray of objectsRequired
shares[].eventsbooleanRequired
shares[].folderstring (uri)Required
shares[].namestringRequired
shares[].readOnlybooleanRequired
shortcutsstring

One of mac, pc.

snapshotPolicyobjectRequired
snapshotPolicy.beforeRevertingbooleanRequired
snapshotPolicy.includesMemorybooleanRequired
snapshotPolicy.keepintegerRequired
snapshotPolicy.schedulestringRequired

One of never, hourly, daily.

soundobject
sound.microphonebooleanRequired
sound.mutedbooleanRequired
sourceobject
source.buildstring
source.digeststring
source.formatstring

One of qcow2, raw, asif, xz.

source.imagestringRequired
source.installedOnstring
source.linuxLocaleobject
source.locationstring
source.macOSLocaleobject
source.versionstring
source.virtualSizeinteger

At least 0.

source.windowsobject
source.xcodeobject
startsAtLoginboolean
templateSincestring (date-time)
usbDevicesarray of objects
usbDevices[].namestring
usbDevices[].productIDintegerRequired

At least 0.

usbDevices[].serialstring
usbDevices[].vendorIDintegerRequired

At least 0.

watchdogboolean
windowsDriversobject
windowsDrivers.datestring (date-time)Required
windowsDrivers.namestringRequired
windowsDrivers.resultsarray of objectsRequired
windowsDrivers.setstringRequired
windowsDrivers.snapshotstring (uuid)
windowsDrivers.snapshotNamestring
windowsDriversUndonestring
workspaceobject
workspace.bytesintegerRequired

At least 0.

workspace.commitstring
workspace.filesintegerRequired
workspace.folderstringRequired
workspace.guestPathstringRequired
workspace.historyLeftOutstring
workspace.hooksPathstring
workspace.idstring (uuid)Required
workspace.isGitWorkTreebooleanRequired
workspace.lastDiffobject
workspace.leftOutarray of objectsRequired
workspace.objectFormatstringRequired

One of sha1, sha256.

workspace.outstandingobject
workspace.pushedAtstring (date-time)Required
workspace.snapshotsBeforearray of strings (uuid)Required

Fields nested deeper are in the schema.

Report a problem with this page