weizhouapache commented on a change in pull request #3900:
URL: https://github.com/apache/cloudstack/pull/3900#discussion_r565884874



##########
File path: 
engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java
##########
@@ -429,6 +433,12 @@ public void allocate(final String vmInstanceName, final 
VirtualMachineTemplate t
 
         final VirtualMachineProfileImpl vmProfile = new 
VirtualMachineProfileImpl(vmFinal, template, serviceOffering, null, null);
 
+        Long rootDiskSize = rootDiskOfferingInfo.getSize();
+        if (vm.getType().isUsedBySystem() && SystemVmRootDiskSize.value() != 
null) {
+            rootDiskSize = SystemVmRootDiskSize.value();

Review comment:
       @rhtyd added check.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to