By definition hardware raid is implemented in hardware and one does not need to setup it from within (any) OS. Next to it, OS is completely unaware of underlying hardware raid. Usually hardware raid is configured in BIOS.
Well, there are half-baked solutions which are only partly implemented in hardware. They require installation of some vendor-specific drivers and software.
In Linux one can relatively easy configure software raid. By the way, Ubuntu allows to configure raid during initial OS setup