Page 1 of 1

Help with installing Guest Additions 5.2.1 on CentOS 6.9

Posted: 2. Nov 2017, 02:30
by jieun48
Hello,

I'm having difficulty installing Guest Additions 5.2.1 on a Linux Guest, and was hoping to find out where I am going wrong:

My info:
  • VirtualBox version: 5.2.0
    Guest Additions version: the latest Development snapshot, VBoxGuestAdditions_5.2.1-118868.iso
    Host: Mac OS Version 10.11.6
    Guest: CentOS 6.9, Red Hat (64-bit)
    VM log file: attached
I tried following the Guest Additions installation instructions in the forum's HowTo guide:

Code: Select all

yum update


Rebooted, then:

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Then I mounted Guest Additions (VBoxGuestAdditions_5.2.1-118868.iso) and ran ./VBoxLinuxAdditions.run.

Here's the message I got: "Look at /var/log/vboxadd-setup.log to find out what went wrong"
  • In this file I'm seeing messages like: "ERROR: Kernel configuration is invalid."; include/linux/autoconf.h or include/config/auto.conf are missing."; Run 'make oldconfig && make prepare' on kernel src to fix it." but am not sure how to approach this.
vboxadd-install.log
  • Uninstalling modules from DKMS
    /etc/rc.d/init.d/vboxadd: line 256: : No such file or directory
Does this indicate that Guest Additions hasn't been correctly installed, and is there a step that I missed?

Here's also a brief summary of the overall task I'm having difficulty with, in case that helps: I'm working with an external hard drive that contains 2 data partitions (1 partition contains the VM, the other partition is storing data). In order to access the data partition through the VM, I was given instructions to add my external USB drive to the VM (by going to Ports --> USB --> Enable USB Controller --> select the appropriate USB Device Filter). After following these steps, I'm still not seeing the data mounted in the VM as the expected directory, which leads me to think that perhaps Guest Additions hasn't been correctly installed.

Do you have any thoughts on what might be going on here? Apologies in advance, since I am not very familiar with Linux or VMs in general.

Thank you!