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, 2022 in GCP by Rahul
• 3,380 points
624 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, 2022 by Korak
• 5,820 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,230 points
1,793 views
0 votes
0 answers

how to install virtualenv on Ubuntu 20.04 GCP instance?

I am trying to install python3 virtualenv. ...READ MORE

Nov 8, 2022 in GCP by Ashwini
• 5,430 points
662 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,230 points
7,556 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,090 points
1,409 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,230 points
1,548 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,230 points
4,371 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, 2022 in GCP by Korak
• 5,820 points
858 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, 2022 in GCP by Korak
• 5,820 points
1,315 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP