After installing brand new Oracle Linux 7.3 as Virtual Box VM, I was unable to install VBOXADDITIONS. Error message in /var/log/vboxadd-install.log:
/tmp/vbox.0/Makefile.include.header:112: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.
Solution is to install kernel-devel and kernel-uek-devel (if UEK is booted). So run:
yum update
yum install kernel-devel
yum install kernel-uek-devel
But then it was also required to set the environment variable as mentioned in the error message:
export KERN_DIR=/usr/src/kernels/4.1.12-94.2.1.el7uek.x86_64
and then run VBoxLinuxAdditions.run again.
/tmp/vbox.0/Makefile.include.header:112: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.
Solution is to install kernel-devel and kernel-uek-devel (if UEK is booted). So run:
yum update
yum install kernel-devel
yum install kernel-uek-devel
But then it was also required to set the environment variable as mentioned in the error message:
export KERN_DIR=/usr/src/kernels/4.1.12-94.2.1.el7uek.x86_64
and then run VBoxLinuxAdditions.run again.
No comments:
Post a Comment