NVIDIA
M5000 GPU Pass-through to VM
I am having an issue with getting a VM to load and display a graphics package. The VM is running RHEL 7 VM that is using PCI Pass-through I created a Linux RHEL x64 VM. I was able to activate the M5000 GPU for the VM via PCI. When the VM boots, a modified XORG RHEL OS is loaded via a PXE menu. I can see the OS load as there are several messages being displayed on the VM screen. It continues and then it stops at the message: “Started OpenSSH server daemon” Looking at the Xorg.log, I see messages such as: NVIDIA GLX Module 390.25 .... Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so NVIDIA Unified Driver for all Supported NVIDIA GPUs Using VT number 1 No device detected Fatal Server Error No screens found I am not sure what this specialized OS runs, but it loaded on physical server and works. Any ideas on what i need to add or modify to get the OS to load and run the graphics to the VM screen?
I am having an issue with getting a VM to load and display a graphics package.
The VM is running RHEL 7 VM that is using PCI Pass-through


I created a Linux RHEL x64 VM.
I was able to activate the M5000 GPU for the VM via PCI.

When the VM boots, a modified XORG RHEL OS is loaded via a PXE menu.

I can see the OS load as there are several messages being displayed on the VM screen.
It continues and then it stops at the message:
“Started OpenSSH server daemon”

Looking at the Xorg.log, I see messages such as:

NVIDIA GLX Module 390.25 ....
Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
NVIDIA Unified Driver for all Supported NVIDIA GPUs

Using VT number 1

No device detected

Fatal Server Error

No screens found


I am not sure what this specialized OS runs, but it loaded on physical server and works.

Any ideas on what i need to add or modify to get the OS to load and run the graphics to the VM screen?

#1
Posted 06/11/2018 06:18 PM   
You should check other things in guest: [code]# ### device visible: # lspci -vvv -d 10de:* # ### driver loaded: # lsmod | grep nvidia # ### no errors in driver: # dmesg | egrep 'nvidia|NVRM' # ### driver responding to basic command (try two times): # nvidia-smi [/code]
You should check other things in guest:
# ### device visible:
# lspci -vvv -d 10de:*
# ### driver loaded:
# lsmod | grep nvidia
# ### no errors in driver:
# dmesg | egrep 'nvidia|NVRM'
# ### driver responding to basic command (try two times):
# nvidia-smi

#2
Posted 06/17/2018 09:49 PM   
thanks,,, i will run these and report later.. i did create a new RHEL 7 VM and loaded the PXE image,..same info below.. [b]The xorg file shows [/b] [ 19.153] (II) Module glx: vendor="NVIDIA Corporation" [ 19.154] compiled for 4.0.2, module version = 1.0.0 [ 19.154] Module class: X.Org Server Extension [ 19.154] (II) NVIDIA GLX Module 390.25 Wed Jan 24 19:23:51 PST 2018 [ 19.154] (II) LoadModule: "nvidia" [ 19.154] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so [ 19.154] (II) Module nvidia: vendor="NVIDIA Corporation" [ 19.154] compiled for 4.0.2, module version = 1.0.0 [ 19.154] Module class: X.Org Video Driver [ 19.154] (II) NVIDIA dlloader X Driver 352.93 Wed Jan 24 18:57:05 PST 2018 [ 19.154] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 19.154] (++) using VT number 1 [ 19.157] (EE) No devices detected. [ 19.157] (EE) Fatal server error: [b]If I issue a nvdia-msi, I can see the driver is loaded and working the card..[/b] Mon Jun 18 15:56:53 2018 +------------------------------------------------------+ | NVIDIA-SMI 390.25 Driver Version: 390.25 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 Quadro M5000 Off | 00000000:0B:00.0 Off | N/A | | 0% 34C P0 46W / 150W | 0MiB / 8126MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+
thanks,,,
i will run these and report later..

i did create a new RHEL 7 VM and loaded the PXE image,..same info below..

The xorg file shows

[ 19.153] (II) Module glx: vendor="NVIDIA Corporation"
[ 19.154] compiled for 4.0.2, module version = 1.0.0
[ 19.154] Module class: X.Org Server Extension
[ 19.154] (II) NVIDIA GLX Module 390.25 Wed Jan 24 19:23:51 PST 2018
[ 19.154] (II) LoadModule: "nvidia"
[ 19.154] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 19.154] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 19.154] compiled for 4.0.2, module version = 1.0.0
[ 19.154] Module class: X.Org Video Driver
[ 19.154] (II) NVIDIA dlloader X Driver 352.93 Wed Jan 24 18:57:05 PST 2018
[ 19.154] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 19.154] (++) using VT number 1

[ 19.157] (EE) No devices detected.
[ 19.157] (EE)
Fatal server error:

If I issue a nvdia-msi, I can see the driver is loaded and working the card..

Mon Jun 18 15:56:53 2018
+------------------------------------------------------+
| NVIDIA-SMI 390.25 Driver Version: 390.25 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro M5000 Off | 00000000:0B:00.0 Off | N/A |
| 0% 34C P0 46W / 150W | 0MiB / 8126MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

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

#3
Posted 06/19/2018 02:33 PM   
Try this (explicit 'BusID "PCI:11:00:0"'): [url]https://gridforums.nvidia.com/default/topic/962/#3387[/url]
Try this (explicit 'BusID "PCI:11:00:0"'): https://gridforums.nvidia.com/default/topic/962/#3387

#4
Posted 06/19/2018 05:27 PM   
thanks Are you saying place "PCI:11:00:0" for BusID in the [b]Xorg.conf[/b] file, as in below? What exactly does 11:00:0 represent? Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GRID M60-4Q" BusID "PCI:11:00:0" EndSection
thanks

Are you saying place "PCI:11:00:0" for BusID in the Xorg.conf file, as in below?

What exactly does 11:00:0 represent?


Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GRID M60-4Q"
BusID "PCI:11:00:0"
EndSection

#5
Posted 06/20/2018 11:19 AM   
nvidia-smi "00000000:0B:00.0" -> xorg.conf "PCI:11:00:0" (see "Xorg -scanpci", "man xorg.conf", documentation ...).
nvidia-smi "00000000:0B:00.0" -> xorg.conf "PCI:11:00:0" (see "Xorg -scanpci", "man xorg.conf", documentation ...).

#6
Posted 06/20/2018 12:09 PM   
thanks,,,i will look into this next week and respond when i find out something
thanks,,,i will look into this next week and respond when i find out something

#7
Posted 06/21/2018 11:42 AM   
Scroll To Top

Add Reply