You're having trouble with your old iMac...
You're having trouble with your old iMac...
You have the top-end 2009 iMac model. It's the oldest 27-inch version ever produced, yet it still looks good. Check out different macOS releases—El Capitan or High Sierra work well. If you go with El Cap, let me know—it requires some prep before installation.
Using gibmacos to retrieve OSX dmg files is common for hackintosh setups. It should function well for your needs.