http://projects.theforeman.org/issues/14160
TLDR: its a bug in vmware that they may or may not fix, I couldn't get a straight answer out of my vmware contacts. A workaround is implemented in fog-vsphere that should go into 1.16 but there was a regression that still needs to be addressed (https://github.com/fog/fog-vsphere/pull/109). Greetings Klaas Demter ATIX - The Linux & Open Source Company www.atix.de ----- Ursprüngliche Mail ----- Von: "Mike Wilson" <[email protected]> An: "Foreman users" <[email protected]> Gesendet: Freitag, 8. September 2017 01:14:48 Betreff: [foreman-users] "Provisioning using VMWare template fails with error "configSpec.bootOptions.bootOrder"" 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. -- 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.
