We investigate the scope and validity of the minimum entropy production principle as a variational principle characterizing steady states of chains of oscillators driven out of equilibrium. Next, in and out of equilibrium we compute explictitely the large deviation functional of the heat current of coupled harmonic oscillators coupled to gaussian stochastic thermostats modelizing either external heat baths or the action of anharmonic interactions in a perturbative regime.