First cut, 40 grit: orbital sander with the grain in slow, overlapping passes, right up to the walls (an edger or detail sander for the last 1″, if you rent one).
Check first
Empty the sander’s dust bag outdoors into a metal can, every time: finish-laden dust can catch fire on its own.