mirror of https://github.com/apache/cloudstack.git
kvm: Use Q35 chipset for UEFI x86_64 (#4576)
Fix #4245 This PR uses Q35 chipset for UEFI in x86_64. Currently this mistakenly only enabled for secure boot
This commit is contained in:
parent
313ae1f449
commit
e9dda98a87
|
|
@ -2247,8 +2247,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
if (MapUtils.isNotEmpty(customParams) && customParams.containsKey(GuestDef.BootType.UEFI.toString())) {
|
||||
guest.setBootType(GuestDef.BootType.UEFI);
|
||||
guest.setBootMode(GuestDef.BootMode.LEGACY);
|
||||
guest.setMachineType("q35");
|
||||
if (StringUtils.isNotBlank(customParams.get(GuestDef.BootType.UEFI.toString())) && "secure".equalsIgnoreCase(customParams.get(GuestDef.BootType.UEFI.toString()))) {
|
||||
guest.setMachineType("q35");
|
||||
guest.setBootMode(GuestDef.BootMode.SECURE); // setting to secure mode
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue