Fill a pot for the pasta with about 6 quarts of water, place over high heat, and bring to a boil.
Peel and thinly slice the red onion crosswise. Put it with the olive oil in a 12-inch skillet and place over medium-high heat. Sauté the onion while you are preparing the leeks. If the onion begins to brown, remove from the heat.