All the mountain bike racers I know do most of their training on the road.
You don't really need hills, you just need to go out an ride at a hard pace for 20-60 min at a time. Hills make it easier ride at a steady pace but they aren't necessary for training.