mine have done temporary sharing while on vacation (at the ILs, so 'time away from home' may be a better description!) At that age, the same bed would have been a disaster.... when the younger one was around 5YO it started working better.
As it was, they each had their own twin mattress smashed into a tiny bedroom, and it absolutely took a longer time for them to settle down at first. it was just so exciting! new place, new beds, new people in the room...
we tried a couple of things; they both worked. when the kids were REALLY little, I would simply sit in the room like a policeman and we did some Gradual Withdrawal...after we did the bedtime routine and put them in bed, we turned off the lights (except for nightlight), and I sat in a deskchair until they fell asleep. If someone popped up, I (silently) returned them to bed. If someone tried to talk to the other, I simply shhhed them. after a few days, I could wait outside the room & listen to them, and they fell asleep pretty easily. I went in as necessary to remind them to be quiet, but it was pretty smooth after that. both my kids are deep sleepers, and they never disturbed one another in the night. I do, however, have an early riser, and we had to talk about what she could do in the morning, because all she wanted to do was wake her brother up & play with him. that was a much longer adjustment.
when they got older, we would put one of them to bed in their room, and one to bed in our room. then we'd move the kid in our room to her own bed. since you are looking at a longer term of time, that might not be the best idea for you.