Heat oven to 375°F. Slice the top ¼ inch off of the head of garlic (this is simply to expose the tops of each clove). Set the garlic on a piece of aluminum foil. Drizzle with olive oil and top with rosemary. Close the foil over the garlic tightly. Set the garlic on a baking sheet and bake until the cloves are soft and brown, about 40 minutes.
Meanwhile, set a medium skillet over medium-high heat with 1 inch of oil. Add the onions to the cold oil. Let the onions cook slowly until deep golden brown, stirring occasionally, about 20 minutes. In the last minute of cooking, add the fresh thyme sprigs to the skillet. If you’re using dried thyme, wait to add until the onions are fully cooked, then remove from heat and stir to incorporate.
Using tongs, remove the onions and thyme and set them on a paper towel-lined plate. Press a few sheets of paper towels over top and blot the onions and thyme a bit. Let them cool completely. Finely chop the onions, reserving 2 tablespoons for garnish
To serve, add the sour cream to a medium bowl. Squeeze all of the cooked garlic into the sour cream and add the chopped onions. Pull off the thyme leaves and add them to the sour cream mixture, as well. Stir thoroughly to combine. Season to taste with salt and pepper, and garnish with chives. Serve with chips.
Make-ahead note: This dip can be made up to 1 day ahead and stored in the fridge; wait to add the garnish until right before serving.
