Cannot use nvidia cards for GLX in Ubuntu 18.04

Hi, I am using a server with embeded aspeed gpu and several nvidia 1080ti.

I tried to run opengl apps on nvidia gpu but found it always failed. Then vender of the glxinfo showed llvmpipe
and vmware instead of nvidia. I checked my Xorg.0.log and it indeed showed that

LoadModule: "glx"
[    16.909] (II) Loading /usr/lib/xorg/modules/extensions/
[    16.9Preformatted text10] (II) Module glx: vendor="X.Org Foundation"
[    16.910]    compiled for 1.20.8, module version = 1.0.0
[    16.910]    ABI class: X.Org Server Extension, version 10.0

the xserver do not init nvidia library for glx. I searched online and found that some solutions suggested adding module path of in xorg.config; however, my server do not contain the file like that, only seeing


for the loaded submodule glx server.

I want to have the server running opengl apps and shows the result on the virtual screen connected by xrdp so I feel like glxserver module is not really what I want. I dont know how to do it though, could anyone give me some suggestions? please…

For me, the most confusing part is that I found others having nvidia existing somewhere after installing nvidia-driver but mine just not having any thing like that.