#19380 closed defect (worksforme)
Guest Additions fail to install on CentOS 7 1908 64bit vdi
Reported by: | brucemohler | Owned by: | |
---|---|---|---|
Component: | guest additions | Version: | VirtualBox 6.1.4 |
Keywords: | centos7 kernel-headers | Cc: | |
Guest type: | Linux | Host type: | Windows |
Description
I'm encountering two problems:
- It can't find the kernel headers.
- modprobe vboxguest fails
First problem. If you've installed the kernel-headers with yum, the directory they end up in is /usr/src/kernels/3.10.0-1062.12.1.el7.x86_64.
This does not match the output of uname -r which is 3.10.0-1062.el7.x86_64.
I created a symlink from the uname -r value to the actual directory and got past that problem but I've just started to troubleshoot the second problem.
The vboxadd-setup.log contains:
Building the main Guest Additions 6.1.4 module for kernel 3.10.0-1062.el7.x86_64. Building the shared folder support module. Building the graphics driver module. modprobe vboxguest failed
The vboxadd-install.log doesn't add any other information nor does the messages file.
How can I help you troubleshoot this problem?
Change History (5)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
You need to check your file /var/log/vboxadd-install.log
here's the script from installing the 6.1.4 GAs in a CenOS 7 guest:
[fbatschu@centos7 ~]$ uname -r 3.10.0-1062.12.1.el7.x86_64 [fbatschu@centos7 ~]$ yum info kernel-headers.x86_64 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.ratiokontakt.de * extras: mirror.eu.oneandone.net * updates: ftp.rz.uni-frankfurt.de Installed Packages Name : kernel-headers Arch : x86_64 Version : 3.10.0 Release : 1062.12.1.el7 Size : 3.7 M Repo : installed From repo : updates Summary : Header files for the Linux kernel for use by glibc URL : http://www.kernel.org/ License : GPLv2 Description : Kernel-headers includes the C header files that specify the : interface between the Linux kernel and userspace libraries and : programs. The header files define structures and constants that : are needed for building most standard programs and are also needed : for rebuilding the glibc package. [fbatschu@centos7 ~]$ ls /usr/src/kernels/ 3.10.0-1062.12.1.el7.x86_64 3.10.0-1062.7.1.el7.x86_64 3.10.0-1062.el7.x86_64 3.10.0-1062.4.3.el7.x86_64 3.10.0-1062.9.1.el7.x86_64 [root@centos7 VBox_GAs_6.1.4]# ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.4 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 6.1.2 of VirtualBox Guest Additions... Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. VirtualBox Guest Additions: To build modules for other installed kernels, run VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version> VirtualBox Guest Additions: or VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all VirtualBox Guest Additions: Building the modules for kernel 3.10.0-1062.12.1.el7.x86_64. VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted [ 16.337535] vboxguest: loading out-of-tree module taints kernel. [ 16.338316] vboxguest: module verification failed: signature and/or required key missing - tainting kernel [ 16.346298] vboxguest: Successfully loaded version 6.1.4 [ 16.346316] vboxguest: misc device minor 58, IRQ 20, I/O port d040, MMIO at 00000000f2400000 (size 0x400000) [ 16.346318] vboxguest: Successfully loaded version 6.1.4 (interface 0x00010004) [ 152.371596] vboxsf: g_fHostFeatures=0x8000000f g_fSfFeatures=0x1 g_uSfLastFunction=29 [ 152.371715] vboxsf: Successfully loaded version 6.1.4 [ 152.371744] vboxsf: Successfully loaded version 6.1.4 on 3.10.0-1062.12.1.el7.x86_64 SMP mod_unload modversions (LINUX_VERSION_CODE=0x30a00) $ lsmod|grep vbox vboxsf 81052 2 vboxguest 348326 6 vboxsf $ cat /var/log/vboxadd-install.log Building the main Guest Additions 6.1.4 module for kernel 3.10.0-1062.12.1.el7.x86_64. Building the shared folder support module. Building the graphics driver module.
Maybe you are missing other required packages to build the GA, see /var/log/vboxadd-install.log
comment:3 by , 5 years ago
NB: please note the missmatch you have on your system wrt. to the uname -r value and the kernel source code packae. this is not the case on my system, I have both in sync:
$ uname -r 3.10.0-1062.12.1.el7.x86_64
$ ls /usr/src/kernels/ 3.10.0-1062.12.1.el7.x86_64
so you must have made some installation/setup faults or booted into the wrong, previous boot environment.
comment:4 by , 5 years ago
The discrepancy arises from the CentOS 7 1908 VDI image on osboxes.org.
https://www.osboxes.org/centos/#centos-1908-vbox
I'll try to find out where to report the issue to them.
comment:5 by , 4 years ago
Hi guys,
I've found this in another Oracle's forum:
yum install kernel-uek-headers-$(uname -r)
yum install kernel-uek-devel-$(uname -r)
those are the magical lines. It's install what VBoxLinuxAdditions.run needs.
After manually running the VBoxLinuxAdditions.run script, I get:
# modprobe -a vboxguest vboxsf vboxvideo modprobe: WARNING: Module vboxguest not found modprobe: WARNING: Module vboxsf not found modprobe: WARNING: Module vboxvideo not found
Probably not a good sign.