Implementing function to deploy VMs in cloudstack in VMScheduler