Put the squash, beets, onions and thyme in a large bowl. Drizzle with oil and toss to coat. Season generously with salt and pepper. Spread in a single layer on a rimmed baking sheet and roast, tossing once, until golden brown and tender, 45 to 50 minutes.