yrahal / ec2-setup Goto Github PK
View Code? Open in Web Editor NEWA collection of scripts to prepare AWS EC2 images to work with Docker, nvidia-docker, and VirtualGL
License: MIT License
A collection of scripts to prepare AWS EC2 images to work with Docker, nvidia-docker, and VirtualGL
License: MIT License
Hi!
Very useful repo. Exactly what i needed and very clear all the way.
In install-nvidia-drivers-g2.sh
, the link for the Nvidia drivers is for the outdated versions. I used the following instead and it worked fine:
http://us.download.nvidia.com/XFree86/Linux-x86_64/430.40/NVIDIA-Linux-x86_64-430.40.run
My instance is for g2.2xlarge instance with the K520 GPU.
AWS provide now AMI optimized for GPU instance. cuda and nvidia-docker will be already installed
https://docs.aws.amazon.com/eks/latest/userguide/gpu-ami.html
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.