How to add disk to Virtual Machine¶
You can attach the volume to one of virtual machine who are into your account. The prerequisites you need are the id of [instance] and [volume]
The command you have to edit is
$ beehive provider instances volumes add <instance_id> <volume_id>
Add provider compute instance volumes
fields:
id instance name or uuid
volume volume name or uuid
optional arguments:
-h, --help show this help message and exit
--debug toggle debug output
--quiet suppress all output
-o {json} output handler
-v, --version show program's version number and exit
-k KEY, --key KEY Secret key file to use for encryption/decryption
--vault VAULT Ansible vault password to use for inventory decryption
-e ENV, --env ENV Execution environment
-E ENVS, --envs ENVS Comma separated execution environments
-f FRMT, --frmt FRMT response format
--color COLOR response colered. Can be true or false. [default=true]
--verbose VERBOSITY ansible verbosity
--cmds list available commands
--notruncate disable long string truncation
--truncate TRUNCATE set max length of long string
--curl log curl request
--fields FIELDS response fields
--afields AFIELDS response additional fields
-y, --assumeyes Assume that the answer to any question which would be
asked is yes.
-rt, --runtime Enable command duration log.
How to know instance id¶
To get the instance id it is necessary to type the command:
$ beehive provider instances list
optional arguments:
-h, --help show this help message and exit
--debug toggle debug output
--quiet suppress all output
-o {json} output handler
-v, --version show program's version number and exit
-k KEY, --key KEY Secret key file to use for encryption/decryption
--vault VAULT Ansible vault password to use for inventory decryption
-e ENV, --env ENV Execution environment
-E ENVS, --envs ENVS Comma separated execution environments
-f FRMT, --frmt FRMT response format
--color COLOR response colered. Can be true or false. [default=true]
--verbose VERBOSITY ansible verbosity
--cmds list available commands
--notruncate disable long string truncation
--truncate TRUNCATE set max length of long string
--curl log curl request
--fields FIELDS response fields
--afields AFIELDS response additional fields
-y, --assumeyes Assume that the answer to any question which would be
asked is yes.
-rt, --runtime Enable command duration log.
How to know volume id¶
To get the volume id you have to type the command:
$ beehive provider volumes list
optional arguments:
-h, --help show this help message and exit
--debug toggle debug output
--quiet suppress all output
-o {json} output handler
-v, --version show program's version number and exit
-k KEY, --key KEY Secret key file to use for encryption/decryption
--vault VAULT Ansible vault password to use for inventory decryption
-e ENV, --env ENV Execution environment
-E ENVS, --envs ENVS Comma separated execution environments
-f FRMT, --frmt FRMT response format
--color COLOR response colered. Can be true or false. [default=true]
--verbose VERBOSITY ansible verbosity
--cmds list available commands
--notruncate disable long string truncation
--truncate TRUNCATE set max length of long string
--curl log curl request
--fields FIELDS response fields
--afields AFIELDS response additional fields
-y, --assumeyes Assume that the answer to any question which would be
asked is yes.
-rt, --runtime Enable command duration log.