Skip to content

[Feat] Develop terraform resource for ovaimages #852

@kvandenhoute

Description

@kvandenhoute

Is your feature request related to a problem? Please describe.
Right now, it is possible to create a vm from OVA image in Prism. It is however not possible to do this with the terraform provider. Therefor, the only way to deploy a vm from image is to have a raw image. However, if you want to download + upload a third party OVA and deploy that, you should first deploy a vm from the OVA and then create an image from it and only then can you deploy it using terraform. This manual step to create a VM inbetween should be removed.

Describe the solution you'd like
Have a data resource OVAImage with which you can read OVAImage properties. This can then be used to create a new vm. The OVAImage returns basically a VMSpec, so all these properties can then be used in nutanix_virtual_machine resource. Not in the nutanix_virtual_machine_v2 resource, as the v4 API does not support data_source_reference from url (which is needed to deploy from OVA). The v3 API does support this.

Describe alternatives you've considered
Adapt the nutanix_virtual_machine(_v2) spec to have a property ova_image, but working this way it would be harder to adapt / extend properties

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions