diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java index f9c34ef8156..b1a757dad03 100755 --- a/server/src/com/cloud/vm/UserVmManagerImpl.java +++ b/server/src/com/cloud/vm/UserVmManagerImpl.java @@ -2287,6 +2287,11 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager if (networkOffering.getAvailability() == Availability.Unavailable) { throw new InvalidParameterValueException("Network id=" + network.getId() + " can't be used; corresponding network offering is " + Availability.Unavailable); } + + //don't allow to use system networks + if (networkOffering.isSystemOnly()) { + throw new InvalidParameterValueException("Network id=" + networkId + " is system only and can't be used for vm deployment"); + } if (requiredOfferingId != null && network.getNetworkOfferingId() == requiredOfferingId.longValue()) { requiredNetworkOfferingIsPresent = true;