Today I installed RHEL 7 in Virtualbox. And fascinated by the re-engineered 3-step-installation and the stunning UI. After the installation, next step obviously was to install Guest Additions to unlock the advanced features such as Drag n drop, Shared folders, auto-scaling of the window etc. in the VM.
As I didn’t have the Internet connection, I downloaded the Virtualbox_Guest Additions_4.2.20 ISO file (same as my Virtualbox hypervisor version) from the Internet PC and copied the ISO file into the VM using an USB stick. Double-clicking the ISO file opened the file manager message asking whether to auto-run it. After entering the password of the admin user the installer got launched and a terminal window opened showing the progress of the Guest Additions installation along with the message of the modules being installed. After a moment the following error was thrown on the terminal window and the installation process aborted prematurely.
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-123.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 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 ; \
I googled for several hours trying to fix this. I tried re-installing the Guest Additions with different options and installing different versions of Guest Additions by dowloading them from the Virtualbox site. But the same problem persisted.
Later I stumbled upon this post in Matt’s blog. Voila! he had the solution. His download link of the tar file having the bug fix was blocked by the proxy server in my company. So I followed the bug report discussion. In the forum the discussion had been closed by telling that the bug got fixed in the version 4.3.14. Following that I downloaded the Guest Additions version 4.3.14 from here.
I Auto-runned the downloaded Guest Additions ISO file in the RHEL 7 VM without any error and restarted the VM. When the VM window started to scale itself to full screen after booting, a smile crossed my face and I silently thanked the guys who fixed the bug.
Save your time and download the Guest-Additions-installed CentOS_7 Virtualbox VDI file directly from here. CentOS is the twin brother of RHEL. Not to mention that URL is blocked by the proxy in my case!