Hold lemongrass stalks and halved white onion directly over a gas flame or under a broiler for 2-3 minutes until blackened in spots. Smash lemongrass with the side of a knife to release oils.
Add charred lemongrass, onion, beef shank, pork hock, galangal, shrimp paste, and 12 cups water to a large stockpot. Bring to a boil over high heat, then immediately reduce heat to a bare simmer.
Simmer gently for 2.5 to 3 hours, skimming foam every 15 minutes during the first hour. Keep broth at a bare simmer to maintain clear broth and tender meat. The beef shank should pull apart easily and pork hock meat should slide off the bone.
Remove beef shank and pork hock from broth and let rest for 10 minutes before slicing.
Add fish sauce to broth one tablespoon at a time, tasting after each addition until balanced. Strain broth through a fine-mesh strainer to remove solids, then return broth to the pot.
Cook the rice vermicelli noodles in boiling water according to the package directions, then drain and rinse under cold water.
Divide the cooked noodles among bowls. Top with sliced beef and pork, ladle hot broth over, and drizzle with chili oil. Serve immediately with bean sprouts, lime wedges, and fresh herbs on the side.