@Override
 public boolean checkIfHostReachMaxGuestLimit(HostVO host) {
   Long vmCount = _vmDao.countRunningByHostId(host.getId());
   HypervisorType hypervisorType = host.getHypervisorType();
   String hypervisorVersion = host.getHypervisorVersion();
   Long maxGuestLimit =
       _hypervisorCapabilitiesDao.getMaxGuestsLimit(hypervisorType, hypervisorVersion);
   if (vmCount.longValue() >= maxGuestLimit.longValue()) {
     if (s_logger.isDebugEnabled()) {
       s_logger.debug(
           "Host name: "
               + host.getName()
               + ", hostId: "
               + host.getId()
               + " already reached max Running VMs(count includes system VMs), limit is: "
               + maxGuestLimit
               + ",Running VM counts is: "
               + vmCount.longValue());
     }
     return true;
   }
   return false;
 }