The MH Onan generator has a radiator on it, I don't think the contractor generator will have one, it is probably air cooled - but I could be wrong. There is nothing wrong with that while sitting on a jobsite or on the contractor's trailer where it has free airflow. If it's stuffed in where the Onan is, it's not going to have enough air circulating around it, especially if you add more sound insulation.
And before getting too far into the idea, check your measurements. The Onan was built for MHs, so it is sort on long, narrow and not very high. Most contractor generators are built more or less in a cube probably making them too high and maybe too wide to fit.
Again the Onan was designed for the MH so the controls, water and oil fill pointrs are on the front. Where are these and the air and oil filters on the contractor generator? If it fits, I'll bet you can't get to half of these once it's mounted in the MH.
I think that by the time you buy the contractor gen set and get it mounted to include new frame supports and hookups so that it will start and modify the electrical connections so that the MH is happy with it, that you'll spend a lot more than $4k. Remember you're talking 120/220 here, not 12VDC so everything has to be perfect.
Let's say $1000 for the gen set, $200 for electrical connections and wiring, and $100 for steel frame supports that's $1,300 for material. Take that from the $4,000, it leaves $2,700. Then divide that by $125 an hour for shop time means they would have to do the whole job in 21.6 hours. Oh yes, if you have sales tax on everything, figure it needs to be done in under 20 hours or 2.5 days.
And then, what will be the resale value of the MH with a contractor gen set in it? And I forgot the cost of the sound insulation and all of the little things like modifying the fuel lines along with the exhaust.
If it actually costs the $4K to fix it, I think that's the cheapest (best) way in the end.
Bill