Unable to install NVIDIA driver on various GCP Ubuntu VM s with Tesla K80 GPU

0 votes

I have followed the guide on GCP below with Ubuntu 18 and 20 ( have also tried Ubuntu Lite , Debian and Centos 7 ):

https://cloud.google.com/compute/docs/gpus/install-drivers-gpu

Unfortunately, after completing the lengthy install I get this:

me@gpu:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

Have tried installing via the script and via the direct downloads from Nvidia site for Cuda 10. Ready to pull my hair out if that helps! I don't understand how a company that builds a bazillion gpu's can't make the installation process robust?

Mar 19 in GCP by Rahul
• 2,540 points
47 views

1 answer to this question.

0 votes
If you've installed the driver so many times and nvidia-smi is still failing to communicate. Take a look into prime-select

1. Run prime-select query this way you are going to get all possible options, it should show at least nvdia | intel

2. Select prime-select nvidia

3. Then if you see nvidia is already selected, choose a different one, eg. prime-select intel. Next switch back to nvidia prime select nvidia

4. Reboot and check nvidia-smi.

Plus it could also be a good idea to run sudo apt install nvidia-cuda-toolkit.

When it finishes, reboot the machine and nvidia-smi should work.
answered Mar 20 by Korak
• 4,460 points

Related Questions In GCP

0 votes
1 answer

How to install GPU driver for a ubuntu 18.04 instance?

After you create an instance with one ...READ MORE

answered Nov 7, 2019 in GCP by Sirajul
• 59,170 points
1,198 views
+3 votes
1 answer

GCP Error: "Unable to connect on port 22"

You may see this error under the ...READ MORE

answered Sep 24, 2019 in GCP by Sirajul
• 59,170 points
5,837 views
0 votes
1 answer
0 votes
2 answers

How to install gcp in Python?

If you're accessing BigQuery in python, you ...READ MORE

answered Aug 20, 2018 in GCP by Priyaj
• 58,060 points
922 views
0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,170 points
951 views
0 votes
1 answer

How to allow outbound traffic on a custom port in gcp?

To allow outbound traffic through a custom ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,170 points
2,160 views
0 votes
1 answer

Cannot connect to my VM instance on GCP via SSH.

This might be because UFW is installed. ...READ MORE

answered Sep 27, 2019 in GCP by Sirajul
• 59,170 points
3,208 views
0 votes
1 answer

Unable to install NVIDIA driver on various GCP Ubuntu VM's with Tesla K80 GPU

The mistake you are making here is ...READ MORE

answered Apr 5 in GCP by Korak
• 4,460 points
59 views
0 votes
1 answer

Unable to connect through SSH with VS-Code in Mac to a remote GCP VM

It looks to be a specific error ...READ MORE

answered Mar 20 in GCP by Korak
• 4,460 points
35 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP