安装VirtualBox后,vboxadd服务启动失败

来源:互联网 发布:线切割编程软件教程 编辑:程序博客网 时间:2024/05/10 13:00
提示失败 
Building the VirtualBox Guest Additions kernel modules [FAILED] 
Your system does not seem to be set up to build kernel modules. 
Look at /var/log/vboxadd-install.log to find out what went wrong. 
Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them. 

 more /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 ag
ain.  Stop.

安装GCC 

#yum install gcc 

# yum install gcc kernel-devel kernel-headers 

重启系统或重新安装virtrualbox 再或者

export KERN_DIR=/usr/src/kernels/2.6.18-164.15.1.el5-i686/(2.6.18-164.15.1.el5-i686可查看自己机器就具体位置而知)
最后,/etc/init.d/vboxdrv setup即可。




0 0
原创粉丝点击