You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 4.14:
server: select root disk based on user input during vm import (#4591)
kvm: Use Q35 chipset for UEFI x86_64 (#4576)
server: fix wrong error message when create isolated network without SourceNat (#4624)
server: add possibility to scale vm to current customer offerings (#4622)
server: keep networks order and ips while move a vm with multiple networks (#4602)
server: throw exception when update vm nic on L2 network (#4625)
doc: fix typo in install notes (#4633)
Copy file name to clipboardExpand all lines: engine/api/src/main/java/org/apache/cloudstack/engine/orchestration/service/NetworkOrchestrationService.java
thrownewInvalidParameterValueException("StartIp/endIp/gateway/netmask are required when create network of" + " type " + Network.GuestType.Shared
2549
-
+ " and network of type " + GuestType.Isolated + " with service " + Service.SourceNat.getName() + " disabled");
2548
+
if (ntwkOff.getGuestType() == GuestType.Shared) {
2549
+
thrownewInvalidParameterValueException("StartIp/endIp/gateway/netmask are required when create network of" + " type " + Network.GuestType.Shared);
2550
+
} else {
2551
+
thrownewInvalidParameterValueException("gateway/netmask are required when create network of" + " type " + GuestType.Isolated + " with service " + Service.SourceNat.getName() + " disabled");
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2247,8 +2247,8 @@ public LibvirtVMDef createVMFromSpec(final VirtualMachineTO vmTO) {
2247
2247
if (MapUtils.isNotEmpty(customParams) && customParams.containsKey(GuestDef.BootType.UEFI.toString())) {
2248
2248
guest.setBootType(GuestDef.BootType.UEFI);
2249
2249
guest.setBootMode(GuestDef.BootMode.LEGACY);
2250
+
guest.setMachineType("q35");
2250
2251
if (StringUtils.isNotBlank(customParams.get(GuestDef.BootType.UEFI.toString())) && "secure".equalsIgnoreCase(customParams.get(GuestDef.BootType.UEFI.toString()))) {
2251
-
guest.setMachineType("q35");
2252
2252
guest.setBootMode(GuestDef.BootMode.SECURE); // setting to secure mode
s_logger.debug("AssignVM: use old shared network " + defaultNetworkOld.getName() + " with old ip " + requestedIPv4ForDefaultNic + " on default nic of vm:" + vm.getInstanceName());
6538
-
} catch (PermissionDeniedExceptione) {
6539
-
s_logger.debug("AssignVM: the shared network on old default nic can not be applied to new account");
6540
-
}
6529
+
if (canAccountUseNetwork(newAccount, defaultNetworkOld)) {
s_logger.debug("AssignVM: use old shared network " + defaultNetworkOld.getName() + " with old ip " + defaultNicOld.getIPv4Address() + " on default nic of vm:" + vm.getInstanceName());
6541
6534
}
6542
6535
}
6543
6536
}
6544
-
// cleanup the network for the oldOwner
6545
-
_networkMgr.cleanupNics(vmOldProfile);
6546
-
_networkMgr.expungeNics(vmOldProfile);
6547
6537
6548
6538
if (networkIdList != null && !networkIdList.isEmpty()) {
6549
6539
// add any additional networks
@@ -6566,10 +6556,24 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
s_logger.debug("AssignVM: use old shared network " + network.getName() + " with old ip " + nicOld.getIPv4Address() + " on nic of vm:" + vm.getInstanceName());
6566
+
}
6567
+
}
6568
+
s_logger.debug("AssignVM: Added network " + network.getName() + " to vm " + vm.getId());
s_logger.debug("AssignVM: use old shared network " + defaultNetworkOld.getName() + " with old ip " + defaultNicOld.getIPv4Address() + " on default nic of vm:" + vm.getInstanceName());
6661
6663
}
6662
6664
}
6663
6665
}
6664
6666
6665
-
// cleanup the network for the oldOwner
6666
-
_networkMgr.cleanupNics(vmOldProfile);
6667
-
_networkMgr.expungeNics(vmOldProfile);
6668
-
6669
6667
if (networkIdList != null && !networkIdList.isEmpty()) {
6670
6668
// add any additional networks
6671
6669
for (LongnetworkId : networkIdList) {
@@ -6685,6 +6683,16 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
s_logger.debug("AssignVM: use old shared network " + network.getName() + " with old ip " + nicOld.getIPv4Address() + " on nic of vm:" + vm.getInstanceName());
6693
+
}
6694
+
}
6695
+
s_logger.debug("AssignVM: Added network " + network.getName() + " to vm " + vm.getId());
6688
6696
applicableNetworks.add(network);
6689
6697
}
6690
6698
} elseif (applicableNetworks.isEmpty()) {
@@ -6748,6 +6756,10 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
s_logger.debug(String.format("AssignVM: %s network %s can not be used by new account %s", network.getGuestType(), network.getName(), newAccount.getAccountName()));
0 commit comments