Corevelos

Volumes

Persistent virtiofs storage that outlives any one VM, mounted at boot and billed until deleted.

A volume is persistent storage that outlives any single machine: a virtiofs export mounted into the guest at boot. Use volumes for data that must survive kills, pauses, machine replacements, and template changes, such as application data, datasets, model weights, or build caches.

import { Sandbox, Volumes } from "@corevelos/sdk";
const volumes = new Volumes(client);
const vol = await volumes.create({ name: "datasets" });
const machine = await Sandbox.create({
  template: "corevelos-base",
  volumeMounts: [{ name: "datasets", path: "/data" }],
});

List volumes with volumes.list() and inspect which machines mount one with volumes.get(). Delete a volume and its data with volumes.delete(); deletion is refused while any machine mounts it, so read mountedBy from get first. The CLI mirrors this with corevelos volume create, corevelos volume list, and corevelos volume delete.

Retained volumes bill storage until deleted, independently of any VM. See Billing. Volumes belong to a project like every other resource.