Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g3 instances #2

Closed
PolarNick239 opened this issue Nov 16, 2017 · 4 comments
Closed

g3 instances #2

PolarNick239 opened this issue Nov 16, 2017 · 4 comments

Comments

@PolarNick239
Copy link
Contributor

PolarNick239 commented Nov 16, 2017

Thank you a lot for your scripts! :)

I was able to run OpenGL app on g2, and tried to do so on new g3 instances, but failed. Have you tried them? May be you will have some time to take a look?

My attempt on g3 differs from g2 in driver installation:

sudo apt update
sudo apt install -y awscli
# Configure awscli like described here - http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration
#  - Note that correct region names you can get here - http://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region
#  - Default output format [None]: json
aws configure
aws s3 cp --recursive s3://ec2-linux-nvidia-drivers/ .
lspci | grep VGA
# Ensure that above command output contains this line:
# 00:1e.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev a1) 
#
# Then change install-nvidia-drivers-g2.sh:
# 1) Remove driver download
# 2) Change BusID from 0:3:0 to 0:1e:0
./install-nvidia-drivers-g2_changed.sh

And then on starting X I encounter (/var/log/Xorg.0.log):

...
[   183.350] (II) NVIDIA GLX Module  367.106  Tue May 16 12:35:16 PDT 2017
[   183.350] (II) LoadModule: "nvidia"
[   183.350] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   183.350] (II) Module nvidia: vendor="NVIDIA Corporation"
[   183.350]    compiled for 4.0.2, module version = 1.0.0
[   183.350]    Module class: X.Org Video Driver
[   183.350] (II) NVIDIA dlloader X Driver  367.106  Tue May 16 12:11:13 PDT 2017
[   183.350] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   183.379] (EE) No devices detected.
...
[   183.379] (II) LoadModule: "cirrus"
[   183.380] (WW) Warning, couldn't open module cirrus
[   183.380] (II) UnloadModule: "cirrus"
[   183.380] (II) Unloading cirrus
[   183.380] (EE) Failed to load module "cirrus" (module does not exist, 0)

...
[   183.380] (EE) open /dev/fb0: No such file or directory
[   183.380] (WW) Falling back to old probe method for vesa
[   183.380] (EE) No devices detected.
[   183.380] (EE) 
Fatal server error:
[   183.380] (EE) no screens found(EE) 
[   183.380] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   183.381] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   183.381] (EE) 

P.S. Also I tried suggestion from this topic:

After a bunch of testing, the solution is to not use nvidia-xonfig to generate xorg.conf. X.org won't start with the generated ServerLayout, Monitor and Screen sections (even with UseDisplayDevice "None"). The device section also needs an explicit BusID device added. 

A minimal working config is, e.g.:

Section "DRI"
	Mode 0666
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GRID M60-4Q"
    BusID          "PCI:2:0:0"
EndSection

P.P.S. Installation of sudo apt install xserver-xorg-video-cirrus seems don't help. But I will try again clean install after some time.

@PolarNick239
Copy link
Contributor Author

PolarNick239 commented Nov 17, 2017

I find that xorg.conf expects BusID in decimal, so 0:1e:0 -> 0:30:0, but now I stuck with this:

[   233.597] (EE) NVIDIA(GPU-0): UseDisplayDevice "None" is not supported with GRID
[   233.597] (EE) NVIDIA(GPU-0):     displayless
[   233.597] (EE) NVIDIA(GPU-0): Failed to select a display subsystem.

P.S. I will try to adopt those scripts.

@PolarNick239
Copy link
Contributor Author

PolarNick239 commented Nov 17, 2017

Thanks a lot for your scripts! Seems to finally work! :)

It seems that I just needed to delete section ServerLayout and Screen in xorg.conf.
Also I am installing driver and configuring xorg.conf before VirtualGL configuration.

The final instructions that worked for me on g2 and g3 + Ubuntu 16.04:

P.S. super final instruction for g2, g3, p2 and p3 - https://github.com/agisoft-llc/cloud-scripts

@yrahal
Copy link
Owner

yrahal commented Nov 20, 2017

Thanks @PolarNick239 for your investigation :-) I'll take a look once I'd be about to run on g3. Up till now g2 have been enough for my needs, but that could change soon!
Cheers.

@gridley
Copy link

gridley commented Mar 27, 2019

@PolarNick239 you are an absolute beast. Thanks, this just got paraview working for me on a g3 instance! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants