How to select Primary Graphic Card ?? No screen found after driver installed
Hi All Experts,
I'm new to linux and im currently using RHEL 6.7 with a GPU passthrough on a VMWare vSphere. RHEL able to detect both onboard and PCI Nvidia card with lspci [root@RHEL6 ~]# lspci | grep VGA 00:0f.0 VGA compatible controller: VMware SVGA II Adapter 0b:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K6000] (rev a1) Nvidia Driver installed with nouveau driver disabled and able to run nvidia-smi command [root@RHEL6 ~]# nvidia-smi Thu Dec 31 02:19:05 2015 +------------------------------------------------------+ | NVIDIA-SMI 352.63 Driver Version: 352.63 | |-------------------------------+----------------------+----------------------+ | 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 K6000 Off | 0000:0B:00.0 Off | Off | | 0% 40C P0 35W / 225W | 24MiB / 12287MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ However the xorg.conf not able to startx and keep complain with error (ee) no screen found. Below is the xorg.conf file for reference. After some checking i see RHEL still select the onboard graphic as primary from the /var/log/Xorg.0.log [ 360.129] (--) PCI:*(0:0:15:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe8000000/134217728, 0xfe000000/8388608, I/O @ 0x00001070/16, BIOS @ 0x????????/32768 [ 360.129] (--) PCI: (0:11:0:0) 10de:103a:103c:1036 rev 161, Mem @ 0xfc000000/16777216, 0xd0000000/268435456, 0xe4000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/65536 ========================================================================= # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 352.63 (buildmeister@swio-display-x64-rhel04-11) Sat Nov 7 22:00:19 PST 2015 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from data in "/etc/sysconfig/keyboard" Identifier "Keyboard0" Driver "kbd" Option "XkbLayout" "us" Option "XkbModel" "pc105" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection Anyone have any idea? Thanks |
If you are passing through your GPU, there is normally a pci-stub driver line on your kernel options preventing the Nvidia driver from using the gpu. I note that the driver seems to correctly report 0 cards available. Presumably you installed the driver first, then set up passthrough? Please post your kernel mode line from grub or systemd boot or whichever boot manager you are using.
|
Hi mostlyharmless,
Thanks for your kind help. Hereby is the grub kernel mode line #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux 6 (2.6.32-573.el6.x86_64) root (hd0,0) kernel /tboot.gz logging=vga,serial,memory module /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root intel_iommu=on amd_iommu=on nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_rhel6/lv_swap crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_rhel6/lv_root rd_NO_DM rhgb quiet nouveau.modeset=0 rdblacklist=nouveau module /initramfs-2.6.32-573.el6.x86_64.img /etc/grub.conf (END) Also i able to see the device are added in /var/log/message Jan 1 01:46:21 RHEL6 kernel: vgaarb: device added: PCI:0000:00:0f.0,decodes=io+mem,owns=io+mem,locks=none Jan 1 01:46:21 RHEL6 kernel: vgaarb: device added: PCI:0000:0b:00.0,decodes=io+mem,owns=none,locks=none |
Ah, I misunderstood. Your question is about your guest not your host, right? Unfortunately I know nothing about VMsphere. I do note that most modern X setups don't use an xorg.conf anymore. Have you tried running Xorg --configure ?
|
Yes i do use X -configure but still fail to startx, i tried to use the vesa instead of nvidia in xorg.conf it able to startx but just wont able to utilize the nvidia card. Not sure whats wrong
|
All times are GMT -5. The time now is 07:09 AM. |