Julienne the onions. Put the onions, blueberries, cinnamon, and rosemary in a saucepan with olive oil. Simmer for 20 minutes until the onions are brown and caramelized.
Add the red wine and sugar, and simmer until thick and with a jam-like consistency.
Serve the chutney with a delicious cheese platter and crackers.