Yes, you can run an oxygen machine on a generator. Most oxygen machines use 300-600 watts (depending on oxygen flow) so a 2,000 watt generator should give you plenty of power to run your device.