How can I render a cubemap with Blender Internal?
Regardless of which render engine you use, the process is the same.

It has been explained well here.

Personally I find rendering a single-image equirectangular environment map to be easier, but I understand you may have specific reasons for needing a cube map.