Except when they had already lost, those in power for Germany were very punitive, below average in diplomacy, bad at coordinating with allies, and over-optimistic. They kept on demanding everything until it was too late and they got nothing. A little tact, realism and humility would done wonders.
Only the Bolsheviks excluded from power in Russia wanted peace and they were a minority at the start. Heck even after the Bolsheviks took power they faced left SR and conservative revolts intending to continue the war.