I created my Centos system with a minimal configuration and then did a yum update.
I've added a variety of packages attempting to get the guest additions to insall
yum install dkms
yum groupinstall "Development Tools"
yum install epel-release
yum install dkms
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
I made sure the KERN_DIR property was set.
The guest additions install looks like it is installing and then it fails. The end of the log has this error:
gcc: /tmp/vbox.0/vboxguest.mod.c: No such file or directory
gcc: no input files
make[2]: *** [/tmp/vbox.0/vboxguest.mod.o] Error 1
make[1]: *** [modules] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
I've attached a screenshot that has more of the tail:
I've been searching Google for what to do when the vboxguest.mod.c file isn't found, but to no avail. Could someone please give some suggestions as to what else might need to be done?
I'm running the latest version of VirtualBox on a Windows10 host.