You need a generator that can handle a 22 amp inductive load. Note that most portable generators are rated for a resistive load, so a 5 KW generator may not run the machine properly, You might need a larger one.
The battery requirements to run this welder from an inverter are pretty severe, I wouldn't go that way.