Hi,
You can add “options[:efiSecureBootEnabled] = true” to create_vm.rb
def boot_options(attributes, vm_cfg)
# NOTE: you must be using vsphere_rev 5.0 or greater to set boot_order
# e.g. Fog::Compute.new(provider: "vsphere", vsphere_rev: "5.5", etc)
options = {}
if (@vsphere_rev.to_f >= 5) && attributes[:boot_order]
options[:bootOrder] = boot_order(attributes, vm_cfg)
end
# Set attributes[:boot_retry] to a delay in miliseconds to enable boot retries
if attributes[:boot_retry]
options[:bootRetryEnabled] = true
options[:bootRetryDelay] = attributes[:boot_retry]
end
+ options[:efiSecureBootEnabled] = true
options.empty? ? nil : RbVmomi::VIM::VirtualMachineBootOptions.new(options)
end