Skip to content

Instance lifecycle ​

Every lifecycle action goes through POST /api/client/powers/:hs_name/:vm_uuid or the matching resource endpoint. Long operations become async tasks.

States ​

StateMeaningAllowed
runningpowered onstop, restart, power off, pause, console
stoppedpowered offstart, reinstall, delete, edit
pausedsuspendedresume, power off
creatingtask in progressview or cancel task
errorfailedinspect task, retry, delete

Create ​

  1. Select a host (enabled and online).
  2. Select an image from images_path or platform images.
  3. Set CPU, memory, disk, bandwidth, IP count — restricted fields are hidden.
  4. Configure network and cloud-init (user, password, SSH key, runcmd).

The API returns a task ID; the console polls progress.

Power actions ​

ActionNotes
startall platforms
stopgraceful; needs guest support
poweroffhard power off
restartall platforms
resetplatform dependent
pause / resumenot supported by MuMu

Reinstall and password ​

  • Password reset uses the platform API or guest agent; QEMU requires qemu-guest-agent.
  • Reinstall rebuilds the system disk and keeps the instance record.
  • Disk transfer (POST /api/client/hdd/transfer/...) moves a data disk between instances; it is not live migration.

Delete ​

  1. Delete on the platform.
  2. Write a tombstone record.
  3. A reconciliation job confirms the platform no longer has the resource.

Retry endpoints (admin): /api/system/outbox/*, /api/system/tombstone/*.

Screenshots and console ​

  • GET /api/client/screenshot/:hs_name/:vm_uuid returns a data URL.
  • GET /api/client/remote/:hs_name/:vm_uuid returns noVNC / RDP / ADB connection details.
text
GET    /api/client/detail/:hs_name
GET    /api/client/detail/:hs_name/:vm_uuid
POST   /api/client/create/:hs_name
PUT    /api/client/update/:hs_name/:vm_uuid
POST   /api/client/powers/:hs_name/:vm_uuid
POST   /api/client/reinstall/:hs_name/:vm_uuid
DELETE /api/client/delete/:hs_name/:vm_uuid

Released under the AGPLv3 License.