Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1704513

Summary: [Hyper-V][RHEL 8.0]Startx failed when pass through GPU on Hyper-V guest
Product: Red Hat Enterprise Linux 8 Reporter: HuijingHei <hhei>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: HuijingHei <hhei>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.0CC: ajax, alex.williamson, bigdaddy, csoriano, decui, dengjianqing, hhei, jahammo, jjarvis, josalisb, kem, knoel, leiwang, ofourdan, ribarry, tpelka, vkuznets, xiaofwan, xuli, yacao, yuxisun
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-x11-server-1.20.6-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1665433 Environment:
Last Closed: 2020-04-28 15:41:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1665433    
Bug Blocks: 1746622    

Comment 1 HuijingHei 2019-04-30 02:15:04 UTC
Pass through gpu card to rhel8.0 guest, startx failed, this is the logs on rhel8 guest.
# uname -r
4.18.0-80.el8.x86_64

# lspci  -v
9c3c:00:00.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K2] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: NVIDIA Corporation Device 100a
	Physical Slot: 59060
	Flags: bus master, fast devsel, latency 0, IRQ 24, NUMA node 0
	Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
	Memory at fe0000000 (64-bit, prefetchable) [size=128M]
	Memory at fe8000000 (64-bit, prefetchable) [size=32M]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [420] Advanced Error Reporting
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] #19
	Kernel driver in use: nouveau
	Kernel modules: nouveau

# startx

# cat /var/log/Xorg.0.log

[ 53722.348] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[ 53722.348] Build Operating System:  4.14.0-49.el7a.noaead.x86_64 
[ 53722.348] Current Operating System: Linux bootp-73-131-241.rhts.eng.pek2.redhat.com 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64
[ 53722.348] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-4.18.0-80.el8.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap
[ 53722.349] Build Date: 22 February 2019  07:47:26PM
[ 53722.349] Build ID: xorg-x11-server 1.20.3-5.el8 
[ 53722.349] Current version of pixman: 0.36.0
[ 53722.349] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 53722.349] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 53722.349] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 30 09:29:02 2019
[ 53722.350] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 53722.350] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 53722.367] (==) No Layout section.  Using the first Screen section.
[ 53722.367] (==) No screen section available. Using defaults.
[ 53722.367] (**) |-->Screen "Default Screen Section" (0)
[ 53722.367] (**) |   |-->Monitor "<default monitor>"
[ 53722.367] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[ 53722.367] (==) Automatically adding devices
[ 53722.367] (==) Automatically enabling devices
[ 53722.367] (==) Automatically adding GPU devices
[ 53722.367] (==) Automatically binding GPU devices
[ 53722.367] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 53722.367] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d,
	built-ins
[ 53722.367] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 53722.367] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 53722.367] (II) Loader magic: 0x559747db7020
[ 53722.367] (II) Module ABI versions:
[ 53722.367] 	X.Org ANSI C Emulation: 0.4
[ 53722.367] 	X.Org Video Driver: 24.0
[ 53722.367] 	X.Org XInput driver : 24.1
[ 53722.367] 	X.Org Server Extension : 10.0
[ 53722.369] (++) using VT number 1

[ 53722.371] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 53722.372] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 53722.372] (II) Platform probe for /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/3f8b74e9-05b6-4bd6-a14f-89aab31a0a31/pcia14f:00/a14f:00:00.0/drm/card0
[ 53722.379] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 53722.403] (--) PCI:*(0@41295:0:0) 10de:11bf:10de:100a rev 161, Mem @ 0xfa000000/16777216, 0xfe0000000/134217728, 0xfe8000000/33554432, BIOS @ 0x????????/131072
[ 53722.403] (II) LoadModule: "glx"
[ 53722.403] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 53722.426] (II) Module glx: vendor="X.Org Foundation"
[ 53722.426] 	compiled for 1.20.3, module version = 1.0.0
[ 53722.426] 	ABI class: X.Org Server Extension, version 10.0
[ 53722.503] (==) Matched modesetting as autoconfigured driver 0
[ 53722.503] (==) Matched fbdev as autoconfigured driver 1
[ 53722.503] (==) Matched vesa as autoconfigured driver 2
[ 53722.503] (==) Assigned the driver to the xf86ConfigLayout
[ 53722.503] (II) LoadModule: "modesetting"
[ 53722.503] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 53722.508] (II) Module modesetting: vendor="X.Org Foundation"
[ 53722.508] 	compiled for 1.20.3, module version = 1.20.3
[ 53722.508] 	Module class: X.Org Video Driver
[ 53722.508] 	ABI class: X.Org Video Driver, version 24.0
[ 53722.508] (II) LoadModule: "fbdev"
[ 53722.509] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[ 53722.513] (II) Module fbdev: vendor="X.Org Foundation"
[ 53722.513] 	compiled for 1.20.1, module version = 0.5.0
[ 53722.513] 	Module class: X.Org Video Driver
[ 53722.513] 	ABI class: X.Org Video Driver, version 24.0
[ 53722.513] (II) LoadModule: "vesa"
[ 53722.513] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 53722.516] (II) Module vesa: vendor="X.Org Foundation"
[ 53722.516] 	compiled for 1.20.2, module version = 2.4.0
[ 53722.516] 	Module class: X.Org Video Driver
[ 53722.516] 	ABI class: X.Org Video Driver, version 24.0
[ 53722.516] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 53722.516] (II) FBDEV: driver for framebuffer: fbdev
[ 53722.516] (II) VESA: driver for VESA chipsets: vesa
[ 53722.521] (WW) Falling back to old probe method for modesetting
[ 53722.527] (II) modeset(1): using default device
[ 53722.527] (II) Loading sub module "fbdevhw"
[ 53722.527] (II) LoadModule: "fbdevhw"
[ 53722.527] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[ 53722.532] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 53722.533] 	compiled for 1.20.3, module version = 0.0.2
[ 53722.533] 	ABI class: X.Org Video Driver, version 24.0
[ 53722.533] (EE) Unable to find a valid framebuffer device
[ 53722.533] (WW) Falling back to old probe method for fbdev
[ 53722.533] (II) Loading sub module "fbdevhw"
[ 53722.533] (II) LoadModule: "fbdevhw"
[ 53722.533] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[ 53722.533] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 53722.533] 	compiled for 1.20.3, module version = 0.0.2
[ 53722.533] 	ABI class: X.Org Video Driver, version 24.0
[ 53722.533] (II) FBDEV(3): using default device
[ 53722.533] vesa: Refusing to run on UEFI
[ 53722.533] (II) modeset(G0): using drv /dev/dri/card0
[ 53722.533] (EE) Screen 0 deleted because of no matching config section.
[ 53722.533] (II) UnloadModule: "modesetting"
[ 53722.533] (EE) Screen 1 deleted because of no matching config section.
[ 53722.533] (II) UnloadModule: "fbdev"
[ 53722.533] (II) UnloadSubModule: "fbdevhw"
[ 53722.533] (EE) 
Fatal server error:
[ 53722.533] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[ 53722.533] (EE) 
[ 53722.533] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[ 53722.533] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 53722.533] (EE) 
[ 53722.537] (EE) Server terminated with error (1). Closing log file.

Comment 18 errata-xmlrpc 2020-04-28 15:41:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1633