I've run into the above error and found what seemed to be a work around 
here:

https://access.redhat.com/solutions/2773751



- Convert the image Template into the VM.
- Edit the "vmx" file and comment / remove the below lines.
---
bios.hddOrder
bios.bootOrder
---
- Convert the VM into the template again.


or

- Take a backup and then edit the file create_vm.rb.
---
# cp 
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere*/lib/fog/vsphere/requests/compute/create_vm.rb
 
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere*/lib/fog/vsphere/requests/compute/create_vm.rb_backup
# vi 
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere*/lib/fog/vsphere/requests/compute/create_vm.rb
---
- Comment the line #23.
---
22           vm_cfg[:firmware] = attributes[:firmware] if 
attributes.key?(:firmware)
23           #vm_cfg[:bootOptions] = boot_options(attributes) if 
attributes.key?(:boot_order) || attributes.key?(:boot_retry) # WORKAROUND
24           resource_pool = if attributes[:resource_pool] && 
attributes[:resource_pool] != 'Resources'
---
- Restart the services.
---
# katello-service restart
---



I did both and still receive the error with Foreman 1.15.1 with VMware 
ESXi, 6.5.0, 5969303. The template was created from a VM I built using 
foreman if that has any effect.





























-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to