What we have to do is clear, but the exact procedure to get there is another matter entirely!
Watch Ultima: Worlds of Adventure 2: Martian Dreams Part 3 from spoonshiro on www.twitch.tv
I figured out what you have to say to Tekapesh. Talk to him about "rebuilding" "pods" and "better", then tell him you may have a solution to his problem. He'll agree to let you use the dream machine.