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.
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.
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.