Scalable and automatic virtual machines placement based on behavioral similarities