Skip to content

Commit b42936d

Browse files
committed
Fix: Use Q35 chipset for UEFI x86_64
1 parent 4d33e15 commit b42936d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2247,8 +2247,8 @@ public LibvirtVMDef createVMFromSpec(final VirtualMachineTO vmTO) {
22472247
if (MapUtils.isNotEmpty(customParams) && customParams.containsKey(GuestDef.BootType.UEFI.toString())) {
22482248
guest.setBootType(GuestDef.BootType.UEFI);
22492249
guest.setBootMode(GuestDef.BootMode.LEGACY);
2250+
guest.setMachineType("q35");
22502251
if (StringUtils.isNotBlank(customParams.get(GuestDef.BootType.UEFI.toString())) && "secure".equalsIgnoreCase(customParams.get(GuestDef.BootType.UEFI.toString()))) {
2251-
guest.setMachineType("q35");
22522252
guest.setBootMode(GuestDef.BootMode.SECURE); // setting to secure mode
22532253
}
22542254
}

0 commit comments

Comments
 (0)