Preheat oven to 475 degrees. Cut 1/2 inch off the top of both heads of garlic. Place each garlic head on a separate piece of parchment, and slowly drizzle 1 tablespoon oil on top of each. Wrap parchment tightly around garlic, then wrap each packet in foil. Roast until cloves are tender and golden brown around edges, 30 to 35 minutes.
Preheat broiler. Brush torn sides of bread with remaining oil. Sprinkle with salt, and season with pepper. Place on a baking sheet, and broil until gold, about 3 minutes.
Using a vegetable peeler, thinly shave Parmesan. Serve baguette with roasted garlic and shaved Parmesan on the side.