We have a Yamaha iS3000 inverter generator which I mounted in my truck bed, directly behing the cab. I fabricated a weather-proof enclosure with a hinged lid (for refueling) and removable doors on each end. When the generator is in use, I remove the end doors to allow fresh air in one end and exhaust out the other end. It is plugged into the trailer with a 30 amp Twistloc connector, and I installed a transfer switch in the trailer which automatically switches to generator power when the generator starts.
We have been using this setup for three years, with almost 500 hours on the generator, and it works perfectly. I rigged up a wireless remote start to use in the trailer. Noise level is extremely low. We occasionally travel from the north to the south in the winter, and overnight at Flying J centers. In these cases, the generator runs overnight to keep the trailer batteries charged with constant use of the furnace. The generator has successfully started in temps as low as 0 degrees F. When sleeping in the trailer, it's good to know that the generator is in the truck, and not in a trailer compartment, which just about eliminates carbon monoxide worries, even though we still use a CO monitor in the bedroom.