Cook spaghetti according to package directions, drain and set aside.
Beat eggs in a mixing bowl, then add cheese, salt and pepper and set aside.
Preheat a saucepan, add olive oil and cook the pancetta until brown and crispy. Add shallots and cook another minute. Add wine to deglaze the pan, stirring and allowing alcohol to evaporate. Add pasta to pan and toss to mix well.
Add egg and cheese mixture and sute until eggs are cooked.