mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge branch '4.15' into main
This commit is contained in:
commit
2215cd7ee3
@ -1527,14 +1527,11 @@ public class HypervisorHostHelper {
|
||||
|
||||
VmwareHelper.setBasicVmConfig(vmConfig, cpuCount, cpuSpeedMHz, cpuReservedMHz, memoryMB, memoryReserveMB, guestOsIdentifier, limitCpuUse, false);
|
||||
|
||||
String recommendedController = host.getRecommendedDiskController(guestOsIdentifier);
|
||||
String newRootDiskController = controllerInfo.first();
|
||||
String newDataDiskController = controllerInfo.second();
|
||||
if (DiskControllerType.getType(controllerInfo.first()) == DiskControllerType.osdefault) {
|
||||
newRootDiskController = recommendedController;
|
||||
}
|
||||
if (DiskControllerType.getType(controllerInfo.second()) == DiskControllerType.osdefault) {
|
||||
newDataDiskController = recommendedController;
|
||||
String recommendedController = null;
|
||||
if (VmwareHelper.isControllerOsRecommended(newRootDiskController) || VmwareHelper.isControllerOsRecommended(newDataDiskController)) {
|
||||
recommendedController = host.getRecommendedDiskController(guestOsIdentifier);
|
||||
}
|
||||
|
||||
Pair<String, String> updatedControllerInfo = new Pair<String, String>(newRootDiskController, newDataDiskController);
|
||||
|
||||
@ -3381,7 +3381,7 @@ public class VirtualMachineMO extends BaseMO {
|
||||
virtualHardwareVersion = getVirtualHardwareVersion();
|
||||
|
||||
// Check if guest operating system supports cpu hotadd
|
||||
if (guestOsDescriptor.isSupportsCpuHotAdd()) {
|
||||
if (guestOsDescriptor != null && guestOsDescriptor.isSupportsCpuHotAdd()) {
|
||||
guestOsSupportsCpuHotAdd = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user