method to retrieve all the VMs and the nodes