I have an Outback like yours. I put solar on it and occasionally needed to run the gen while on the road on a cloudy/rainy day. I cut the ends off of a typical 30a extension cord and connected in line with the shore power and through the underbelly to the front of the trailer and long enough to reach the bed of the truck with lots of slack. I slipped the tonneau cover slightly rearward and put wedges under the lid to create a draft of cool clean air. I use rubber bungees to stabilize the gen.
I’ve run it for several thousand miles like this from Alaska to Florida and points around and it works great. No carb or oil or overheating problems.