mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix for system VMs
This commit is contained in:
parent
9b51a706db
commit
46d412d998
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user