Implementing methods for VM deployment in cloudstack