Page 1 of 1

[Solved] Unable to install Guest additions on Centos

Posted: 14. Nov 2017, 14:29
by Centos74
Dear Guys,

I'm having extremely hard time to install Guest Additions on Centos 7.4.

Host Operating System = Windows 7 Enterprise

Guest Operating System =CentOS 7.4

I'm getting error message like below when I run

Code: Select all

[root@crashnburn VBox_GAs_5.2.1]# pwd
/run/media/jim/VBox_GAs_5.2.1
[root@crashnburn VBox_GAs_5.2.1]# ./VBoxLinuxAdditions.run 
And I get error like below in setup log file

Code: Select all


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.";	
Therefore as per recommendation I did make oldconfig and make prepare but I'm getting error there too

Code: Select all

[root@crashnburn 3.10.0-693.5.2.el7.x86_64]# pwd
/usr/src/kernels/3.10.0-693.5.2.el7.x86_64
[root@crashnburn 3.10.0-693.5.2.el7.x86_64]# make oldconfig && make prepare
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: *** No rule to make target `arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'.  Stop.
make: *** [archheaders] Error 2
[root@crashnburn 3.10.0-693.5.2.el7.x86_64]# 

Version of Guest OS below:

Code: Select all

[root@crashnburn 3.10.0-693.5.2.el7.x86_64]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 
[root@crashnburn 3.10.0-693.5.2.el7.x86_64]# 
So, I'm getting tired and wondering how to get guest additions installed !

Your help would be greatly appreciated.

Thanks !

Re: Unable to install Guest additions on Centos

Posted: 14. Nov 2017, 14:33
by mpack
This is "Windows Hosts", not the obvious place to look for Linux expertise. Perhaps you should ask about Linux Guests in the "Linux Guests" forum? Moving you there now.

Re: Unable to install Guest additions on Centos

Posted: 14. Nov 2017, 14:45
by Centos74
mpack wrote:This is "Windows Hosts", not the obvious place to look for Linux expertise. Perhaps you should ask about Linux Guests in the "Linux Guests" forum? Moving you there now.
Thank you Sir. I thought it is categorised as per Host OS. My apologies and thanks in advance !

Re: Unable to install Guest additions on Centos

Posted: 14. Nov 2017, 18:54
by mpack
Well I hope the "thanks in advance" isn't anticipating help from me, because I'm not a Linux user. You'll have to wait and see if a Linux expert comes along.

In the meantime all I can tell you is :
  1. Make sure you're using the latest test GAs on the download page (note to future readers: this is because of a specific bug in 5.2.0. In future you don't go looking for GAs, they are bundled with the main download).
  2. Read the sections in the user manual dealing with installing Linux GAs.

Re: Unable to install Guest additions on Centos

Posted: 15. Nov 2017, 04:45
by Centos74
Mate ! Thank you so much !! Using new GA all worked like a charm !

This thread can be now resolved.

Cheers

Re: [Solved] Unable to install Guest additions on Centos

Posted: 15. Nov 2017, 11:04
by mpack
Thanks for reporting back.