My environment:
VBox 5.1.14 on Windows 7 (64-bit)
Guest OS: RHEL 7.3 (freshly installed from ISO)
I am trying to install the Guest Addition, but keeps getting the following error:
Code: Select all
[root@cd VBOXADDITIONS_5.1.14_112924]# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.14 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
Code: Select all
[root@cd log]# cat VBoxGuestAdditions.log
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
Code: Select all
[root@cd log]# gcc
gcc: fatal error: no input files
compilation terminated.
[root@cd log]# make
make: *** No targets specified and no makefile found. Stop.
[root@cd log]# yum list | grep kernel-headers
kernel-headers.x86_64 3.10.0-514.el7 @rhel-7-server-rpms
kernel-headers.x86_64 3.10.0-514.6.1.el7 rhel-7-server-rpms
[root@cd log]# uname -r
3.10.0-514.el7.x86_64
Thanks,
David