CIRCLE (Cloud Infrastructure for Research and Education) is an IaaS based cloud manager. It provides an ideal way to effectively use virtualized systems in educational environments. BME (Budapest University of Technology and Economics) has been increasingly utilizing a CIRCLE-based cloud management system for years. However, increasing utilization imposes serious requirements on infrastructure and hence for system administrators. As the number of users increases, lack of service has a major impact on the efficiency of everyday university work. The thesis presents a method, which can improve the system's stability. An important element of cloud systems is the module that assigns virtual machines (VM) to physical ones. The uneven distribution of the VMs could result in a possible service outage. The improvement of this module could help the SLA metrics and enhance user experience. The paper outlines the problem and then presents a scheduling algorithm that can be suitable for this task. It explains the implementation of the algorithm and discusses the way it has been tested.