-
Notifications
You must be signed in to change notification settings - Fork 43
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
OVA not compatible with Terraform Provider for vSphere #120
Comments
For anyone who's had the error: I solved it by going into the OVF file, and deleting the </vmw:StorageGroupSection> </vmw:StorageGroup> and </vmw:StorageSection> XML elements, then rebuilding the OVA file using this new OVF file. Compare your OVF file to OVF file found by unpacking https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.ova The cloudimg-amd64.ovf did not have the </vmw:Storage*> xml elements, so I removed those elements from my OVF file, rebuilt my OVA file with tar, and the OVA worked. |
Can we please get this issue fix? Seems like an issue with govmomi codebase not allowing to import the ovf/ova |
@GlasgowMoe - if this is an issue with |
I am not 100% sure as i don't know really know Go. Id like someone else to confirm the issue before raising upstream. |
Please refer to vmware/govmomi#2666. This is the issue link on the upstream dependency. |
Closing per #120 (comment). Please follow the upstream issue. |
Community Note
When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.
Overview of the Issue
Using terraform "Deploying Virtual Machines from OVF/OVA" to create a virtual machine with and image created from packer will fail.
Reproduction Steps
It fails with the follow error:
│ Error: error while importing ovf/ova template, A specified parameter was not correct: ovfSection.info.key
│
│ with vsphere_virtual_machine.cvuv_vm,
│ on main.tf line 65, in resource "vsphere_virtual_machine" "vm":
│ 65: resource "vsphere_virtual_machine" "vm" {
│
With the Ubuntu Cloud image from "https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.ova" Terraform will import the image without any issues.
It seems like packer is writing the OVF XML incorrectly. When using the 'disk' information from the packer OVF (because the information has changed with changes to the disk) and inserting it into the Ubuntu OVF XML the image will import without any issues.
Packer version
From
packer version
v1.7.10
Simplified Packer Template
If the file is longer than a few dozen lines, please include the URL to the
gist of the log or use the Github detailed
format
instead of posting it directly in the issue.
Operating system and Environment details
OS, Architecture, and any other information you can provide about the
environment.
Log Fragments and crash.log files
Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the gist of the log or
use the Github detailed format instead of posting it directly in the issue.
Set the env var
PACKER_LOG=1
for maximum log detail.The text was updated successfully, but these errors were encountered: