What should I lay under carpet to protect hardwood floor for a couple of years?
I would consider the lace mesh rubber mats that are sold for use under area rugs. Almost anything else is going to result in a lot of movement, which will be unpleasant for the occupants as well as increases the risk of damage to the hardwood.