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.
Attach 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 created from a snapshot cannot take a disk at creation, since it is rebuilt from exactly what was captured. Attaching afterwards works only when the machine and the disk share a host.
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.