Cuda install failure on Ubuntu VM

On a Ubuntu 18.04 VM running under Windows 11, I attempted install of CUDA toolkit 11.6
Installation failed. It says driver did not install, but doesn’t say why.
What do I do now?

antonio@VM2:~$ sudo sh cuda_11.6.2_510.47.03_linux.run
[sudo] password for antonio:
Installation failed. See log at /var/log/cuda-installer.log for details.

antonio@VM2:~$ cat /var/log/cuda-installer.log
[INFO]: Driver not installed.
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc

[INFO]: gcc version: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Components to install:
[INFO]: Driver
[INFO]: 510.47.03
[INFO]: Executing NVIDIA-Linux-x86_64-510.47.03.run --ui=none --no-questions --a
ccept-license --disable-nouveau --no-cc-version-check --install-libglvnd 2>&1
[INFO]: Finished with code: 256
[ERROR]: Install of driver component failed.
[ERROR]: Install of 510.47.03 failed, quitting
antonio@VM2:~$
antonio@VM2:~$

What GPU are you using?

I’m using RTX A4000 GPU.

Just checking it wasn’t too old for the toolkit, (it’s not).

I know it is not a hardware issue, because I have CUDA installed on the Windows 11 OS, where it works just fine, working of course with the very same one-and-only GPU.

It is the Ubuntu VM running under windows where CUDA will not install, so it has to be something associated with the VM.

Is there perhaps something I need to do differently when installing in a VM? I have not found anything in the NVDIA docs that mentions anything different for a VM.

Would like to hear whether others have installed on a VM.

I have resolved this issue!

It turns out that Microsoft hyper-v on windows 11 does not yet support GPU use by a cuda program.

However, WSL (windows subsystem for Linux) does. So I moved from a hyper-v VM to WSL, and now I’m able to build Linux cuda executables, and run them, on my windows machine.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.