Add methods to get max memory from VM configuration (specification) and use it when the max memory information is required