Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike and I'll be assisting you. Please stand by while I review your question.
Are you saying that the generator trips? If so it's because it is GFCI protected and the bonding of the house service. You need to float the ground from the generator at its connection.
I need to suggest connecting the generator to the switch and not at the service panel with a means of disconnecting the utility power is a violation and a danger to you and anyone working on a repair by the utility for power restoration. You need a generator breaker sized for your generator and an interlock assembly to allow for only the main breaker or the generator breaker being on, never both at the same time.
Go to the link below for complete info.