Fry the onions in a little butter, then add the balsamic vinegar, the cream and the grained vegetable stock, season with salt and pepper and simmer for 2-3 minutes.
Strain the sauce and thicken with the remaining butter. Cook the spaghetti in plenty of salted water until al dente, drain, mix with the sauce and sprinkle with chopped parsley.