CentOS5.5中安装VirtualBOX增强工具virtualbox centos安装增强功能




CentOS5.5中安装VirtualBOX增强工具virtualbox centos安装增强功能

2022-07-20 21:06:28 网络知识 官方管理员
#sudosh./VBoxLinuxAdditions.run

提示失败

BuildingtheVirtualBoxGuestAdditionskernelmodules[FAILED]
Yoursystemdoesnotseemtobesetuptobuildkernelmodules.
Lookat/var/log/vboxadd-install.logtofindoutwhatwentwrong.
Onceyouhavecorrectedit,youcanrun/etc/init.d/vboxaddsetuptobuildthem.

#gedit/var/log/vboxadd-install.log内容

Makefile:23:***Error:unabletofindthesourcesofyourcurrentLinuxkernel.SpecifyKERN_DIR=<directory>andrunMakeagain..Stop.
CreatinguserfortheGuestAdditions.
CreatingudevrulefortheGuestAdditionskernelmodule.

安装GCC

#yuminstallgcc

#yuminstallgcckernel-develkernel-headers

重启

再次安装VBoxLinuxAdditions,OK。

发表评论:

最近发表
网站分类
标签列表