Pre-cook the rice. Sauté onion in olive oil until crisp, then add the rice, and let it toast a little.
Then add the vegetable stock little by little and stir. Add more stock as the rice dries. Remove the rice when you get a semi-raw texture. Let it cool.