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);
|
VmwareHelper.setBasicVmConfig(vmConfig, cpuCount, cpuSpeedMHz, cpuReservedMHz, memoryMB, memoryReserveMB, guestOsIdentifier, limitCpuUse, false);
|
||||||
|
|
||||||
String recommendedController = host.getRecommendedDiskController(guestOsIdentifier);
|
|
||||||
String newRootDiskController = controllerInfo.first();
|
String newRootDiskController = controllerInfo.first();
|
||||||
String newDataDiskController = controllerInfo.second();
|
String newDataDiskController = controllerInfo.second();
|
||||||
if (DiskControllerType.getType(controllerInfo.first()) == DiskControllerType.osdefault) {
|
String recommendedController = null;
|
||||||
newRootDiskController = recommendedController;
|
if (VmwareHelper.isControllerOsRecommended(newRootDiskController) || VmwareHelper.isControllerOsRecommended(newDataDiskController)) {
|
||||||
}
|
recommendedController = host.getRecommendedDiskController(guestOsIdentifier);
|
||||||
if (DiskControllerType.getType(controllerInfo.second()) == DiskControllerType.osdefault) {
|
|
||||||
newDataDiskController = recommendedController;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Pair<String, String> updatedControllerInfo = new Pair<String, String>(newRootDiskController, newDataDiskController);
|
Pair<String, String> updatedControllerInfo = new Pair<String, String>(newRootDiskController, newDataDiskController);
|
||||||
|
|||||||
@ -3381,7 +3381,7 @@ public class VirtualMachineMO extends BaseMO {
|
|||||||
virtualHardwareVersion = getVirtualHardwareVersion();
|
virtualHardwareVersion = getVirtualHardwareVersion();
|
||||||
|
|
||||||
// Check if guest operating system supports cpu hotadd
|
// Check if guest operating system supports cpu hotadd
|
||||||
if (guestOsDescriptor.isSupportsCpuHotAdd()) {
|
if (guestOsDescriptor != null && guestOsDescriptor.isSupportsCpuHotAdd()) {
|
||||||
guestOsSupportsCpuHotAdd = true;
|
guestOsSupportsCpuHotAdd = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user