Based on the transient model of hydro turbine generating sets (HTGS), the integrated simulation system of HGTS is built to study shafting stability. Given different bearing stiffness, equivalent damping coefficient and mass eccentricity, the change characteristics of shafting vibration at rated angular speed in steady and maximum angular speed in transient are simulated, and which are applied to study inferences shafting parameters and angular speed on shafting vibration. Simulation results show that the relationship between shafting vibration amplitude and angular speed is linear. however, the vibration amplitude increment produced by angular speed error will be amplified while the shafting stiffness is weaker, mass eccentricity of the runner and rotor is larger.