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
checksumstringWith 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.
cpusintegerThe image's default: 4.
From 1 to 32.
disk_gibintegerThe image's default: 32, or 64 for macos and windows.
From 4 to 2048.
displayobjectwindows: 2880x1800 at scale 2 when left out.
display.heightintegerRequiredPixels; on windows at least 720 times the scale.
From 320 to 8192.
display.scaleinteger2 draws at 200% in a window of half as many points, 1 at 100%. Default 1.
From 1 to 2.
display.widthintegerRequiredPixels; on windows a multiple of 8, at least 1024 times the scale.
From 320 to 8192.
editionstringwindows: 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.
egressobjectIts network access from its first boot.
egress.allowarray of stringsallowlist's rules, such as "example.com" or "preset:packages".
egress.modestringRequiredDefault open.
One of
open,allowlist,blocked.enginestringA 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.imagestringA 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_mediastringwindows: 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.
keyboardstringComma-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).
languagestringmacos: 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_gibintegerThe image's default: 4, or 8 for macos and windows.
From 1 to 256.
namestringRequiredLowercase letters, digits and hyphens; also the guest's host name.
passwordstringmacos 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_keystringwindows: the user's product key, only when they give one; required for home.
regionstringmacos 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_loginbooleanmacos: turn on Remote Login (SSH).
resumebooleanRun the interrupted creation of this name again; default false.
time_zonestringAn IANA time zone, such as Europe/Berlin, or for windows a Windows one; default the Mac's.
user_datastringLinux, 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_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_create/output.json
running
jobstringRequiredstatestringRequiredOne of
running.
machine
acceleratedGraphicsbooleanaccountobjectRequiredaccount.authorizedKeysarray of stringsRequiredaccount.enablesRemoteLoginbooleanRequiredaccount.userstringRequiredcameraobjectcamera.devicestringcamera.onbooleanRequiredclipboardstringRequiredOne of
off,to-guest,to-mac,both.cpuCountintegerRequiredcreatedAtstring (date-time)Requiredcreatorstringcredentialsarray of objectscredentials[].credentialstring (uuid)Requiredcredentials[].endedobjectcredentials[].expiryobject or stringRequiredOne of
machineStop,never, or an object that holds one key:at.credentials[].grantedAtstring (date-time)Requiredcredentials[].includesClonesbooleanRequiredcredentials[].placeholderstringRequireddataDisksarray of objectsdataDisks[].filestringRequireddataDisks[].fromstringRequireddataDisks[].sizeintegerRequiredAt least 0.
discstring (uri)diskBusstringOne of
nvme.diskSizeintegerRequiredAt least 0.
displayobjectdisplay.heightintegerRequireddisplay.pixelsPerInchintegerdisplay.scaleintegerRequireddisplay.widthintegerRequireddisplayCountintegeregressobjectegress.modestringRequiredOne of
open,allowlist,blocked.egress.rulesarray of stringsRequiredenginestringRequiredOne of
virtualization,hypervisor.firmwareobjectfirmware.sha256stringRequiredfirmware.versionstringRequiredfirstAgentAnswerstring (date-time)forwardsarray of objectsforwards[].gueststringRequiredforwards[].guestPortintegerRequiredAt least 0.
forwards[].hostPortintegerRequiredAt least 0.
forwards[].transportstringRequiredOne of
tcp,udp.highDynamicRangebooleanidstring (uuid)Requiredimportedobjectimported.bitLockerbooleanRequiredimported.formatstringRequiredOne of
vmdkSparse,vmdkFlat,vmdkSplitSparse,vmdkSplitFlat,vmdkStream,vmdkVMFS,hddExpanding,hddPlain,qcow2,raw,asif.imported.fromstringRequiredimported.identitystringRequiredOne of
kept,new.imported.leftBehindarray of objects or stringsRequiredEach item is one of
firmwareVariables,guestTools,appSettings, or an object that holds one key:tpm,snapshots,savedStatesorotherDisks.imported.systemstringRequiredOne of
linux,macOS,windows,freeBSD.isEphemeralbooleanRequiredjobstringRequiredkeepsMacAwakebooleanlastBuildobjectlastBuild.enginestringlastBuild.signaturestringRequiredlastBuild.versionstringRequiredmacOSobjectmacOS.listedAtstring (date-time)macOS.offerobjectmacOS.reportedAtstring (date-time)RequiredmacOS.versionstringRequiredmacOS.wayBackobjectmemorySizeintegerRequiredAt least 0.
namestringRequirednestedVirtualizationbooleannetworkobjectHolds one key:
natorvmnet.network.natobjectnetwork.vmnetobjectoperatingSystemstringRequiredOne of
linux,macOS,windows,freeBSD.originobjectorigin.keptIdentifierbooleanorigin.machinestring (uuid)Requiredorigin.namestringRequiredorigin.sharesAccessbooleanorigin.snapshotstringorigin.templateSincestring (date-time)ownedByRunbooleanownerobjectowner.processIdentifierintegerRequiredowner.startedAtstring (date-time)RequiredpartitionGrowthobjectpartitionGrowth.diskSizeintegerRequiredAt least 0.
partitionGrowth.failuresintegerRequiredpartitionGrowth.problemobjectpartitionGrowth.retriesbooleanRequiredpresetstringOne of
agent-sandbox.processorobjectprocessor.clockSpeedintegerRequiredAt least 0.
processor.manufacturerstringRequiredprocessor.midrintegerRequiredAt least 0.
processor.namestringRequiredpulledFromobjectpulledFrom.digeststringRequiredpulledFrom.publisherstringpulledFrom.pulledAtstring (date-time)RequiredpulledFrom.referencestringRequiredpulledFrom.signedBystringrecordingstringOne of
off,on,video,trajectory.requirementsobjectrequirements.cpuCountintegerRequiredrequirements.memorySizeintegerRequiredAt least 0.
rosettabooleansecureBootbooleansecurityKeybooleansharesarray of objectsRequiredshares[].eventsbooleanRequiredshares[].folderstring (uri)Requiredshares[].namestringRequiredshares[].readOnlybooleanRequiredshortcutsstringOne of
mac,pc.snapshotPolicyobjectRequiredsnapshotPolicy.beforeRevertingbooleanRequiredsnapshotPolicy.includesMemorybooleanRequiredsnapshotPolicy.keepintegerRequiredsnapshotPolicy.schedulestringRequiredOne of
never,hourly,daily.soundobjectsound.microphonebooleanRequiredsound.mutedbooleanRequiredsourceobjectsource.buildstringsource.digeststringsource.formatstringOne of
qcow2,raw,asif,xz.source.imagestringRequiredsource.installedOnstringsource.linuxLocaleobjectsource.locationstringsource.macOSLocaleobjectsource.versionstringsource.virtualSizeintegerAt least 0.
source.windowsobjectsource.xcodeobjectstartsAtLoginbooleantemplateSincestring (date-time)usbDevicesarray of objectsusbDevices[].namestringusbDevices[].productIDintegerRequiredAt least 0.
usbDevices[].serialstringusbDevices[].vendorIDintegerRequiredAt least 0.
watchdogbooleanwindowsDriversobjectwindowsDrivers.datestring (date-time)RequiredwindowsDrivers.namestringRequiredwindowsDrivers.resultsarray of objectsRequiredwindowsDrivers.setstringRequiredwindowsDrivers.snapshotstring (uuid)windowsDrivers.snapshotNamestringwindowsDriversUndonestringworkspaceobjectworkspace.bytesintegerRequiredAt least 0.
workspace.commitstringworkspace.filesintegerRequiredworkspace.folderstringRequiredworkspace.guestPathstringRequiredworkspace.historyLeftOutstringworkspace.hooksPathstringworkspace.idstring (uuid)Requiredworkspace.isGitWorkTreebooleanRequiredworkspace.lastDiffobjectworkspace.leftOutarray of objectsRequiredworkspace.objectFormatstringRequiredOne of
sha1,sha256.workspace.outstandingobjectworkspace.pushedAtstring (date-time)Requiredworkspace.snapshotsBeforearray of strings (uuid)Required
Fields nested deeper are in the schema.