vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.3k stars 910 forks source link

[BUG] OVF template is illegal when created via "govc library.clone -ovf" #3308

Open hunter86bg opened 9 months ago

hunter86bg commented 9 months ago

Describe the bug The OVF template in import.go is broken and leads to the following error when you try to use the template:

Issues detected with selected template. Details: - 47:7:VALUE_ILLEGAL: Value ''lsilogic'' of ResourceSubType element not found in [VirtualSCSI]. - 55:7:VALUE_ILLEGAL: Value ''3'' of Parent element does not refer to a ref of type DiskControllerReference.

To Reproduce Steps to reproduce the behavior:

  1. govc import.vmdk "/path/to/disk.vmdk"
  2. govc vm.create -net.adapter=vmxnet3 -m=4096 -c=2 -g="RHEL9_64Guest -firmware=efi -disk="PATH_TODISK_IN_VMWARE.vmdk" -disk.controller=scsi -on=false "VMNAME"
  3. govc library.clone -ovf -ds "VM_DATA_STORE" -vm "VMNAME" "LIBRARY" "OFV_NAME"

Expected behavior Can create VM from the OVF Template.

Affected version govc: 0.32.0 Vcenter version 7.0.X

Additional context Not sure if 7f3a070 fixes it.

github-actions[bot] commented 9 months ago

Howdy 🖐   hunter86bg ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

hunter86bg commented 6 months ago

/remove-lifecycle stale

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

hunter86bg commented 1 month ago

/remove-lifecycle stale