Prep the pans. Preheat oven to 350°F.Grease and flour two 8-inch or 9-inch round cake pans. Line bottoms with parchment paper if desired.
Make the cake batter. In a large bowl, mix eggs, sugar, flour, baking soda, and crushed pineapple with juice until fully combined. Divide batter evenly between prepared pans.
Bake. Bake for 25–30 minutes, or until a toothpick inserted in the center comes out clean. Cool cakes in pans for 10 minutes, then turn out onto wire racks to cool completely.
Make the frosting. Beat cream cheese and butter together until smooth. Add vanilla extract and mix well. Gradually add powdered sugar, beating until smooth and spreadable.
Toast the coconut. Spread shredded coconut evenly on a baking sheet. Bake at 350°F for 5–8 minutes, stirring once, until lightly golden.Watch closely to prevent burning. Let cool completely.