ESXI 6.7 passthrough GeForce GT 1030 to Ubuntu

ewok2

New Member
Apr 7, 2021
17
0
1
Ok I will try
thanks

And your test was a good one.
I plug a screen and he remain black.
So now I am sure the CGU is not working in Ubuntu :) despite the fact that is it seen by the kernel
 

superempie

Member
Sep 25, 2015
58
8
8
The Netherlands
But you do get full output with nvidia-smi?

Something like this:
Code:
Sun Dec 16 17:09:17 2018      
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.78       Driver Version: 410.78       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:0B:00.0 Off |                  N/A |
|  0%   29C    P5     9W / 132W |      0MiB /  6078MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
(yes, it's old ;) )
 

ewok2

New Member
Apr 7, 2021
17
0
1
@Rand I will have a look at your interesting link...

nvidia-smi
Wed Apr 7 20:41:19 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.67 Driver Version: 460.67 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GT 1030 Off | 00000000:03:00.0 Off | N/A |
| 35% 38C P0 N/A / 30W | 0MiB / 2001MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
 

ewok2

New Member
Apr 7, 2021
17
0
1
But when I try to open the "nvidia-settings" I get only a empty windows...

nvidia-settings

ERROR: Unable to load info from any available system


(nvidia-settings:2156): GLib-GObject-CRITICAL **: 20:45:18.406: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 20:45:18.409: PRIME: No offloading required. Abort
** Message: 20:45:18.409: PRIME: is it supported? no
And it seem's nvidia is the graphic card selected by the way...
prime-select query
nvidia
 

ewok2

New Member
Apr 7, 2021
17
0
1
Yes I try glxgears and it works I see the gear.
I can even launch firefoxe, yuzu or other app

No I am on a classicall Motherborad with ESXI on it without any display, keyborad (except when I have installed ESXI :) )
 

superempie

Member
Sep 25, 2015
58
8
8
The Netherlands
The thing I would check now is if you can get output on the GPU to a monitor. Maybe try installing Ubuntu with desktop and check a game or something.
But looking at your nvidia-smi output, your GPU is working. In a command line situation, I would install BOINC and use a project like Milkyway@Home or something to see if my GPU is detected and used.
Now just get it to work with an X session might be the challenge.
 

ewok2

New Member
Apr 7, 2021
17
0
1
Thanks for help
I am not woried about X session.
I thinks once the CG will works on a monitor it may work.
You are right, i will try to creat a VM with a desktop Ubuntu to see if is better (but tomorow :) I will go to bed ...
Thanks for the help!!!!
 

ewok2

New Member
Apr 7, 2021
17
0
1
Some news on this probleme...
I tryto install a windows vm on esxi.
Windows detect the card (but no output on the hdmi output of the card neither)
And when I try to install the Nvidia configuration tools Windows crash and the card is no more display...

So 1 information, it seem's not to be a Ubuntu problem with the card
- eiter it is ESXI parameter missing
- either it is a card HW problem

I will try to borow a working card to a friends...

But if you have test to suggest... your are welcome :)
 

superempie

Member
Sep 25, 2015
58
8
8
The Netherlands
What I usually do is:
1) Install Windows, install VMware Tools, update everything and reboot. Do not passthrough GPU yet.
2) At this point use the web console. Download Nvidia driver, but not install it yet. Right now you want version 465.89 for Windows as Rand__ pointed out.
3) Install TightVNC or some other remote desktop client in case you loose image in the steps after this one. That way you can remote into it, even when no image appears and web console is not working. Setting a password and remembering it, is a smart thing to do. ;)
4) Shutdown VM and connect GPU to VM. Boot up VM.
5) Install Nvidia driver. If no image on monitor, use TightVNC and install driver. Web console probably won't work anymore. After installing the image should appear on the monitor connected to the card. If not, try rebooting. Check device management afterwards to see if the card works and does not show an error code.
6) In case of no boot up or no image, play with setting svga.present advanced parameter on the VM.
7) When all is working, you may uninstall TightVNC or leave it running in case you need to troubleshoot.

You may also want to figure out if the card is connected to the PCI-E slot that is directly connected to the CPU. If a chipset is in between, that can cause trouble. Check your motherboard manual for that.

Also, try passing through the audio controller of the card to the VM.

Edit: Also, the hypervisor hiding parameter should only be necessary now when using an older Nvidia driver, if you run Linux or another OS, or if you run software that doesn't like you running it in a VM. I read some anti-cheat software might do this.

Edit 2: When using DisplayPort, you might need to do this first from within normal, bare-metal Windows (at your own risk of course): NVIDIA Graphics Firmware Update Tool for DisplayPort 1.3 and 1.4 Displays
I had to do this on a couple of my GPU's because of weird issues with DisplayPort.
 
Last edited:

ewok2

New Member
Apr 7, 2021
17
0
1
Hello
Thanks for tuto and driver (I am not good in windows...)
I try :
I did not need VNC as I keep my web screen during all the time.
The "real screen" does not work
When I install the Nvidia Driver I get a kind of blue srcreen error like in the picture in link :

I will try this card in another PC...