boxd disks on the CLI, and from the SDKs.
Create and attach
creating until its storage is allocated, so attach waits for ready.
One attachment at a time. A disk’s storage is opened read-write by the machine that holds it, so a second attachment would be a second writer to the same bytes. Detach before attaching elsewhere.
Attaching at creation
A disk lives on one host, and a machine can only mount a disk on the host it runs on. Attaching to a machine that already exists therefore works only when the two happen to share a host. To pair a disk with a new machine, attach it at creation, and the machine is placed on the disk’s host:<disk>[:<mount-path>][:ro], with the disk by name or id. The SDKs take the same thing as volumes on create. A machine restored from a snapshot cannot take a disk at creation, since a restore rebuilds exactly what was captured. Create it first, then attach.
The console’s Attach picker lists only the machines on the disk’s host. When the machine you want is not there, create a new one with the disk attached from the start, with
boxd new --disk or the SDK’s volumes.