Re: what glue for attaching foam insulation to the cabin interior?
Agree with the 3M recommendations, but I'd like to talk you out of carpet... try some easier-to-clean vinyl, formica or anything else less likely to glom onto moisture, dirt, mold etc. Wood battens most nautical, and can give a very warm feeling, vinyls and formicas can be light coloured for more light/bright below...
.. but other than a small mat at the companionway I don't think carpet belongs on a boat anywhere....
1984 Fast/Nicholson 345 "FastForward"
".. there is much you could do at sea with common sense.. and very little you could do without it.."
Capt G E Ericson (from "The Cruel Sea" by Nicholas Monsarrat)