retrieve VMid in the client side