v1
latestOpenAPI 3.0.02026-07-17212535.2 KBvms
Create a VM
post/vms
Request body
Example request
{
"name": "macos-tahoe-base",
"image": "ghcr.io/cirruslabs/macos-tahoe-base:latest",
"diskSize": 100,
"netSoftnetAllow": [
"192.168.0.0/24"
],
"netSoftnetBlock": [
"66.66.0.0/16"
],
"net-bridged": "en0",
"startup_script": {
"script_content": "#!/bin/zsh\n\necho $GREETING\n",
"env": {
"GREETING": "Hello, World!"
}
},
"resources": {
"org.cirruslabs.logical-cores": 4,
"org.cirruslabs.memory-mib": 8192
},
"labels": {
"model": "macstudio"
},
"hostDirs": [
{
"path": "/path/on/host/to/sources",
"ro": true
},
{
"path": "/path/on/host/to/builds"
}
]
}Response
VM resource was successfully created
Example response
{
"name": "macos-tahoe-base",
"image": "ghcr.io/cirruslabs/macos-tahoe-base:latest",
"diskSize": 100,
"netSoftnetAllow": [
"192.168.0.0/24"
],
"netSoftnetBlock": [
"66.66.0.0/16"
],
"net-bridged": "en0",
"startup_script": {
"script_content": "#!/bin/zsh\n\necho $GREETING\n",
"env": {
"GREETING": "Hello, World!"
}
},
"resources": {
"org.cirruslabs.logical-cores": 4,
"org.cirruslabs.memory-mib": 8192
},
"labels": {
"model": "macstudio"
},
"hostDirs": [
{
"path": "/path/on/host/to/sources",
"ro": true
},
{
"path": "/path/on/host/to/builds"
}
]
}