0

I'm hitting the following issue when trying to install VirtualBox GuestAdditions 5.2.18 on my RHEL7.5 guest image (my host machine is on Windows 10):

Copying additional modules ...
Installing additional modules ...
VirtualBox Guest Additions:Building the VirtualBox Guest Addition kernel modules.  This may take a while.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    kernel-devel kernel-devel-4.4.136-4.NSN.el7.x86_64
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
    This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    kernel-devel kernel-devel-4.4.136-4.NSN.el7.x86_64
Press Return to close this window...

But, for sure, package kernel-devel-4.4.136-4.NSN.el7.x86_64 is already installed (and reinstallation of this package changes nothing).

Log of /var/log/vboxadd-install.log gives the following:

grep: Unmatched ) or \)
chcon: can't apply partial context to unlabeled file 'opt/VBoxGuestAddition-5.2.18/other/mount.vboxsf'
grep: Unmatched ) or \)
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.

Log of /var/log/vboxadd-setup.log gives the following:

Building the main Guest Additions module.
Error building the module:
modprobe vboxguest failed.

I don't really know where to look at next. If anyone has some clues, I will be very glad to hear from him.

Update: Hello all, I'm still stuck with this issue. Does anyone has some ideas to investigate this issue ?

Update 2: I've switched to VB5.2.20 but I still have this issue. I've made myself sure having the kernel header files 4.4.136-4.NSN.el7.x86_64 at correct location (usr/src/kernels/4.4.136-4.NSN.el7.x86_64). To me this error message has nothing to do with root cause of the issue. Please help because I have really no clues on how to investigate this.

Thanks Regards

  • So did you install the header files? – Ramhound Oct 16 '18 at 9:42
  • Hi, Have you tried installing it via your package manager? Or are you trying thought the mountable iso from the guest OS? – dmb Oct 16 '18 at 12:23
  • @Run5k -> Done. Sorry for this accident – frperies Oct 16 '18 at 15:36
  • @dmb: I've tried throught the mountable iso from the guest OS. – frperies Oct 16 '18 at 15:37
  • Please follow this link as it shows the way to install it trought yum package manager – dmb Oct 16 '18 at 15:54
0

After further investigations, it turns out that the symbolic link build from /lib/modules/ to the kernel source was broken:

total 2080
lrwxrwxrwx. 1 root root 42 Jan 14 16:32 build -> /usr/src/kernels/4.4.136-4.NSN.el7.x86_64/

By restoring it manually, it works again!
Note that the original target path was correct, so the link was broken for a mysterious reason....

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.