crusoe compute vms attach-disks
Attach disks to a VM.
Usage
crusoe compute vms attach-disks <VM name> [flags]
Flags
| Flag | Description |
|---|---|
--disk stringArray | [Required] Disk to attach as name=<name>,mode=<mode> or id=<id>,mode=<mode>. Repeat for multiple disks. Mode must be read-only or read-write |
-f, --format string | Output format. Supported formats: pretty, json (default: "pretty") |
-h, --help | Help for attach-disks |
--json | Output in json format. Shorthand for --format json |
--project-id string | Project ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--project-name string | Project Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
-y, --yes | Autoconfirm selection (skip confirmation prompt) |
Examples
Attach a single disk in read-write mode:
crusoe compute vms attach-disks my-vm --disk name=my-disk,mode=read-write
Attach multiple disks:
crusoe compute vms attach-disks my-vm \
--disk name=disk1,mode=read-only \
--disk name=disk2,mode=read-write