CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ParaView (
-   -   pvbatch & Amazon EC2 (

julien.decharentenay September 24, 2013 03:31

pvbatch & Amazon EC2

I have been trying for a few weeks (on and off) to get pvbatch to work on an amazon ec2 ubuntu instance.

I focused on getting pvbatch to work through Xvfb - which sounded like the most obvious/easiest thing to do. I am using ParaView binaries from the

When pvbatch starts it returns the following error message:


libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/
libGL error: failed to load driver: swrast

The file

does exist, but does not load.

Note: I have not tried using the tag

as per

Do you think that I should try to move ahead with Xvfb (any other tip beyond the LIBGL_ALWAYS_INDIRECT) or drop Xvfb for OSMesa? Is there any binary distribution of ParaView with OSMesa support or do I have to compile it from source?

Thanks in advance.

wyldckat September 28, 2013 12:05

Hi Julien,

Using Xvfb in EC2 probably will only work for basic stuff, such as XTerm. ParaView is pretty hardcore when it comes to using OpenGL :)

If you're using the Ubuntu instance, have you tried the ParaView builds dedicated for Ubuntu?

Beyond this, my guess is that you have to build from source code.

OpenFOAM's makeParaView script already has pretty good options for building with OSMesa as well, but I haven't tried it since my days of helping out with the Nucleation project (OpenFOAM 1.6.x):

Best regards,

julien.decharentenay September 28, 2013 20:31

Hi Bruno,

Thanks a lot for your response. I have dropped Xvfb as it did not seem to be getting anywhere and moved on to building ParaView from scratch with OSmesa. I am slowly going through it.

For the record:
- had to add /usr/lib/x86_64-linux-gnu to the cmake UnixPaths.cmake (from memory);
- had to change the GL and Mesa library to /usr/include/GL
- had to add /usr/lib/x86_64-linux-gnu/mesa/ (as gl_library)
Probably more alterations to follow.

I was getting frustrated so installed quite a bunch of library/utils/etc so they are too long to list (and probably most are irrelevant).

julien.decharentenay September 29, 2013 06:21

I finished building ParaView with OSmesa and running a few initial test on Amazon EC2. It looks like a working solution.

All times are GMT -4. The time now is 08:26.