I'm hitting the following issue when trying to install VirtualBox GuestAdditions 5.2.20 on my RHEL7.5 guest image (my host machine is on Windows 10):
But, for sure, package kernel-devel-4.4.136-4.NSN.el7.x86_64 and kernel-headers-4.4.136-4.NSN.el7.x86_64 are already installed (and reinstallation of those packages changes nothing).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...
Log of /var/log/vboxadd-install.log gives the following:
Log of /var/log/vboxadd-setup.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.
I don't really know where to look at next. If anyone has some clues, I will be very glad to hear from him.Building the main Guest Additions module. Error building the module: modprobe vboxguest failed.
Thanks
Regards