DaanHoogland commented on a change in pull request #3638: UEFI Support on
CloudStack
URL: https://github.com/apache/cloudstack/pull/3638#discussion_r391689150
##########
File path:
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java
##########
@@ -2280,6 +2286,16 @@ protected StartAnswer execute(StartCommand cmd) {
}
}
+ if
(!bootMode.equalsIgnoreCase(ApiConstants.BootType.BIOS.toString())) {
+ vmConfigSpec.setFirmware("efi");
+ if
(vmSpec.getDetails().containsKey(ApiConstants.BootType.UEFI.toString()) &&
"secure".equalsIgnoreCase(vmSpec.getDetails().get(ApiConstants.BootType.UEFI.toString())))
{
+ VirtualMachineBootOptions bootOptions = new
VirtualMachineBootOptions();
+ bootOptions.setEfiSecureBootEnabled(true);
+ vmConfigSpec.setBootOptions(bootOptions);
+ }
+ }
Review comment:
please extract, see above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services