Turn an instance you are ALREADY running into a persistent volume.
Use this when you launched something, set it up, and then decided you want
to keep it. Nothing reboots and no data moves — the machine you have
becomes the volume, and you can detach it afterwards to stop paying for
compute while keeping the machine. Beats creating a volume and rebuilding.
Only instances launched with an ssh_public_key qualify. One launched with
your own user_data carries only your key, and a key cannot be added to a
machine we cannot already log into — check "managed_ssh" on the instance.
Requires: API key with write scope, and an active subscription.
Args:
instance_id: A running lsw.* instance you own
name: Label for the volume (defaults to the instance name)
Returns:
Volume dict with state "attached", wrapping that same instance. No
snapshot exists yet — the first one is taken on detach or snapshot.
Errors:
CONFLICT: Not running, already a volume, BorealHost Metal, or launched
without BorealHost management access