-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for VM disk management in vcd_vapp_vm resource #311
Comments
I know this issue 311 is for the implementation in |
Our business requires vm snapshots now. Since this is not possible with independent/namend disks at the moment, we got a demand for this feature. Unlike named disks, an extra attachment resource does not make sence for vm disks, since you cannot create a vm disk without a vm. But maybe it make sence to have the disk in its own resource anyway (maybe it is possible to move a vm disk to another vm in future and we want to avoid https://github.com/terraform-providers/terraform-provider-vcd/issues/206 for vm disks) May I suggest the following example code?:
If VCD support a move of vm disks in future, we may change the attachment value and it will be translated in the "move vm disk" api call. |
@buec011 please explain more about your use case. Esp., what do you want to do with snapshots and Terraform VM disks. CC: @Didainius |
With named disks (we use VCD 10), it is not possible to create a snapshot (in H5: VM -> Actions -> Create Snapshot) We use snapshots before we or a third party deploys a new application in the VM. I think this is a usual use case to use this vSphere / VCD feature. If you use VM disks, you can take your snapshot as usual. We do not need create and delete snapshots via terraform yet. We use the GUI for this at the moment, because they will resist temporary only. |
@buec011 I see. Are you still using the independent disks and do you still need the attachment resource for them #257 ? |
It is still requested, but the use of VM disks is more important due to the snapshot problem.
|
VM internal disks are Implemented in https://github.com/terraform-providers/terraform-provider-vcd/pull/412 |
At the moment resource
vcd_vapp_vm
supports only adding independent disks. There are no options to handle VM disks (add them, resize them), but there may be such a need for altering VM disks and their sizes.The text was updated successfully, but these errors were encountered: