Recent versions of opensource Linux OpenGL drivers (that is, drivers provided by Mesa [1]) support rendering on headless machines without a window system. The Intel Mesa team (to which I belong) uses this feature to run OpenGL tests on headless machines with no X server.
A coworker and I added the support for headless rendering to Mesa's testsuite, Piglit [2], by using the Waffle [3] framework atop libEGL's GBM backend. (GBM stands for Generic Buffer Manager, and is used to manage GPU buffers without an intermediary display server).
A possible showstopper, if you wish to pursue this approach, is that to my knowledge EGL with GBM is only supported by opensource Linux drivers. If your appplication must support another Unix or proprietary drivers, this approach won't work.
If you're interested pursuing using EGL/GBM, I can point you to some example code.
(By the way, if you're unfamiliar with EGL, it's a modern replacement for GLX whose API is independent of window system. If you're comfortable with GLX, then you should feel at home with EGL because the two API's are very similar).
[1] http://mesa3d.org
[2] http://piglit.freedesktop.org
[3] http://people.freedesktop.org/~chadversary/waffle