Finely chop the bacon and onion.
Boil the spaghetti in boiling water.
Heat olive oil in a pan and sauté the bacon and onion.
Add the cooked pasta to the pan and mix.
Mix eggs and Parmesan cheese to make the sauce.
Remove the pan from heat, pour in the sauce, and quickly mix together.
Season with pepper.