libGL error: failed to load driver: swrast error on AmazonEC2 with Ubuntu14

h4k1m asked:

I have a t2.large instance on Amazon EC2 with 8Go of ram and 30Go of disk space.

The OS used is Ubuntu 14.04 Trusty and the desktop manager is xfce4. I’m using xrdp to remotely access the desktop, and it is working relatively well.

However, I have issues with some GUI applications, the error I get is:

libGL error: failed to load driver: swrast

The graphic card is:

$ lshw -C video+
*-display UNCLAIMED
    description: VGA compatible controller
    product: GD 5446
    vendor: Cirrus Logic
    physical id: 2
    bus info: pci@0000:00:02.0
    version: 00
    width: 32 bits
    clock: 33MHz
    capabilities: vga_controller bus_master
    configuration: latency=0
    resources: memory:f0000000-f1ffffff memory:f3000000-f3000fff

And I cannot find the driver for this graphic card (Cirrus Logic).

Is it possible to change the Graphic card with AmazonEC2? Or is there a universal driver for all graphic cards on Ubuntu?

Thanks.

My answer:


The software you are running is trying to use OpenGL, but the virtual hardware is not OpenGL-capable. The virtual machine emulates a mid-1990’s Cirrus video card which is barely capable of displaying graphics at all.

In order to run software that requires OpenGL on Amazon EC2, you must use a GPU (G2 or CG1) instance.

Considering that this may be significantly more expensive than the instance you are using now, you may wish to simply continue downloading images to check them as you are now.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.