If you want to run MacOSX legally without risking a lawsuit from Apple (they even went after a repair shop, FFS), you must use their hardware, as per the license agreement.
They went after the repair shop for copyright infringement which the shop was guilty of. That's not the same thing at all.