File tree Expand file tree Collapse file tree
api/src/main/java/com/cloud/agent/api/to
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public class VirtualMachineTO {
6464 Map <String , String > params ;
6565 String uuid ;
6666 String bootType ;
67+ String bootMode ;
6768
6869 DiskTO [] disks ;
6970 NicTO [] nics ;
@@ -388,4 +389,8 @@ public String getBootType() {
388389 public void setBootType (String bootType ) {
389390 this .bootType = bootType ;
390391 }
392+
393+ public String getBootMode () { return bootMode ; }
394+
395+ public void setBootMode (String bootMode ) { this .bootMode = bootMode ; }
391396}
Original file line number Diff line number Diff line change @@ -2267,7 +2267,7 @@ protected StartAnswer execute(StartCommand cmd) {
22672267
22682268 if (!bootMode .equalsIgnoreCase ("BIOS" )) {
22692269 vmConfigSpec .setFirmware ("efi" );
2270- if (bootMode . equalsIgnoreCase ( "UEFI_SECURE " ) ) {
2270+ if (vmSpec . getDetails (). containsKey ( "UEFI " ) && "secure" . equalsIgnoreCase ( vmSpec . getDetails (). get ( "UEFI" )) ) {
22712271 VirtualMachineBootOptions bootOptions = new VirtualMachineBootOptions ();
22722272 bootOptions .setEfiSecureBootEnabled (true );
22732273 vmConfigSpec .setBootOptions (bootOptions );
You can’t perform that action at this time.
0 commit comments