Prepare the spaghetti per the package directions, and drain.
Cook the bacon, either in the oven for 10 minutes or in a skillet on top of the stove. Remove and place on a plate with paper towels. Crumble the bacon.
Dump the spaghetti into a large bowl. Stir in the sun-dried tomato pesto and cover all the spaghetti with the pesto. Sprinkle in the crumbled bacon, parmesan cheese, parsley, and black pepper. Toss until everything is evenly combined. Serve and enjoy!