VirtualBox

3 年 前 建立

3 年 前 結束

2 年 前 更新

#20877 closed defect (fixed)

guest additions does not work on centos 8 stream

回報者: milesnick 負責人:
元件: guest additions/x11/graphics 版本: VirtualBox 6.1.32
關鍵字: 副本: 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC)
Guest type: Linux Host type: Windows

描述

the new kernel headers does not have drm/ttm/ttm_memory.h so the modules cannot build

[root@localhost ttm]# pwd /usr/src/kernels/4.18.0-365.el8.x86_64/include/drm/ttm [root@localhost ttm]# ll total 92 -rw-r--r--. 1 root root 19274 Feb 10 11:20 ttm_bo_api.h -rw-r--r--. 1 root root 10316 Feb 10 11:20 ttm_bo_driver.h -rw-r--r--. 1 root root 1400 Feb 10 11:20 ttm_caching.h -rw-r--r--. 1 root root 8800 Feb 10 11:20 ttm_device.h -rw-r--r--. 1 root root 4481 Feb 10 11:20 ttm_execbuf_util.h -rw-r--r--. 1 root root 1892 Feb 10 11:20 ttm_kmap_iter.h -rw-r--r--. 1 root root 2768 Feb 10 11:20 ttm_placement.h -rw-r--r--. 1 root root 2821 Feb 10 11:20 ttm_pool.h -rw-r--r--. 1 root root 967 Feb 10 11:20 ttm_range_manager.h -rw-r--r--. 1 root root 8965 Feb 10 11:20 ttm_resource.h -rw-r--r--. 1 root root 6470 Feb 10 11:20 ttm_tt.h

Building the main Guest Additions 6.1.32 module for kernel 4.18.0-365.el8.x86_64. Building the shared folder support module. Building the graphics driver module. Error building the module. Build output follows. make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.18.0-365.el8.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules

test -e include/generated/autoconf.h -a -e include/config/auto.conf
( \

echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/* make -f ./scripts/Makefile.build obj=/tmp/vbox.0 (cat /dev/null; echo kerneltmp/vbox.0/vboxvideo.ko;) > /tmp/vbox.0/modules.order

gcc -Wp,-MD,/tmp/vbox.0/.hgsmi_base.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -DKERNEL -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -DCONFIG_TPAUSE=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -I./include -I/tmp/vbox.0/ -I./include/drm -DKERNEL -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"hgsmi_base"' -DKBUILD_MODNAME='"vboxvideo"' -c -o /tmp/vbox.0/.tmp_hgsmi_base.o /tmp/vbox.0/hgsmi_base.c

In file included from /tmp/vbox.0/hgsmi_base.c:27: /tmp/vbox.0/vbox_drv.h:175:11: fatal error: drm/ttm/ttm_memory.h: No such file or directory

# include <drm/ttm/ttm_memory.h>

~

compilation terminated. make[2]: * [scripts/Makefile.build:316: /tmp/vbox.0/hgsmi_base.o] Error 1 make[1]: * [Makefile:1577: _module_/tmp/vbox.0] Error 2 make: * vboxvideo Error 2

附加檔案 (2)

vboxadd-setup.log.1 (3.4 KB ) - 3 年 前, 由 milesnick 新增
vboxadd-setup.log
vboxadd-setup.log.2.1 (3.4 KB ) - 3 年 前, 由 milesnick 新增
vboxadd-setup.log

下載所有附檔: .zip

更動歷史 (6)

3 年 前milesnick 編輯

附檔: 新增 vboxadd-setup.log.1

vboxadd-setup.log

3 年 前milesnick 編輯

附檔: 新增 vboxadd-setup.log.2.1

vboxadd-setup.log

comment:1 3 年 前piters 編輯

Reported also as #20861

comment:2 3 年 前sergiomb 編輯

VB host kernel drivers fail to build on CentOS 8 Stream kernel 4.18.0-365 ,

RHEL_MAJOR = 8 RHEL_MINOR = 6

also mention on #20289

comment:3 3 年 前galitsyn 編輯

狀態: newclosed
處理結果: fixed

This issue was fixed in VirtualBox 6.1.34. Thank you for reporting. Closing.

comment:4 2 年 前fsaeda 編輯

To obtain the most recent kernel header package, you need usually run yum update on your machine. Install VirtualBox Guest Additions on the guest OS to resolve this issue and make VirtualBox full screen.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette