You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
Use case:
As a IaaS user, I am using a virtual machine and need to use another system disk (aka virtual disk with an associated kernel). I need to detach the current system disk and then attach the new disk to the VM. The new disk need to be attached in position 0 or I will need to rewrite the kernel boot param.
On my computer, the current help is:
$ gandi disk attach --help
Usage: gandi disk [OPTIONS] DISK VM
Attach disk to vm.
disk can be a disk name, or ID vm can be a vm name, or ID
Options:
--bg, --background Run command in background mode (default=False).
-f, --force This is a dangerous option that will cause CLI to
continue without prompting. (default=False).
--help Show this message and exit.
We could add a -p --position value : On which position do you want to attach the disk to the VM.
Bonus point if we could have the access method as a parameter of gandi disk attach also. Something like : -a --access ro|rw : Access method to the disk, ro is for read-only, rw is for read and write.
Context:
$ gandi --version
Gandi CLI 0.12
$ cat /etc/debian_version
8.0
$ dpkg -l gandicli
||/ Name Version Architecture
ii gandicli 0.12 all
The text was updated successfully, but these errors were encountered:
TL;DR: add a param position in gandi disk attach which could be used in the hosting.vm.disk_attach API method.
The public API documentation for the option of the hosting.vm.disk_attach optional dict:
http://doc.rpc.gandi.net/hosting/reference_vm.html#VMDiskAttachOptions
Use case:
As a IaaS user, I am using a virtual machine and need to use another system disk (aka virtual disk with an associated kernel). I need to detach the current system disk and then attach the new disk to the VM. The new disk need to be attached in position 0 or I will need to rewrite the kernel boot param.
On my computer, the current help is:
We could add a -p --position value : On which position do you want to attach the disk to the VM.
Bonus point if we could have the access method as a parameter of gandi disk attach also. Something like : -a --access ro|rw : Access method to the disk, ro is for read-only, rw is for read and write.
Context:
The text was updated successfully, but these errors were encountered: