host: centos 7
I installed the last release of centos 7, I create a shared folder, I insert Guest Addition CD Image ... after I mount /dev/sr0 /media/cdrom, go to /media/cdrom and
sh VBoxLinuxAdditions.run
I obtain:
Code: Select all
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
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..
chcon: non è possibile applicare un contesto parziale al file non etichettato "/usr/lib64/VBoxGuestAdditions/mount.vboxsf"Code: Select all
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
Code: Select all
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
echo export KERN_DIR=/usr/src/kernels/`uname -r` >> ~/.bashrc
thanks