CentOS 6.2: VirtualBox Guest Additions -> Error: unable to find the sources ...
Re: CentOS 6.2: VirtualBox Guest Additions -> Error: unable
The above mentioned error with building the openGL module is solved with the release of vBox 4.3.8
Re: CentOS 6.2: VirtualBox Guest Additions -> Error: unable
FYI this also workes on a Centos 7.0 system.horsebeef wrote:Is it too late to contribute to this thread? I found that gcc and kernel-devel was not included with the generic desktop install so also needed to doafter running the updates and rebooting.Code: Select all
yum install -y gcc kernel-devel
Re: CentOS 6.2: VirtualBox Guest Additions -> Error: unable
One more thing for Centos 6.6: I had to install perl before it would work.
yum install perl
yum install perl
-
- Posts: 1
- Joined: 2015/02/28 04:41:28
Re: CentOS 6.2: VirtualBox Guest Additions -> Error: unable
I've done that, still error.horsebeef wrote:Is it too late to contribute to this thread? I found that gcc and kernel-devel was not included with the generic desktop install so also needed to doafter running the updates and rebooting.Code: Select all
yum install -y gcc kernel-devel
so I check the error message:
Code: Select all
# tail /var/log/vbox-install.log
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
it's empty,# echo $KERN_DIR
so I find the value with:
rpm -ql kernel-devel-2.6.32-431.29.2.el6.i686
Code: Select all
.
.
.
/usr/src/kernels/2.6.32-431.29.2.el6.i686/tools/virtio
/usr/src/kernels/2.6.32-431.29.2.el6.i686/tools/virtio/virtio-trace
/usr/src/kernels/2.6.32-431.29.2.el6.i686/tools/virtio/virtio-trace/Makefile
/usr/src/kernels/2.6.32-431.29.2.el6.i686/usr
/usr/src/kernels/2.6.32-431.29.2.el6.i686/usr/Kconfig
/usr/src/kernels/2.6.32-431.29.2.el6.i686/usr/Makefile
/usr/src/kernels/2.6.32-431.29.2.el6.i686/virt
.
.
.
Code: Select all
export KERN_DIR=/usr/src/kernels/2.6.32-431.29.2.el6.i686
Code: Select all
/etc/init.d/vboxdrv setup
HTH
sirahngelu banget
-
- Posts: 1
- Joined: 2016/12/04 15:46:33
Re: CentOS 6.2: VirtualBox Guest Additions -> Error: unable to find the sources ...
Running yum install -y gcc kernel-devel on my centos7 worked. Thank you so much!