We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf27ecd commit ea99ff1Copy full SHA for ea99ff1
1 file changed
plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -1281,7 +1281,7 @@ protected ScaleVmAnswer execute(ScaleVmCommand cmd) {
1281
VmwareHypervisorHost hyperHost = getHyperHost(context);
1282
VirtualMachineMO vmMo = hyperHost.findVmOnHyperHost(cmd.getVmName());
1283
VirtualMachineConfigSpec vmConfigSpec = new VirtualMachineConfigSpec();
1284
- int ramMb = (int)(vmSpec.getMinRam() / (1024 * 1024));
+ int ramMb = getReservedMemoryMb(vmSpec);
1285
long hotaddIncrementSizeInMb;
1286
long hotaddMemoryLimitInMb;
1287
long requestedMaxMemoryInMb = vmSpec.getMaxRam() / (1024 * 1024);
0 commit comments