Fix for system VMs

This commit is contained in:
nvazquez 2020-09-30 11:33:27 -03:00 committed by Harikrishna Patnala
parent 9b51a706db
commit 46d412d998
2 changed files with 2 additions and 2 deletions

View File

@ -759,7 +759,7 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
Long size = _tmpltMgr.getTemplateSize(template.getId(), vm.getDataCenterId());
if (rootDisksize != null) {
if (vm.getHypervisorType() == HypervisorType.VMware && vm.getType() == VirtualMachine.Type.User) {
if (vm.getHypervisorType() == HypervisorType.VMware) {
// Volume size specified from template deploy-as-is
size = rootDisksize;
} else {

View File

@ -105,7 +105,7 @@ class VmwareVmImplementer {
VirtualMachineTO implement(VirtualMachineProfile vm, VirtualMachineTO to, long clusterId) {
to.setBootloader(VirtualMachineTemplate.BootloaderType.HVM);
boolean deployAsIs = vm.getType() == VirtualMachine.Type.User;
boolean deployAsIs = true;
HostVO host = hostDao.findById(vm.getVirtualMachine().getHostId());
Map<String, String> details = to.getDetails();
if (details == null)