Run UE4 from a headless Ubuntu 18.04 server via VNC

Hi,

I am using an Ubuntu 18.04 server with 2 graphic cards:

nvidia-smi Tue Mar 5 12:23:04 2019
±----------------------------------------------------------------------------+ | NVIDIA-SMI 396.82 Driver Version: 396.82 | |-------------------------------±---------------------±---------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1080 Off | 00000000:01:00.0 Off | N/A | | 0% 29C P0 36W / 200W | 0MiB / 8119MiB | 0% Default | ±------------------------------±---------------------±---------------------+ | 1 GeForce GTX 1080 Off | 00000000:02:00.0 Off | N/A | | 0% 25C P0 36W / 200W | 0MiB / 8119MiB | 2% Default | ±------------------------------±---------------------±---------------------+

I am connecting to the server by vnc from the client’s side and want to render and run simulations in UE4 following https://carla.readthedocs.io/en/latest/carla_headless/. However, when I run : vglrun -d :1.0 ~/UnrealEngine/Engine/Binaries/Linux/UE4Editor ~/UnrealEngine/AirSim/Unreal/Environments/Blocks/Blocks.uproject

it complains that " Cannot create OpenGL context. Check that the drivers and hardware support at least OpenGl 4.3 (or re-run with -opengl3). If I use -opengl3, it causes Segmentation fault and crashes. When I try to upgrade the OpenGL version (which currently is 3.3):

sudo apt-get dist-upgrade Reading package lists… Done Building dependency tree
Reading state information… Done You might want to run ‘apt --fix-broken install’ to correct these. The following packages have unmet dependencies: libglx-mesa0 : Depends: libglapi-mesa (= 18.2.2-0ubuntu1~18.04.2) but 18.3.3-1ubuntu1~18.04~ppa1 is installed E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

I don’t know how to solve the issue. Does anyone have some experience?

Thank you,