I have been reading about the method of moments, and now I understand how to obtain the method of moments estimator for a random sample $x_1,...,x_n$ from a distribution $f(x;\theta)$, in the multiparameter case. However, I fail to see how to formulate the method of moments for the linear regression model $$y_i = x_i^T\beta + e_i,$$ where $E[e_i]=0$, $\beta,xi\in R^p$. There is this moment condition, but I cannot link it to a system of equations as in least squares estimation.
Is there a reference with this formulation?