vinfra service compute server volume attach
Attach a volume to a virtual machine:
usage: vinfra service compute server volume attach --server <server> <volume>
--server <server>
- Virtual machine ID or name
<volume>
- Volume ID or name
Example:
# vinfra service compute server volume attach e4cb5363-1fb2-41f5-b24b-18f98a388cba \ --server 871fef54-519b-4111-b18d-d2039e2410a8 +--------+--------------------------------------+ | Field | Value | +--------+--------------------------------------+ | device | /dev/vdb | | id | e4cb5363-1fb2-41f5-b24b-18f98a388cba | +--------+--------------------------------------+
This command attaches the available volume with the ID e4cb5363-1fb2-41f5-b24b-18f98a388cba
to the VM with the ID 871fef54-519b-4111-b18d-d2039e2410a8
.