Combine the onions, sugar, wine, and salt in a wide, heavy-bottomed saucepan. Use the cheesecloth to make a sachet for the peppercorns, clove, bay leaf, vanilla bean, and cinnamon stick and tie it up with the kitchen twine. Put the sachet in the pot with the other ingredients.